Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update AMPLIFY_PATH env var in config for migration tests #7497

Merged
merged 2 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 4 additions & 2 deletions .circleci/config.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ jobs:

amplify_migration_tests_non_multi_env_layers:
<<: *defaults

environment:
AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify
steps:
- attach_workspace:
at: ./
Expand All @@ -309,7 +310,8 @@ jobs:

amplify_migration_tests_multi_env_layers:
<<: *defaults

environment:
AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify
steps:
- attach_workspace:
at: ./
Expand Down
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ jobs:
working_directory: ~/repo
docker: *ref_1
resource_class: large
environment:
AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify
steps:
- attach_workspace:
at: ./
Expand All @@ -322,6 +324,8 @@ jobs:
working_directory: ~/repo
docker: *ref_1
resource_class: large
environment:
AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify
steps:
- attach_workspace:
at: ./
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,6 @@ describe('add function with layers for runtime python', () => {
const payload = '{}';
const response = await functionCloudInvoke(projRoot, { funcName: functionName, payload: payload });

expect(JSON.parse(response.Payload.toString()).body).toEqual(helloWorldSuccessOutput);
expect(JSON.parse(response.Payload.toString()).body).toMatch(helloWorldSuccessOutput);
});
});