Library String
Library OperatingSystem
Resource %{ROBOT_DEVOPS_FOLDER}/lib/vim_lib.robot
+Variables %{ROBOT_DEVOPS_FOLDER}/resources/sol003_01-vnf_lifecycle_management.py
*** Variables ***
@{success_status_code_list} 200 201 202 204
Get Hostname
Create Session osmhit ${HOST}
&{headers} Create Dictionary Content-Type=application/json Accept=application/json
- &{data} Create Dictionary username=admin password=admin project-id=admin
+ &{data} Create Dictionary username=${osm_user} password=${osm_password} project-id=${osm_project}
${resp}= Post On Session osmhit ${auth_token_uri} json=${data} headers=${headers}
- log ${resp}
+ Log ${resp}
Pass Execution If ${resp.status_code} in ${success_status_code_list} Get Auth Token completed
Set Suite Variable ${token_status_code} ${resp.status_code}
${access_token}= Get Value From Json ${resp.json()} $..id