Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read secrets from agent #178

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Robot-Framework/config/variables.robot
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ${SWITCH_SECRET} ${EMPTY}
${TEST_WIFI_SSID} ${EMPTY}
${TEST_WIFI_PSWD} ${EMPTY}
${DEVICE_TYPE} ${EMPTY}
${LOGIN} ghaf


*** Keywords ***
Expand Down Expand Up @@ -44,6 +45,25 @@ Set Variables
Set Global Variable ${ADMIN_VM} admin-vm
Set Global Variable @{VMS} ${GUI_VM} ${CHROME_VM} ${GALA_VM} ${ZATHURA_VM} ${COMMS_VM} ${BUSINESS_VM} ${ADMIN_VM}

Set Log Level NONE

${result} Run Process sh -c cat /run/secrets/dut-pass shell=true
Set Global Variable ${PASSWORD} ${result.stdout}
${result} Run Process sh -c cat /run/secrets/plug-login shell=true
Set Global Variable ${PLUG_USERNAME} ${result.stdout}
${result} Run Process sh -c cat /run/secrets/plug-pass shell=true
Set Global Variable ${PLUG_PASSWORD} ${result.stdout}
${result} Run Process sh -c cat /run/secrets/switch-token shell=true
Set Global Variable ${SWITCH_TOKEN} ${result.stdout}
${result} Run Process sh -c cat /run/secrets/switch-secret shell=true
Set Global Variable ${SWITCH_SECRET} ${result.stdout}
${result} Run Process sh -c cat /run/secrets/wifi-ssid shell=true
Set Global Variable ${TEST_WIFI_SSID} ${result.stdout}
${result} Run Process sh -c cat /run/secrets/wifi-password shell=true
Set Global Variable ${TEST_WIFI_PSWD} ${result.stdout}

Set Log Level INFO

IF $BUILD_ID != '${EMPTY}'
${config}= Read Config ../config/${BUILD_ID}.json
Set Global Variable ${JOB} ${config['Job']}
Expand Down
Loading