Skip to content

Commit

Permalink
Read secrets from agent
Browse files Browse the repository at this point in the history
Signed-off-by: Mariia Azbeleva <[email protected]>
  • Loading branch information
azbeleva committed Nov 28, 2024
1 parent 149c6db commit 0cd6204
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Robot-Framework/config/variables.robot
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ Set Variables
Set Global Variable ${APPFLOWY_VM} appflowy-vm
Set Global Variable ${BUSINESS_VM} business-vm

Set Log Level NONE

Set Global Variable ${PLUG_USERNAME} [email protected]
Set Global Variable ${LOGIN} ghaf
${result} Run Process sh -c cat /run/secrets/dut-pass shell=true
Set Global Variable ${PASSWORD} ghaf
${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

0 comments on commit 0cd6204

Please sign in to comment.