test_k8s_manager.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  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
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  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.
  14. ---
  15. # OMNIA_UKP_US_VFKP_TC_005
  16. # Execute k8s_manager role in manager nodes with os installed centos 7.9
  17. - name: OMNIA_UKP_US_VFKP_TC_005
  18. hosts: manager
  19. vars_files:
  20. - test_vars/test_k8s_manager_vars.yml
  21. tasks:
  22. - block:
  23. - name: Call manager role
  24. include_role:
  25. name: ../roles/k8s_manager
  26. tags: TC_005
  27. - name: Checking helm installation status
  28. command: helm version
  29. register: helm_status
  30. changed_when: false
  31. ignore_errors: True
  32. tags: TC_005, VERIFY_005
  33. - name: Validating helm installation status
  34. assert:
  35. that:
  36. - "'version.BuildInfo' in helm_status.stdout"
  37. fail_msg: "{{ helm_status_fail_msg }}"
  38. success_msg: "{{ helm_status_success_msg }}"
  39. tags: TC_005, VERIFY_005
  40. # OMNIA_UKP_US_VFKP_TC_006
  41. # Execute k8s_manager role in manager nodes with helm already installed
  42. - name: OMNIA_UKP_US_VFKP_TC_006
  43. hosts: manager
  44. vars_files:
  45. - test_vars/test_k8s_manager_vars.yml
  46. tasks:
  47. - block:
  48. - name: Call manager role
  49. include_role:
  50. name: ../roles/k8s_manager
  51. tags: TC_006, VERIFY_006
  52. - name: Checking helm installation status
  53. command: helm version
  54. register: helm_status
  55. changed_when: false
  56. ignore_errors: True
  57. tags: TC_006, VERIFY_006
  58. - name: Validating helm installation status
  59. assert:
  60. that:
  61. - "'command not found' not in helm_status.stdout"
  62. fail_msg: "{{ helm_status_fail_msg }}"
  63. success_msg: "{{ helm_status_success_msg }}"
  64. tags: TC_006, VERIFY_006