Skip to content

Commit

Permalink
test(amplify-e2e-tests): add e2e test for schema in doc
Browse files Browse the repository at this point in the history
Add tests for graphql schemas in the document Amplify CLI/API(GraphQL)/Directives
  • Loading branch information
UnleashedMind committed Jun 25, 2020
1 parent 30a7fe7 commit af678b1
Show file tree
Hide file tree
Showing 86 changed files with 7,150 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ workflows:
branches:
only:
- master
- schematests
jobs:
- build
- publish_to_local_registry:
Expand All @@ -663,6 +664,7 @@ workflows:
branches:
only:
- master
- schematests
- graphql_e2e_testing
requires:
- build
Expand All @@ -672,6 +674,7 @@ workflows:
branches:
only:
- master
- schematests
- beta
requires:
- build
Expand All @@ -681,6 +684,7 @@ workflows:
branches:
only:
- master
- schematests
- beta
- split-test
requires:
Expand All @@ -690,6 +694,7 @@ workflows:
branches:
only:
- master
- schematests
- split-test
requires:
- publish_to_local_registry
Expand All @@ -698,6 +703,7 @@ workflows:
branches:
only:
- master
- schematests
- split-test
requires:
- build
Expand All @@ -706,6 +712,7 @@ workflows:
branches:
only:
- master
- schematests
- split-test
requires:
- build
Expand Down Expand Up @@ -733,12 +740,14 @@ workflows:
only:
- release
- master
- schematests
- beta
# - integration_test_js:
# filters:
# branches:
# only:
# - master
# - schematests
# requires:
# - build
# - test
Expand All @@ -748,6 +757,7 @@ workflows:
# branches:
# only:
# - master
# - schematests
# requires:
# - build
# - test
Expand Down
192 changes: 191 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,104 @@ jobs:
when: always
- store_artifacts:
path: ../uitest_android_results
api-data-access-patterns-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-data-access-patterns.test.ts
api-directive-auth-1-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-auth-1.test.ts
api-directive-auth-2-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-auth-2.test.ts
api-directive-auth-3-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-auth-3.test.ts
api-directive-auth-4-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-auth-4.test.ts
api-directive-auth-5-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-auth-5.test.ts
api-directive-auth-6-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-auth-6.test.ts
api-directive-connection-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-connection.test.ts
api-directive-function-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-function.test.ts
api-directive-key-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-key.test.ts
api-directive-model-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-model.test.ts
api-directive-predictions-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-predictions.test.ts
api-directive-searchable-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-searchable.test.ts
api-directive-versioned-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
resource_class: large
steps: *ref_1
environment:
TEST_SUITE: src/__tests__/api-directive-versioned.test.ts
hostingPROD-amplify_e2e_tests:
working_directory: ~/repo
docker: *ref_0
Expand Down Expand Up @@ -891,6 +989,7 @@ workflows:
branches:
only:
- master
- schematests
jobs:
- build
- publish_to_local_registry:
Expand All @@ -914,6 +1013,7 @@ workflows:
branches:
only:
- master
- schematests
- graphql_e2e_testing
requires:
- build
Expand All @@ -923,6 +1023,7 @@ workflows:
branches:
only:
- master
- schematests
- beta
requires:
- build
Expand All @@ -932,6 +1033,7 @@ workflows:
branches:
only:
- master
- schematests
- beta
- split-test
requires:
Expand All @@ -941,6 +1043,7 @@ workflows:
branches:
only:
- master
- schematests
- split-test
requires:
- build
Expand All @@ -949,6 +1052,7 @@ workflows:
branches:
only:
- master
- schematests
- split-test
requires:
- build
Expand All @@ -970,6 +1074,20 @@ workflows:
- amplify_console_integration_tests
- amplify_migration_tests_latest
- amplify_migration_tests_v4
- api-data-access-patterns-amplify_e2e_tests
- api-directive-auth-1-amplify_e2e_tests
- api-directive-auth-2-amplify_e2e_tests
- api-directive-auth-3-amplify_e2e_tests
- api-directive-auth-4-amplify_e2e_tests
- api-directive-auth-5-amplify_e2e_tests
- api-directive-auth-6-amplify_e2e_tests
- api-directive-connection-amplify_e2e_tests
- api-directive-function-amplify_e2e_tests
- api-directive-key-amplify_e2e_tests
- api-directive-model-amplify_e2e_tests
- api-directive-predictions-amplify_e2e_tests
- api-directive-searchable-amplify_e2e_tests
- api-directive-versioned-amplify_e2e_tests
- hostingPROD-amplify_e2e_tests
- plugin-amplify_e2e_tests
- datastore-modegen-amplify_e2e_tests
Expand All @@ -991,27 +1109,99 @@ workflows:
only:
- release
- master
- schematests
- beta
- hostingPROD-amplify_e2e_tests:
- api-data-access-patterns-amplify_e2e_tests:
filters: &ref_2
branches:
only:
- master
- schematests
- split-test
requires:
- publish_to_local_registry
- api-directive-auth-1-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-2-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-3-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-4-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-data-access-patterns-amplify_e2e_tests
- api-directive-auth-5-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-1-amplify_e2e_tests
- api-directive-auth-6-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-2-amplify_e2e_tests
- api-directive-connection-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-3-amplify_e2e_tests
- api-directive-function-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-4-amplify_e2e_tests
- api-directive-key-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-5-amplify_e2e_tests
- api-directive-model-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-auth-6-amplify_e2e_tests
- api-directive-predictions-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-connection-amplify_e2e_tests
- api-directive-searchable-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-function-amplify_e2e_tests
- api-directive-versioned-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-key-amplify_e2e_tests
- hostingPROD-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-model-amplify_e2e_tests
- plugin-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-predictions-amplify_e2e_tests
- datastore-modegen-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-searchable-amplify_e2e_tests
- interactions-amplify_e2e_tests:
filters: *ref_2
requires:
- publish_to_local_registry
- api-directive-versioned-amplify_e2e_tests
- hosting-amplify_e2e_tests:
filters: *ref_2
requires:
Expand Down
Loading

0 comments on commit af678b1

Please sign in to comment.