X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fsol003_common_lib.robot;h=5231e921268afe9ae924d37a8fda0d1b01103286;hb=91871c7f6b4c8205dc489073128d92482e28d95d;hp=6617e91ac2100b83d12161b1d9faad6e1e243034;hpb=8c7c4c03bbb44a3299836291380a9f1ff22b9d5a;p=osm%2Ftests.git diff --git a/robot-systest/lib/sol003_common_lib.robot b/robot-systest/lib/sol003_common_lib.robot index 6617e91..5231e92 100644 --- a/robot-systest/lib/sol003_common_lib.robot +++ b/robot-systest/lib/sol003_common_lib.robot @@ -20,6 +20,7 @@ Library JSONLibrary 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 @@ -36,7 +37,7 @@ Get Auth Token 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} Pass Execution If ${resp.status_code} in ${success_status_code_list} Get Auth Token completed