-
Notifications
You must be signed in to change notification settings - Fork 203
GitHub actions tests #293
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
Merged
Merged
GitHub actions tests #293
Changes from 58 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
6b45132
fix: fixes that show fail in testacc result
b5c8ead
test: commented in maintantance asap because is not needed for now, c…
5353797
fix: error about delete cluster
5eac223
test: deleted asap function for maintenance, fixes the bug of cluster…
0beb517
test: fixes bug of destroy global cluster
9a648e4
test: fix error about whitelist, added project resource inside testac…
6f2de46
test: changed database user to create project and get it, changed imp…
32754cd
Fix #285: Unable to import $external auth users (#297)
PacoDw b2aff78
feat: enabled to run test acceptances when the branch is master or is…
2490363
test: added a validation when you want to skip some test acceptances …
f205605
fix: updated travis
1ba55ac
fix: updated travis
79ca259
fix: update travis where you print something every 8 min
797dd43
fix: update travis and wait for 6 hours to avoid output errors
868b861
fix: update travis and wait for 6 hours to avoid output errors
77ab9e0
fix: update travis and wait for 6 hours to avoid output errors
cbbf683
fix: update travis and wait for 6 hours to avoid output errors
93ec94a
fix: update travis
f2f932c
fix: update travis
98a47bb
fix: update travis
bcd7a42
fix: update travis
3025bd8
fix: update travis
1563c4b
fix: added skip function in some test acceptances
41e1eef
deleted make testacc in travis
bb6cd1f
feat: added automate-test for github actions
e1a275d
fix: fix error syntax
e6220f2
fix: added environment variables
6fbd18e
fix: checkout with current branch
1329005
fix: checkout with current branch
1e7372b
fix: checkout with current branch
6dbe34c
fix: checkout with current branch
f7c0192
fix: checkout with current branch
da8320f
fix: checkout with current branch
fab6bbe
refactor: changed Test Acceptances to Acceptances Tests
63b9af1
fix: changed validation so you can run make test, lint, etc every pus…
f4b96ef
fix: validation modified
d0e3b4d
added another automated test for acceptances and separate them from n…
e6f645c
added many others enviroment variables that will be needed if available
23150b4
fix: added a newline at the end of file
1d15ce9
test: changed DB_USERNAME to MONGODB_ATLAS_DB_USERNAME, deleted the f…
55ace7b
deleted the ref for checkout repo
d35fcd0
docs: added environment variables for db username and teams ids
3207bfd
test: added enviroment variable and validate to get teams ids
19f155a
add env var for teams ids in yml tests
7c59b70
reduced to 20 ip whitelist to see if it works now, somehow it always …
8470f5b
added ref to actual branch
47e6eda
test: fixed wrong data in config of database user test
2e85b06
test: changed import state
9636189
fix: fixed cloud_provider_snapshot_backup_policy
PacoDw 705761f
fix: fixes import for varios resources
6e6ad17
test: added validation where you skip import for some resources, it's…
531cb70
test: changed region aws to avoid error about capacity
bd871e5
test: fixes some fails testacc
8ef8ab3
fix: added skip imports in some resources
f1e1141
fix: added skip imports in some resources
c0c0322
test: fixes some failed testacc
b60f105
deleted the ref for checkout and travis so It can use only github act…
648aafa
fix: changed to aws us east 1 to avoid error capacity for global cluster
376184e
changed it back as before
d1a1d0e
test: skip multiple custom db roles because sometimes fails, it seems…
be7bfba
formated code to avoid linter error
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Automated Acceptances Tests' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
acceptances-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14 | ||
- name: Acceptance Tests | ||
env: | ||
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ secrets.SKIP_TEST_EXTERNAL_CREDENTIALS }} | ||
SKIP_TEST_IMPORT: ${{ secrets.SKIP_TEST_IMPORT }} | ||
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY }} | ||
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY }} | ||
MONGODB_ATLAS_PROJECT_ID: ${{ secrets.MONGODB_ATLAS_PROJECT_ID }} | ||
MONGODB_ATLAS_ORG_ID: ${{ secrets.MONGODB_ATLAS_ORG_ID }} | ||
MONGODB_ATLAS_DB_USERNAME: ${{ secrets.MONGODB_ATLAS_DB_USERNAME }} | ||
MONGODB_ATLAS_TEAMS_IDS: ${{ secrets.MONGODB_ATLAS_TEAMS_IDS }} | ||
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }} | ||
AWS_VPC_ID: ${{ secrets.AWS_VPC_ID }} | ||
AWS_VPC_CIDR_BLOCK: ${{ secrets.AWS_VPC_CIDR_BLOCK }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_CUSTOMER_MASTER_KEY_ID: ${{ secrets.AWS_CUSTOMER_MASTER_KEY_ID }} | ||
AZURE_DIRECTORY_ID: ${{ secrets.AZURE_DIRECTORY_ID }} | ||
AZURE_SUBCRIPTION_ID: ${{ secrets.AZURE_SUBCRIPTION_ID }} | ||
AZURE_VNET_NAME: ${{ secrets.AZURE_VNET_NAME }} | ||
AZURE_RESOURCE_GROUP_NAME: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} | ||
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | ||
AZURE_CLIENT_ID_UPDATED: ${{ secrets.AZURE_CLIENT_ID_UPDATED }} | ||
AZURE_RESOURCE_GROUP_NAME_UPDATED: ${{ secrets.AZURE_RESOURCE_GROUP_NAME_UPDATED }} | ||
AZURE_SECRET: ${{ secrets.AZURE_SECRET }} | ||
AZURE_KEY_VAULT_NAME: ${{ secrets.AZURE_KEY_VAULT_NAME }} | ||
AZURE_KEY_VAULT_NAME_UPDATED: ${{ secrets.AZURE_KEY_VAULT_NAME_UPDATED }} | ||
AZURE_KEY_IDENTIFIER: ${{ secrets.AZURE_KEY_IDENTIFIER }} | ||
AZURE_KEY_IDENTIFIER_UPDATED: ${{ secrets.AZURE_KEY_IDENTIFIER_UPDATED }} | ||
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | ||
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} | ||
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | ||
GCP_CLUSTER_REGION_NAME: ${{ secrets.GCP_CLUSTER_REGION_NAME }} | ||
GCP_REGION_NAME: ${{ secrets.GCP_REGION_NAME }} | ||
GOOGLE_CLOUD_KEYFILE_JSON: ${{ secrets.GOOGLE_CLOUD_KEYFILE_JSON }} | ||
GCP_KEY_VERSION_RESOURCE_ID: ${{ secrets.GCP_KEY_VERSION_RESOURCE_ID }} | ||
run: make testacc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Automated Tests' | ||
|
||
on: push | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14 | ||
- name: Code Lint | ||
run: make tools && make lint | ||
- name: Website | ||
run: make tools && make website-lint | ||
- name: Test | ||
env: | ||
MONGODB_ATLAS_TEAMS_IDS: ${{ secrets.MONGODB_ATLAS_TEAMS_IDS }} | ||
run: make test |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.