Remove unnecessary grep and tr from some tests
[osm/tests.git] / robot-systest / testsuite / basic_19-vnf_ip_profile.robot
index 8922b49..6701096 100644 (file)
@@ -39,7 +39,7 @@ ${nsd_name}   ipprofile_2vm-ns
 ${ns_name}   basic_19
 ${ns_config}   {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
 
-# SSH keys and username to be used 
+# SSH keys and username to be used
 ${publickey}   %{HOME}/.ssh/id_rsa.pub
 ${username}   ubuntu
 
@@ -75,19 +75,19 @@ Get Vnf Info
     Set Suite Variable   ${vnf_id}   ${vnfr_list}[0]
     ${ip}   Get Vnf Management Ip Address   ${ns_id}   ${vnf_member_index_1}
     Set Suite Variable   ${vnf_ipmgmt}   ${ip}
-    log   ${vnf_ipmgmt}
+    Log   ${vnf_ipmgmt}
 
 
 Check Vnf IPs
 
-    Variable Should Exist   ${vnf_id}   msg=VNF is not available  
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnf-show ${vnf_id} --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq '."ip-address"' | tr -d \\"
+    Variable Should Exist   ${vnf_id}   msg=VNF is not available
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnf-show ${vnf_id} --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"'
     Should Be Equal As Integers   ${rc}   ${success_return_code}   msg=${stdout}   values=False
     Should Match Regexp   ${stdout}   ${internal_prefix}   msg=${stdout} doesn't match subnet's regexp ${internal_prefix}
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnf-show ${vnf_id} --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq '."ip-address"' | tr -d \\"
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnf-show ${vnf_id} --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"'
     Should Be Equal As Integers   ${rc}   ${success_return_code}   msg=${stdout}   values=False
     Should Match Regexp   ${stdout}   ${internal_prefix}   msg=${stdout} doesn't match subnet's regexp ${internal_prefix}
-    
+
 
 Delete NS Instance
     [Tags]   cleanup