Merge pull request #1 from Telecominfraproject/feature/wifi-7221--cicd

[WIFI-7221] Add: CI/CD related files
This commit is contained in:
Dmitry Dunaev
2022-03-09 11:13:47 +03:00
committed by GitHub
26 changed files with 1010 additions and 41 deletions

View File

@@ -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}