forked from vsuaste/express_graphql_model_gen
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use zendro-env to setup integration tests environment (#158)
* feat: add integration-tests env cli * fix: missing experiment data model with wrong extension * fix: remove unused templates from the env config file * refactor: move all integration-test related files to integration_test_misc * feat: update .testenv.json - service url for service connection checks - mocha test definitions * fix: duplicated bak patches * fix: move unused patches to patches folder * refactor: place service name at the top * fix: update testenv paths * refactor: restore old test-* scripts format * fix: gitignore integration_test_env folder * feat: add env property to the testenv config * fix: remove unnecessary npm install from ncbi_sim_srv * feat: assign names to postgres containers * docs: update integration-tests documentation * refactor: move env entry in config file to the top
- Loading branch information
Showing
64 changed files
with
554 additions
and
1,062 deletions.
There are no files selected for viewing
This file contains 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 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,79 @@ | ||
{ | ||
"cwd": "./test/integration_test_env", | ||
"env": { | ||
"NODE_JQ_SKIP_INSTALL_BINARY": true | ||
}, | ||
"docker": "../integration_test_misc/docker-compose-test.yml", | ||
"services": [ | ||
{ | ||
"name": "gql_science_db_graphql_server1", | ||
"template": "gql", | ||
"codegen": "gql-codegen", | ||
"url": "http://localhost:3000/graphql" | ||
}, | ||
{ | ||
"name": "gql_science_db_graphql_server2", | ||
"template": "gql", | ||
"codegen": "gql-codegen", | ||
"url": "http://localhost:3030/graphql" | ||
} | ||
], | ||
"models": [ | ||
{ | ||
"opts": [ "--migrations" ], | ||
"path": "../integration_test_misc/integration_test_models_instance1", | ||
"target": [ "gql_science_db_graphql_server1" ] | ||
}, | ||
{ | ||
"opts": [ "--migrations" ], | ||
"path": "../integration_test_misc/integration_test_models_instance2", | ||
"target": [ "gql_science_db_graphql_server2" ] | ||
} | ||
], | ||
"patches": [ | ||
{ | ||
"opts": [ "-V", "never" ], | ||
"src": "../integration_test_misc/patches/model_aminoacidsequence.patch", | ||
"dest": "gql_science_db_graphql_server1/models/generic/aminoacidsequence.js" | ||
}, | ||
{ | ||
"opts": [ "-V", "never" ], | ||
"src": "../integration_test_misc/patches/individual_validate.patch", | ||
"dest": "gql_science_db_graphql_server1/validations/individual.js" | ||
}, | ||
{ | ||
"opts": [ "-V", "never" ], | ||
"src": "../integration_test_misc/patches/accession_validate_instance1.patch", | ||
"dest": "gql_science_db_graphql_server1/validations/accession.js" | ||
}, | ||
{ | ||
"opts": [ "-V", "never" ], | ||
"src": "../integration_test_misc/patches/cat_readAllCursor.patch", | ||
"dest": "gql_science_db_graphql_server1/models/sql/cat.js" | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"name": "gql", | ||
"branch": "master", | ||
"url": "https://github.com/Zendro-dev/graphql-server.git" | ||
}, | ||
{ | ||
"name": "gql-codegen", | ||
"url": "../../.git", | ||
"source": true | ||
} | ||
], | ||
"tests": [ | ||
{ | ||
"name": "integration", | ||
"runner": "mocha", | ||
"target": "gql-codegen/test/mocha_integration_test.js" | ||
}, | ||
{ | ||
"name": "unit", | ||
"runner": "mocha", | ||
"target": "gql-codegen/test/mocha_unit_test.js" | ||
} | ||
] | ||
} |
This file contains 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 was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.