File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Common Logic
12defaults : &defaults
23 steps :
34 - attach_workspace :
45 at : ~/
56 - run :
6- name : Replace Auth0 test credentials
7- command : |
7+ name : Prepare environment variables
8+ command : |
89 cd $AUTH0_CFG
910 mv .env.example .env
1011 sed -i 's/{CLIENT_ID}/'$client_id_scopes_none'/g' .env
1112 sed -i 's/{CLIENT_SECRET}/'$client_secret_scopes_none'/g' .env
1213 sed -i 's/{DOMAIN}/'$auth0_domain'/g' .env
1314 sed -i 's/{API_IDENTIFIER}/'$api_identifier'/g' .env
14- head .env
1515 - run :
1616 name : Background Server
1717 command : cd $AUTH0_CFG && sh exec.sh
1818 background : true
1919 - run :
2020 name : Wait until server is online
2121 command : |
22- until $(curl --output /dev/null --fail http://localhost:3010/api/public); do
22+ until $(curl --silent --head -- output /dev/null --fail http://localhost:3010/api/public); do
2323 sleep 5
2424 done
2525 - run :
@@ -38,7 +38,6 @@ defaults: &defaults
3838 echo "AUTH0_CLIENT_SECRET_4=$client_secret_scopes_readwrite" >> .env
3939 echo "API_URL=http://localhost:3010" >> .env
4040 npm install
41- head .env
4241 - run :
4342 name : Execute automated tests
4443 command : cd test && npm test
4948 machine : true
5049 steps :
5150 - checkout
52- - run : git clone https://github.com/auth0-samples/api-quickstarts-tests test
51+ - run :
52+ name : Clone test script
53+ command : git clone https://github.com/auth0-samples/api-quickstarts-tests test
5354 - persist_to_workspace :
5455 root : ~/
5556 paths :
6162 - AUTH0_CFG : 00-Starter-Seed
6263 - SAMPLE_PATH : 00-Starter-Seed
6364 << : *defaults
64-
6565workflows :
6666 version : 2
6767 API-Tests :
You can’t perform that action at this time.
0 commit comments