3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 ${success_return_code} 0
17 ${ns_launch_max_wait_time} 5min
18 ${ns_launch_pol_time} 30sec
19 ${ns_delete_max_wait_time} 1min
20 ${ns_delete_pol_time} 15sec
24 ${rc} ${stdout}= Run and Return RC and Output osm netslice-template-list
27 Should Be Equal As Integers ${rc} ${success_return_code}
33 ${rc} ${stdout}= Run and Return RC and Output osm netslice-template-create ${nst}
35 Should Be Equal As Integers ${rc} ${success_return_code}
42 ${rc} ${stdout}= Run and Return RC and Output osm netslice-template-delete ${nst_id}
44 Should Be Equal As Integers ${rc} ${success_return_code}
45 WAIT UNTIL KEYWORD SUCCEEDS ${delete_max_wait_time} ${delete_pol_time} Check For NST ${nst_id}
51 ${rc} ${stdout}= Run and Return RC and Output osm netslice-template-list | awk '{print $2}' | grep ${nst_id}
52 Should Not Be Equal As Strings ${stdout} ${nst_id}