Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change default (#118)
  • Loading branch information
adamfweidman committed Apr 19, 2024
commit 2b3d94302f25cc0e01393093e5234ae1f440c13c
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/synthetics-sdk-broken-links/src/options_func.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function setDefaultOptions(
per_link_options: {},
total_synthetic_timeout_millis: 60000,
screenshot_options: {
capture_condition: ApiCaptureCondition.FAILING,
capture_condition: ApiCaptureCondition.NONE,
storage_location: '',
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe('GCM Synthetics Broken Links Navigation Functionality', async () => {
link_start_time: 'NA',
link_end_time: 'NA',
is_origin: false,
screenshot_output: successfulScreenshotOuput,
screenshot_output: emptyScreenshotOutput,
};

expect(synLinkResult)
Expand Down Expand Up @@ -326,7 +326,7 @@ describe('GCM Synthetics Broken Links Navigation Functionality', async () => {
link_start_time: 'NA',
link_end_time: 'NA',
is_origin: false,
screenshot_output: successfulScreenshotOuput,
screenshot_output: emptyScreenshotOutput,
};

expect(synLinkResult)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { expect } from 'chai';
// Internal Project Files
import {
BrokenLinksResultV1_BrokenLinkCheckerOptions_LinkOrder,
BrokenLinksResultV1_BrokenLinkCheckerOptions_ScreenshotOptions_CaptureCondition as ApiCaptureCondition,
ResponseStatusCode,
ResponseStatusCode_StatusClass,
} from '@google-cloud/synthetics-sdk-api';
Expand Down Expand Up @@ -95,6 +96,10 @@ describe('GCM Synthetics Broken Links options_func suite testing', () => {
},
};
expect(options.per_link_options).to.deep.equal(link_options);

expect(options.screenshot_options?.capture_condition).to.equal(
ApiCaptureCondition.NONE
);
});

describe('validateInputOptions', () => {
Expand Down