test_common.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. # Testcase OMNIA_USP_US_VFSP_TC_009
  16. # Execute common role in manager & compute nodes with os installed centos 7.9
  17. - name: OMNIA_USP_US_VFSP_TC_009
  18. hosts: manager, compute
  19. vars_files:
  20. - test_vars/test_common_vars.yml
  21. tasks:
  22. - block:
  23. - name: Call common role
  24. include_role:
  25. name: ../roles/common
  26. tags: TC_009
  27. - name: Checking ntpd service status
  28. systemd:
  29. name: ntpd
  30. register: ntpd_service
  31. tags: TC_009, VERIFY_009
  32. - name: Validating ntpd service status
  33. assert:
  34. that:
  35. - ntpd_service.status.ActiveState == 'active'
  36. fail_msg: "{{ ntpd_service_fail_msg }}"
  37. success_msg: "{{ ntpd_service_success_msg }}"
  38. tags: TC_009, VERIFY_009
  39. # Testcase OMNIA_USP_US_VFSP_TC_010
  40. # Execute common role in manager & compute nodes with common role already executed once
  41. - name: OMNIA_USP_US_VFSP_TC_010
  42. hosts: manager, compute
  43. vars_files:
  44. - test_vars/test_common_vars.yml
  45. tasks:
  46. - block:
  47. - name: Call common role
  48. include_role:
  49. name: ../roles/common
  50. tags: TC_010
  51. - name: Checking ntpd service status
  52. systemd:
  53. name: ntpd
  54. register: ntpd_service
  55. tags: TC_010, VERIFY_010
  56. - name: Validating ntpd service status
  57. assert:
  58. that:
  59. - ntpd_service.status.ActiveState == 'active'
  60. fail_msg: "{{ ntpd_service_fail_msg }}"
  61. success_msg: "{{ ntpd_service_success_msg }}"
  62. tags: TC_010, VERIFY_010