mirror of
https://github.com/Telecominfraproject/wlan-cloud-userportal.git
synced 2025-11-01 19:17:46 +00:00
Merge pull request #1 from Telecominfraproject/feature/wifi-7221--cicd
[WIFI-7221] Add: CI/CD related files
This commit is contained in:
@@ -37,11 +37,20 @@ target_service_endpoint="${OWSUB}"
|
||||
|
||||
token=""
|
||||
result_file=result.json
|
||||
username="stephane.bourque@gmail.com"
|
||||
password="NoMoreN00bs!"
|
||||
browser_list=(firefox sensible-browser xdg-open w3m links links2 lynx youtube-dl)
|
||||
browser=""
|
||||
|
||||
if [ -z ${OWSEC_USERNAME+x} ]; then
|
||||
username="script.runner@arilia.com"
|
||||
else
|
||||
username=${OWSEC_USERNAME}
|
||||
fi
|
||||
if [ -z ${OWSEC_PASSWORD+x} ]; then
|
||||
password="Snoopy99!!!"
|
||||
else
|
||||
password=${OWSEC_PASSWORD}
|
||||
fi
|
||||
|
||||
login() {
|
||||
payload="{ \"userId\" : \"$username\" , \"password\" : \"$password\" }"
|
||||
curl ${FLAGS} -X POST -H "Content-Type: application/json" -d "$payload" "https://${target_service_endpoint}/api/v1/oauth2" > ${result_file}
|
||||
|
||||
Reference in New Issue
Block a user