X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=robot-systest%2Flib%2Frest_lib.robot;h=ced8a2164b91bc5d6443ad09cdb5371b7de1cc10;hb=23ff8f980f66ef57fb4d254336a018e3a697a187;hp=7541a52860515f2c2ce940eeb29ca3937addf5fb;hpb=68eac4adc72e599c83053a8806dfd61986237369;p=osm%2Ftests.git diff --git a/robot-systest/lib/rest_lib.robot b/robot-systest/lib/rest_lib.robot index 7541a52..ced8a21 100644 --- a/robot-systest/lib/rest_lib.robot +++ b/robot-systest/lib/rest_lib.robot @@ -19,13 +19,16 @@ Library yaml 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 ${auth_token_uri} /osm/admin/v1/tokens ${HOST} ${EMPTY} +${osm_user} %{OSM_USER=admin} +${osm_password} %{OSM_PASSWORD=admin} +${osm_project} %{OSM_PROJECT=admin} *** Keywords *** Get Auth Token @@ -81,13 +84,6 @@ Get ID Set Suite Variable ${value} ${id[0]} [Return] ${value} -Update Json Value - [Arguments] ${JsonInput} ${key} - ${json_path}= Read Directory - ${json_obj}= Load JSON From File ${json_path}/${JsonInput} - ${updated_json_obj}= JSONLibrary.Update Value To Json ${json_obj} $..${key} ${created_vim_account_id} - Set Suite Variable ${updated_json_obj} - Get Api Request [Arguments] ${uri} [Documentation] Keyword to Get API Request