Skip to content

Commit

Permalink
refactor: remove tests that dont apply to our repo space, and remove …
Browse files Browse the repository at this point in the history
…since we don't have control over it. Consider replacing w/ a different approach (#482)
  • Loading branch information
alharris-at committed May 31, 2022
1 parent 7504219 commit 60151b7
Show file tree
Hide file tree
Showing 32 changed files with 10 additions and 1,435 deletions.
34 changes: 0 additions & 34 deletions .circleci/amplify_init.exp

This file was deleted.

5 changes: 0 additions & 5 deletions .circleci/amplify_init.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .circleci/api.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .circleci/auth.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .circleci/aws.sh

This file was deleted.

13 changes: 0 additions & 13 deletions .circleci/aws_configure.exp

This file was deleted.

92 changes: 1 addition & 91 deletions .circleci/config.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,76 +262,6 @@ jobs:
path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports
working_directory: ~/repo

integration_test:
working_directory: ~/repo
resource_class: large
docker:
- image: cypress/base:14.17.0
environment:
TERM: dumb
steps:
- attach_workspace:
at: ./
- restore_cache:
key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
- run: cd .circleci/ && chmod +x aws.sh
- run:
name: Setup Dependencies
command: |
apt-get update
apt-get install -y sudo
sudo apt-get install -y tcl
sudo apt-get install -y expect
sudo apt-get install -y zip
sudo apt-get install -y lsof
sudo apt-get install -y python python-pip libpython-dev
sudo apt-get install -y jq
pip install awscli
- run: expect .circleci/aws_configure.exp
- run:
name: Configure Amplify CLI
command: |
yarn setup-dev && yarn rm-aa-dev-link && yarn link-aa-dev
echo 'export PATH="$(yarn global bin):$PATH"' >> $BASH_ENV
source $BASH_ENV
amplify-dev --version
- run:
name: Clone API test package
command: |
cd ..
git clone $API_CLONE_URL
cd aws-amplify-cypress-api
yarn --cache-folder ~/.cache/yarn
- run: cd .circleci/ && chmod +x amplify_init.sh
- run: cd .circleci/ && chmod +x amplify_init.exp
- run: cd .circleci/ && chmod +x api.sh
- run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-api
- run: expect .circleci/enable_api.exp
- run: cd ../aws-amplify-cypress-api
- run: cd ../aws-amplify-cypress-api/src && cat $(find . -type f -name 'aws-exports*')
- run:
name: Start API test server in background
command: |
cd ../aws-amplify-cypress-api
pwd
yarn start
background: true
- run:
name: Run cypress tests for api
command: |
cd ../aws-amplify-cypress-api
yarn add cypress@6.8.0 --save
cp ../repo/cypress.json .
cp -R ../repo/cypress .
yarn cypress run --spec $(find . -type f -name 'api_spec*')
- run: cd .circleci/ && chmod +x delete_api.sh
- run: expect .circleci/delete_api.exp
- run: *scan_e2e_test_artifacts
- store_artifacts:
path: /root/aws-amplify-cypress-api/cypress/videos
- store_artifacts:
path: /root/aws-amplify-cypress-api/cypress/screenshots

deploy:
<<: *linux-e2e-executor
steps:
Expand Down Expand Up @@ -388,13 +318,6 @@ jobs:
workflows:
version: 2
e2e_resource_cleanup:
triggers:
- schedule:
cron: "45 0,12 * * *"
filters:
branches:
only:
- main
jobs:
- build
- cleanup_resources:
Expand Down Expand Up @@ -431,20 +354,7 @@ workflows:
- /tagged-release\/.*/
- /run-e2e\/.*/
requires:
- build
- publish_to_local_registry
- integration_test:
context:
- api-e2e-test-context
filters:
branches:
only:
- main
- beta
- /tagged-release\/.*/
- /run-e2e\/.*/
requires:
- build
- publish_to_local_registry:
filters:
branches:
Expand Down Expand Up @@ -502,6 +412,7 @@ workflows:
- api-e2e-test-context
requires:
- amplify_e2e_tests
- graphql_e2e_tests
- amplify_migration_tests_v6
- amplify_migration_tests_v5
- deploy:
Expand All @@ -513,7 +424,6 @@ workflows:
- test
- mock_e2e_tests
- graphql_e2e_tests
- integration_test
- amplify_e2e_tests
- amplify_migration_tests_v6
- amplify_migration_tests_v5
Expand Down
5 changes: 0 additions & 5 deletions .circleci/delete_api.exp

This file was deleted.

7 changes: 0 additions & 7 deletions .circleci/delete_api.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .circleci/delete_auth.exp

This file was deleted.

7 changes: 0 additions & 7 deletions .circleci/delete_auth.sh

This file was deleted.

48 changes: 0 additions & 48 deletions .circleci/enable_api.exp

This file was deleted.

12 changes: 0 additions & 12 deletions .circleci/enable_auth.exp

This file was deleted.

3 changes: 0 additions & 3 deletions cypress.json

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/fixtures/example.json

This file was deleted.

22 changes: 0 additions & 22 deletions cypress/integration/api_spec.js

This file was deleted.

15 changes: 0 additions & 15 deletions cypress/integration/auth_spec.js

This file was deleted.

17 changes: 0 additions & 17 deletions cypress/plugins/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/support/commands.js

This file was deleted.

Loading

0 comments on commit 60151b7

Please sign in to comment.