X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fbasic_15-rbac_configurations.robot;h=c57b11c40a7385180d7fd1acbde654dde9377f3b;hb=090cb5cf5ad79439db79568c55a1ad290d52614c;hp=6cc62cc413afe69d9c23356816eb92bec7079fac;hpb=576487e73575ad72071aa5680b8d17b2d8ff8027;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/basic_15-rbac_configurations.robot b/robot-systest/testsuite/basic_15-rbac_configurations.robot index 6cc62cc..c57b11c 100644 --- a/robot-systest/testsuite/basic_15-rbac_configurations.robot +++ b/robot-systest/testsuite/basic_15-rbac_configurations.robot @@ -11,7 +11,7 @@ # limitations under the License. *** Settings *** -Documentation [BASIC-15] RBAC Configurations. +Documentation [BASIC-15] RBAC Configurations. Library OperatingSystem Library String @@ -21,7 +21,7 @@ Resource %{ROBOT_DEVOPS_FOLDER}/lib/user_lib.robot Resource %{ROBOT_DEVOPS_FOLDER}/lib/project_lib.robot Resource %{ROBOT_DEVOPS_FOLDER}/lib/role_lib.robot -Force Tags basic_15 cluster_main daily regression +Force Tags basic_15 cluster_main daily regression azure Suite Teardown Run Keyword And Ignore Error Suite Cleanup @@ -29,7 +29,8 @@ Suite Teardown Run Keyword And Ignore Error Suite Cleanup *** Variables *** # User, project and roles to use ${user_name} basic_15_test_user -${user_password} basic_15_user_pass +${user_password} Basic_15_user_pass +${user_new_password} Basic_15_new_pass ${user_role} project_user ${user_project} admin ${project_name} basic_15_test_project @@ -47,14 +48,15 @@ Create And Validate User Assign Role To User - Update User Role ${user_name} ${user_project} ${user_role} + Update User Role ${user_name} ${user_project} ${user_role} Check If User Is Assigned To Project ${user_name} ${user_project} - Check If User Has Role ${user_name} ${user_role} ${user_project} + Check If User Has Role ${user_name} ${user_role} ${user_project} Run Action As User - ${rc} ${stdout}= Run And Return RC And Output OSM_USER=${user_name} OSM_PROJECT=${user_project} OSM_PASSWORD=${user_password} osm ns-list + Update User Password ${user_name} ${user_password} ${user_new_password} + ${rc} ${stdout}= Run And Return RC And Output OSM_USER=${user_name} OSM_PROJECT=${user_project} OSM_PASSWORD=${user_new_password} osm ns-list Should Be Equal As Integers ${rc} ${success_return_code} @@ -86,7 +88,7 @@ Delete Allocated Resources *** Keywords *** Suite Cleanup - Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete User ${user_name} - Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Role ${role_name} - Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Project ${project_name} - Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Project ${new_project_name} + Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete User ${user_name} + Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Role ${role_name} + Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Project ${project_name} + Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Project ${new_project_name}