Skip to content

Commit

Permalink
[ci] Add endpoint tests to the logging job (#220)
Browse files Browse the repository at this point in the history
* [ci] Add endpoint tests to the logging job
  
   The test checks for the various openstack endpoints that we expect to
exist

Co-authored-by: "Alex Yefimov <[email protected]>"

* [ci] Add vars/osp18_env to the logging playbook
   It contains the "openstack_cmd" var required for the endpoint tests

* [common] Add documentation and default for openstack_cmd
  • Loading branch information
elfiesmelfie authored Feb 14, 2025
1 parent 956c524 commit b240e82
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions ci/logging_tests_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
environment:
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
PATH: "{{ cifmw_path }}"
vars_files:
- vars/osp18_env.yml
vars:
common_pod_test_id: "RHOSO-12672"
common_pod_status_str: "Running"
Expand All @@ -23,6 +25,25 @@
- openshift
- openstack-operators
- openshift-logging
common_endpoint_test_id: "RHOSO-12682"
common_endpoint_list:
- [nova,compute,public]
- [nova,compute,internal]
- [placement,placement,public]
- [placement,placement,internal]
- [swift,object-store,public]
- [swift,object-store,internal]
- [cinderv3,volumev3,public]
- [cinderv3,volumev3,internal]
- [barbican,key-manager,public]
- [barbican,key-manager,internal]
- [keystone,identity,public]
- [keystone,identity,internal]
- [glance,image,public]
- [glance,image,internal]
- [neutron,network,public]
- [neutron,network,internal]

common_service_test_id: "RHOSO-12675"
common_service_nspace: openshift-logging
common_service_list:
Expand Down
3 changes: 2 additions & 1 deletion roles/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ For endpoint_tests.yml tasks:
- polarion ID number for each test.
common_endpoint_list
- list of endpoints to validate

openstack_cmd
- The command used to run openstack

For project_tests.yml tasks:

Expand Down
2 changes: 2 additions & 0 deletions roles/common/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
openstack_cmd: "openstack"

0 comments on commit b240e82

Please sign in to comment.