-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature_tests: add openstack-network-exporter feature tests
Add tests for operator of openstack-network-exporter Signed-off-by: Aaron T. Smith <aasmith@rehdat.com>
- Loading branch information
1 parent
77d6a22
commit 3f5a76b
Showing
5 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
roles/telemetry_verify_metrics/tasks/verify_openstack_network_exporter_metrics.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
- name: Verify openstack network exporter scrapeconfigs exist | ||
ansible.builtin.include_role: | ||
name: common | ||
vars: | ||
common_cr_test_id: RHOSO-1222 | ||
common_cr_list: | ||
- kind: scrapeconfigs.monitoring.rhobs | ||
name: telemetry-openstack-network-exporter | ||
- kind: scrapeconfigs.monitoring.rhobs | ||
name: telemetry-openstack-network-exporter-tls | ||
|
||
- name: Verify node exporter container is up | ||
ansible.builtin.include_tasks: | ||
file: check_compute_node_containers.yml | ||
vars: | ||
common_container_test_id: RHOSO-1231 | ||
common_container_list: | ||
- openstack_network_exporter | ||
loop: "{{ groups['computes'] }}" | ||
loop_control: | ||
loop_var: compute_node | ||
|
||
- name: | | ||
TEST Use openstack observabilityclient to verify Openstack Network Exporter metrics are stored in prometheus | ||
RHOSO-1214 | ||
ansible.builtin.shell: | | ||
{{ openstack_cmd }} metric show --disable-rbac ovs_build_info | ||
register: result | ||
delay: 30 | ||
retries: 10 | ||
changed_when: false | ||
until: result.rc == 0 and "ovs_build_info" in result.stdout |