-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathintegration.sh
executable file
·40 lines (32 loc) · 1.13 KB
/
integration.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash -x
source ${OKTA_HOME}/${REPO}/scripts/setup.sh
export TEST_SUITE_TYPE="junit"
export TEST_RESULT_FILE_DIR="${REPO}/build2/reports/unit"
export CI=true
export ISSUER=https://javascript-idx-sdk-idfirst.okta.com
export [email protected]
get_terminus_secret "/" password PASSWORD
# for myaccount password API testing
export [email protected]
get_terminus_secret "/" a18n_api_key A18N_API_KEY
# These clients have refresh token enabled and password optional
export CLIENT_ID=0oa3b5fp4h02UIrjZ697
export DPOP_CLIENT_ID=0oaole6c9ngbidHdX697
create_log_group "Standard Integration Test Run"
if ! yarn test:integration; then
echo "integration failed! Exiting..."
exit ${TEST_FAILURE}
fi
finish_log_group $?
create_log_group "DPoP Integration Test Run"
export USE_DPOP=1
if ! yarn test:integration; then
echo "integration failed (with DPoP)! Exiting..."
exit ${TEST_FAILURE}
fi
finish_log_group $?
create_log_group "Cleanup"
echo ${TEST_SUITE_TYPE} > ${TEST_SUITE_TYPE_FILE}
echo ${TEST_RESULT_FILE_DIR} > ${TEST_RESULT_FILE_DIR_FILE}
exit ${PUBLISH_TYPE_AND_RESULT_DIR}
finish_log_group $?