-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_local_propagate_same_instance.sh
executable file
·38 lines (30 loc) · 1.24 KB
/
test_local_propagate_same_instance.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
#!/usr/bin/env bash
if [[ -z "$VIRTUAL_ENV" ]]; then
echo "Setting virtual environment..."
source venv/bin/activate
fi
echo "Setting environment variables to point to the localhost..."
export WSO2_APIM_ENV1_APIMGT_URL="https://172.17.0.1:9443"
export WSO2_APIM_ENV1_GW_URL="https://172.17.0.1:8243"
export WSO2_APIM_ENV1_APIMGT_USERNAME="admin"
export WSO2_APIM_ENV1_APIMGT_PASSWD="admin"
# WSO2_APIM_ENV1_ID should be lowercase
export WSO2_APIM_ENV1_ID="dev1"
export WSO2_APIM_ENV1_APIMGT_OWNER="admin"
export WSO2_APIM_ENV2_APIMGT_URL="https://172.17.0.1:9443"
export WSO2_APIM_ENV2_GW_URL="https://172.17.0.1:8243"
export WSO2_APIM_ENV2_APIMGT_USERNAME="admin"
export WSO2_APIM_ENV2_APIMGT_PASSWD="admin"
# WSO2_APIM_ENV2_ID should be lowercase
export WSO2_APIM_ENV2_ID="dev2"
export WSO2_APIM_ENV2_APIMGT_OWNER="admin"
export WSO2_APIM_ENV2_ROLE="Internal/subscriber"
export WSO2_APIM_ENV2_GATEWAY_ENVIRONMENTS="STAG - External Gateway, STAG - Internal Gateway"
# WSO2_APIM_API_PREFIX should be lowercase
export WSO2_APIM_API_PREFIX="cjams"
# Maximum size of resource array to return
export WSO2_APIM_RETURN_LIMIT=10000
export WSO2_APIM_VERIFY_SSL="False"
export WSO2_APIM_VERBOSE="False"
echo "Running Python script..."
python2 api_propagate.py