Library Collections
Resource %{ROBOT_DEVOPS_FOLDER}/lib/project_lib.robot
+Resource %{ROBOT_DEVOPS_FOLDER}/lib/user_lib.robot
Force Tags quotas_01 cluster_main daily regression
# User name and password for project
${user_name} quotas_01_user
${user_password} Quotas_01_pass
+${user_new_password} Quotas_01_new_pass
${success_return_code} 0
Should Be Equal As Integers ${rc} ${success_return_code}
Check If User Is Assigned To Project ${user_name} ${project_1_name}
Check If User Is Assigned To Project ${user_name} ${project_2_name}
+ Update User Password ${user_name} ${user_password} ${user_new_password}
Change First Project Name to Third Project Name
Create VNFDs On Third Project Until Exceed Quota
- Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v1;product-name=v1'
- Run Keyword And Expect Error * Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v2;product-name=v2'
+ Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v1;product-name=v1'
+ Run Keyword And Expect Error * Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v2;product-name=v2'
Increase Third Project Quotas
Create More VNFDs On Third Project Until Exceed Quota
- Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v2;product-name=v2'
- Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v3;product-name=v3'
- Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v4;product-name=v4'
- Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v5;product-name=v5'
- Run Keyword And Expect Error * Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=v6;product-name=v6'
+ Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v2;product-name=v2'
+ Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v3;product-name=v3'
+ Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v4;product-name=v4'
+ Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v5;product-name=v5'
+ Run Keyword And Expect Error * Create VNFD In Project ${project_3_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=v6;product-name=v6'
Create VNFDs On Second Project Until Exceed Quota
- Create VNFD In Project ${project_2_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=vp2_1;product-name=vp2_1'
- Run Keyword And Expect Error * Create VNFD In Project ${project_2_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_password} override='id=vp2_2;product-name=vp2_2'
+ Create VNFD In Project ${project_2_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=vp2_1;product-name=vp2_1'
+ Run Keyword And Expect Error * Create VNFD In Project ${project_2_name} '%{PACKAGES_FOLDER}/${vnfd_pkg}' ${user_name} ${user_new_password} override='id=vp2_2;product-name=vp2_2'
Check Project Scopes
- ${rc} ${stdout}= Run And Return RC And Output osm --project ${project_3_name} --password ${user_password} --user ${user_name} vnfpkg-show vp2_1
+ ${rc} ${stdout}= Run And Return RC And Output osm --project ${project_3_name} --password ${user_new_password} --user ${user_name} vnfpkg-show vp2_1
Log ${stdout}
Should Not Be Equal As Integers ${rc} ${success_return_code}
- ${rc} ${stdout}= Run And Return RC And Output osm --project ${project_2_name} --password ${user_password} --user ${user_name} vnfpkg-show v1
+ ${rc} ${stdout}= Run And Return RC And Output osm --project ${project_2_name} --password ${user_new_password} --user ${user_name} vnfpkg-show v1
Log ${stdout}
Should Not Be Equal As Integers ${rc} ${success_return_code}
Delete Second Project VNFD
[Tags] cleanup
- Delete VNFD In Project ${project_2_name} vp2_1 ${user_name} ${user_password}
+ Delete VNFD In Project ${project_2_name} vp2_1 ${user_name} ${user_new_password}
Delete Third Project VNFDs
[Tags] cleanup
- Delete VNFD In Project ${project_3_name} v1 ${user_name} ${user_password}
- Delete VNFD In Project ${project_3_name} v2 ${user_name} ${user_password}
- Delete VNFD In Project ${project_3_name} v3 ${user_name} ${user_password}
- Delete VNFD In Project ${project_3_name} v4 ${user_name} ${user_password}
- Delete VNFD In Project ${project_3_name} v5 ${user_name} ${user_password}
+ Delete VNFD In Project ${project_3_name} v1 ${user_name} ${user_new_password}
+ Delete VNFD In Project ${project_3_name} v2 ${user_name} ${user_new_password}
+ Delete VNFD In Project ${project_3_name} v3 ${user_name} ${user_new_password}
+ Delete VNFD In Project ${project_3_name} v4 ${user_name} ${user_new_password}
+ Delete VNFD In Project ${project_3_name} v5 ${user_name} ${user_new_password}
Delete Second Project After Removing User From It
*** Keywords ***
Suite Cleanup
- Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_2_name} vp2_1 ${user_name} ${user_password}
- Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v1 ${user_name} ${user_password}
- Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v2 ${user_name} ${user_password}
- Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v3 ${user_name} ${user_password}
- Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v4 ${user_name} ${user_password}
- Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v5 ${user_name} ${user_password}
+ Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_2_name} vp2_1 ${user_name} ${user_new_password}
+ Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v1 ${user_name} ${user_new_password}
+ Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v2 ${user_name} ${user_new_password}
+ Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v3 ${user_name} ${user_new_password}
+ Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v4 ${user_name} ${user_new_password}
+ Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete VNFD In Project ${project_3_name} v5 ${user_name} ${user_new_password}
Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Project ${project_1_name}
Run Keyword If Any Tests Failed Delete Project ${project_2_name}
Run Keyword If Any Tests Failed Run Keyword And Ignore Error Delete Project ${project_3_name}