# See the License for the specific language governing permissions and
# limitations under the License.
# python3 -m rflint testsuites
-echo "TEST"
+echo "Checking tabs in robot files. No tabs should be present"
+tabs_in_testsuite="y"
+tabs_in_lib="y"
+! grep -ri " " robot-systest/testsuite && tabs_in_testsuite=""
+! grep -ri " " robot-systest/lib && tabs_in_lib=""
+[ -n "${tabs_in_testsuite}" ] && echo "There are tabs in robot-systest/testsuite" && exit 1
+[ -n "${tabs_in_lib}" ] && echo "There are tabs in robot-systest/lib" && exit 1
+echo "No tabs are present in robot files"
+exit 0
+
${rc} ${stdout}= Run and Return RC and Output osm nsi-list --filter name="${slice_name}"
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
- Should Contain Any ${stdout} READY BROKEN configured
+ Should Contain Any ${stdout} READY BROKEN configured
Check For Network Slice Instance For Failure
Network Slice Instance Test
[Documentation] Instantiates the NST recently onboarded and sets the instantiation id as a suite variable (nsi_id)
- ${id}= Create Network Slice ${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey}
+ ${id}= Create Network Slice ${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey}
Set Suite Variable ${nsi_id} ${id}
[Documentation] Instantiates the First NST recently onboarded (nst_name) and sets the instantiation id as a suite variable (nsi_id)
... The slice contains 3 NS (1 shared)
- ${id}= Create Network Slice ${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey}
+ ${id}= Create Network Slice ${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey}
Set Suite Variable ${nsi_id} ${id}
[Documentation] Instantiates the Second NST recently onboarded (nst2_name) and sets the instantiation id as a suite variable (nsi2_id)
... The slice contains 2 NS (1 shared)
- ${id}= Create Network Slice ${nst2_name} %{VIM_TARGET} ${slice2_name} ${nst_config} ${publickey}
+ ${id}= Create Network Slicea ${nst2_name} %{VIM_TARGET} ${slice2_name} ${nst_config} ${publickey}
Set Suite Variable ${nsi2_id} ${id}
First Network Slice Ns Count
[Documentation] Counts the NS in both slice instances and shoul be equal to 4
- ${slice1_count}= Get Slice Ns Count ${slice_name}
- ${slice2_count}= Get Slice Ns Count ${slice2_name}
+ ${slice1_count}= Get Slice Ns Count ${slice_name}
+ ${slice2_count}= Get Slice Ns Count ${slice2_name}
${together}= Evaluate ${slice1_count} + ${slice2_count}
Should Be Equal As Integers ${together} 4
Second Network Slice Ns Count
[Documentation] Counts the NS in both slice instances and should be equal to 2
- ${slice1_count}= Get Slice Ns Count ${slice_name}
- ${slice2_count}= Get Slice Ns Count ${slice2_name}
+ ${slice1_count}= Get Slice Ns Count ${slice_name}
+ ${slice2_count}= Get Slice Ns Count ${slice2_name}
${together}= Evaluate ${slice1_count} + ${slice2_count}
Should Be Equal As Integers ${together} 2