test_control_plane_vars.yml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # Copyright 2022 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. #usage: test_control_plane_validation.yml
  16. port_no: 22
  17. os_name: CentOS
  18. os_name_rocky: rocky
  19. os_name_leap: leap
  20. os_version: '8.4'
  21. internet_status: "Failed. No Internet connection. Make sure network is up."
  22. check_os_success_msg: "OS and Version are supported"
  23. check_os_fail_msg: "Unsupported OS or OS version. OS should be {{ os_name }} and Version should be {{ os_version }} or more"
  24. input_params_folder: "../input_params/"
  25. control_plane_dir: "../"
  26. control_plane_validation_script_path: test_control_plane_validation.yml
  27. input_files_tc01:
  28. - "test_vars/base_vars.yml"
  29. - "test_vars/login_vars.yml"
  30. input_files_tc02:
  31. - "test_vars/login_vars.yml"
  32. input_config_check_success_msg: "control_plane.yml validation passed"
  33. input_config_check_fail_msg: "control_plane.yml validation failed"
  34. install_package_success_msg: "{{item}} is installed"
  35. install_package_fail_msg: "{{item}} is not installed"
  36. login_vars_filename: "../input_params/login_vars.yml"
  37. login_vars_fail_msg: "Login vars is not encrypted"
  38. login_vars_success_msg: "Login vars is encrypted"
  39. fw_update_false: "firmware_update_required: false"
  40. fw_update_true: "firmware_update_required: true"
  41. fw_success_validation: "Validation Success for firmware update"
  42. fw_fail_validation: "Validation Failed for firmware update"
  43. docker_success_validation: "Docker Validated successfully"
  44. docker_fail_validation: "Docker not validated"
  45. test_package: 'jq'
  46. check_pods_success_msg: "Pod is running"
  47. check_pods_fail_msg: "Pods is not running"
  48. nfs_share_success_msg: "NFS Server is running"
  49. nfs_share_fail_msg: "NFS Server is not running"
  50. nfs_mount_Path: "/var/nfs_repo"
  51. nfs_mount_success_msg: "NFS repo is mounted"
  52. nfs_mount_fail_msg: "NFS repo is not mounted"
  53. check_iso_path: '/var/nfs_repo/unattended_centos7.iso'
  54. check_iso_success_msg: "ISO is present in the NFS repo"
  55. check_iso_fail_msg: "ISO is not present in the NFS repo"
  56. pod_service_check_fail_msg: "Service is not running"
  57. pod_service_check_success_msg: "Service is up and running"
  58. network_config_pod_success_msg: "Network-Config Pod is running"
  59. network_config_pod_fail_msg: "Network-Config Pod is not running"
  60. awx_pod_success_msg: "awx pod is up and running."
  61. awx_pod_fail_msg: "awx pod is not running"
  62. pvc_stat_success_msg: "pvc stat is running"
  63. pvc_stat_fail_msg: "pvc stat is not running"
  64. svc_stat_success_msg: "svc stat is running"
  65. svc_stat_fail_msg: "svc stat is not running"
  66. svc_conn_success_msg: "Connection to svc is successful at"
  67. svc_conn_fail_msg: "Connection to svc failed at: "
  68. cobbler_pod_success_msg: "Cobbler service is running"
  69. cobbler_pod_fail_msg: "Cobbler service is not running"
  70. subnet_manager_success_msg: "Subnet Manager is running"
  71. subnet_manager_fail_msg: "Subnet Manager is not running"
  72. cron_jobs_success_msg: "Cron jobs are running"
  73. cron_jobs_fail_msg: "Cron jobs are not running"
  74. container_info: "CONTAINER_RUNNING"
  75. ethernet_true: "ethernet_switch_support: true"
  76. ethernet_false: "ethernet_switch_support: false"
  77. powervault_true: "powervault_support: true"
  78. powervault_false: "powervault_support: false"
  79. infiniband_true: "ib_switch_support: true"
  80. infiniband_false: "ib_switch_support: false"
  81. # Update
  82. docker_user: "User"
  83. docker_password: "Password"
  84. valid_docker_creds: "Credentials are valid"
  85. invalid_docker_creds: "Please input valid docker username and password in test_control_plane_vars.yml"
  86. #Usage: Grafana Test Cases
  87. grafana_pod_success_msg: "grafana pod is up and running."
  88. grafana_pod_fail_msg: "grafana pod is not running"
  89. grafana_pvc_stat_success_msg: "grafana pvc stat is running"
  90. grafana_pvc_stat_fail_msg: "grafana pvc stat is not running"
  91. grafana_svc_stat_success_msg: "grafana svc stat is running"
  92. grafana_svc_stat_fail_msg: "grafana svc stat is not running"
  93. grafana_loki_svc_stat_success_msg: "grafana loki svc stat is running"
  94. grafana_loki_svc_stat_fail_msg: "grafana loki svc stat is not running"
  95. grafana_loki_svc_conn_success_msg: "Connection to grafana loki svc is successful at"
  96. grafana_loki_svc_conn_fail_msg: "Connection to grafana loki svc failed at: "
  97. grafana_svc_conn_success_msg: "Connection to grafana svc is successful at"
  98. grafana_svc_conn_fail_msg: "Connection to grafana svc failed at: "
  99. prometheus_alertmanager_pod_success_msg: "Prometheus alertmanager Pod is running"
  100. prometheus_alertmanager_pod_fail_msg: "Prometheus alertmanager Pod is not running"
  101. prometheus_node_exporter_pod_success_msg: "Prometheus node-exporter Pod is running"
  102. prometheus_node_exporter_pod_fail_msg: "Prometheus node-exporter Pod is not running"
  103. prometheus_alertmanager_svc_stat_success_msg: "prometheus alertmanager svc stat is running"
  104. prometheus_alertmanager_svc_stat_fail_msg: "prometheus alertmanager svc stat is not running"
  105. prometheus_node_exporter_svc_stat_success_msg: "prometheus node-exporter svc stat is running"
  106. prometheus_node_exporter_svc_stat_fail_msg: "prometheus node-exporter svc stat is not running"
  107. monitoring_pod_svc_success_msg: "monitoring pod svc stat is running"
  108. monitoring_pod_svc_fail_msg: "monitoring pod svc stat is not running"
  109. grafana_loki_port: 3100
  110. grafana_port: 5000
  111. #Usage: AppArmor Test Cases
  112. apparmor_true: "Y"
  113. apparmor_enabled_success_msg: "apparmor is enabled"
  114. apparmor_enabled_fail_msg: "apparmor is not enabled"
  115. apparmor_module: "apparmor module is loaded."
  116. apparmor_status_success_msg: "apparmor profiles are loaded."
  117. apparmor_status_fail_msg: "apparmor profiles are not loaded."
  118. apparmor_passwd_profile: "usr.bin.passwd"
  119. apparmor_profile_success_msg: "usr.bin.passwd profiles is available in /extra-profiles/"
  120. apparmor_profile_fail_msg: "usr.bin.passwd profiles is not available in /extra-profiles/"
  121. apparmor_nscd: "nscd"
  122. apparmor_not_unconfined_success_msg: "nscd running executables which are currently confined by an AppArmor profile"
  123. apparmor_not_unconfined_fail_msg: "nscd profile currently unconfined by an AppArmor profile"
  124. apparmor_auditd: "/usr/sbin/auditd (/sbin/auditd) not confined"
  125. apparmor_unconfined_success_msg: "auditd currently unconfined by an AppArmor profile"
  126. apparmor_unconfined_fail_msg: "(/sbin/auditd) currently not unconfined by an AppArmor profile"