-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.sh
executable file
·30 lines (26 loc) · 1.4 KB
/
config.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
#!/bin/sh
echo $(which apimcli)
apimcli version
rm -rf $HOME/.wso2apimcli
echo 'setting up test environment'
apimcli add-env -n test \
--registration https://localhost:9444/client-registration/v0.14/register \
--apim https://localhost:9444 \
--token https://localhost:8244/token \
--import-export https://localhost:9444/api-import-export-3.0.0-SNAPSHOT \
--admin https://localhost:9444/api/am/admin/v0.14 \
--api_list https://localhost:9444/api/am/publisher/v0.14/apis \
--app_list https://localhost:9444/api/am/store/v0.14/applications
echo 'logging into test'
apimcli login test -u $USERNAME -p $PASSWORD -k
echo 'setting up prod environment'
apimcli add-env -n prod \
--registration https://localhost:9445/client-registration/v0.14/register \
--apim https://localhost:9445 \
--token https://localhost:8245/token \
--import-export https://localhost:9445/api-import-export-3.0.0-SNAPSHOT \
--admin https://localhost:9445/api/am/admin/v0.14 \
--api_list https://localhost:9445/api/am/publisher/v0.14/apis \
--app_list https://localhost:9445/api/am/store/v0.14/applications
echo 'logging into prod'
apimcli login prod -u $USERNAME -p $PASSWORD -k