Skip to content

Commit d937151

Browse files
authored
Check notices website periodically (#2588)
* Check notices website periodically * typo * check * check
1 parent d854912 commit d937151

File tree

6 files changed

+20
-0
lines changed

6 files changed

+20
-0
lines changed

.changeset/large-coats-brake.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/integration-tests/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@aws-amplify/backend": "^1.14.3",
1111
"@aws-amplify/backend-ai": "^1.3.1",
1212
"@aws-amplify/backend-secret": "^1.2.0",
13+
"@aws-amplify/cli-core": "^1.4.1",
1314
"@aws-amplify/client-config": "^1.5.8",
1415
"@aws-amplify/data-schema": "^1.13.4",
1516
"@aws-amplify/deployed-backend-client": "^1.5.2",

packages/integration-tests/src/test-live-dependency-health-checks/health_checks.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import { e2eToolingClientConfig } from '../e2e_tooling_client_config.js';
2323
import { amplifyAtTag } from '../constants.js';
2424
import { FunctionCodeHotswapTestProjectCreator } from '../test-project-setup/live-dependency-health-checks-projects/function_code_hotswap.js';
2525
import { BackendIdentifier } from '@aws-amplify/plugin-types';
26+
import {
27+
NoticesManifestValidator,
28+
noticesManifestSchema,
29+
} from '@aws-amplify/cli-core';
2630

2731
const cfnClient = new CloudFormationClient(e2eToolingClientConfig);
2832

@@ -181,4 +185,14 @@ void describe('Live dependency health checks', { concurrency: true }, () => {
181185
await testProject.tearDown(sandboxBackendIdentifier);
182186
});
183187
});
188+
189+
void describe('notices website', () => {
190+
void it('returns valid notices manifest', async () => {
191+
const response = await fetch(
192+
'https://notices.cli.amplify.aws/notices.json',
193+
);
194+
const manifest = noticesManifestSchema.parse(await response.json());
195+
assert.ok(new NoticesManifestValidator().validate(manifest));
196+
});
197+
});
184198
});

packages/integration-tests/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{ "path": "../backend" },
88
{ "path": "../backend-ai" },
99
{ "path": "../backend-secret" },
10+
{ "path": "../cli-core" },
1011
{ "path": "../client-config" },
1112
{ "path": "../deployed-backend-client" },
1213
{ "path": "../platform-core" },

scripts/check_dependencies.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ await new DependenciesValidator(
1616
'@aws-amplify/cli-core': {
1717
allowList: [
1818
'@aws-amplify/backend-cli',
19+
'@aws-amplify/integration-tests',
1920
'@aws-amplify/sandbox',
2021
'create-amplify',
2122
],

0 commit comments

Comments
 (0)