Skip to content

Commit 54dfd20

Browse files
authored
Merge branch 'master' into rename_tests
2 parents 3e3ae80 + a29eec2 commit 54dfd20

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

.zuul.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
- callback_plugins/.*
3535
- README*
3636
- .*/*.md
37+
- roles/client_side_tests/.*
38+
- roles/test_alerts/.*
39+
- roles/test_collectd/.*
40+
- roles/test_metrics_retention/.*
41+
- roles/test_observability_strategy/.*
42+
- roles/test_qdr/.*
43+
- roles/test_sensubility/.*
44+
- roles/test_snmp_traps/.*
45+
- roles/test_verify_email/.*
3746

3847
- job:
3948
name: functional-logging-tests-osp18
@@ -100,6 +109,7 @@
100109
- feature-verification-tests-noop
101110
- openstack-k8s-operators-content-provider:
102111
override-checkout: main
112+
irrelevant-files: *irrelevant_files
103113
- functional-tests-on-osp18
104114
- functional-logging-tests-osp18
105115
- functional-graphing-tests-osp18

roles/telemetry_graphing/files/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { defineConfig } = require('cypress')
22
module.exports = defineConfig({
33
e2e: {
4-
baseUrl: 'https://console-openshift-console.apps-crc.testing',
4+
baseUrl: 'https://console-openshift-console.apps-crc.testing/login',
55
specPattern: 'cypress/integration/**/*.{js,jsx,ts,tsx}',
66
supportFile: false,
77
},

roles/telemetry_graphing/files/dashboard-openstack-cloud.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ describe('OpenShift Console Dashboard Test', () => {
1919
}
2020
});
2121

22+
2223
});
2324

2425
it('should load and validate the OpenStack dashboards', () => {
@@ -36,11 +37,9 @@ describe('OpenShift Console Dashboard Test', () => {
3637
dashboards.forEach(dashboard => {
3738
cy.visit(`https://console-openshift-console.apps-crc.testing/monitoring/dashboards${dashboard.url}`);
3839

39-
cy.wait(5000);
40-
4140
// Wait for the dashboard to load and take a screenshot
42-
cy.get('div[data-test-id="dashboard"]', { timeout: 10000 })
43-
.find('[data-test-id="panel-"], [data-test-id="panel-cpu"], [data-test-id="panel-overview"]')
41+
cy.get('div[data-test-id="dashboard"]', { timeout: 50000 })
42+
.find('[data-test-id^="panel-"]')
4443

4544
cy.wait(5000);
4645
cy.screenshot(dashboard.screenshot);

roles/test_alerts/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
---
2+
- name: "Set the prom auth"
3+
ansible.builtin.include_role:
4+
name: client_side_tests
5+
tasks_from: get_prom_info.yml
6+
vars:
7+
prom_auth_method: token
8+
29
- name: "Test Creating an alert rule in Prometheus"
310
ansible.builtin.include_tasks:
411
file: test_create_an_alert.yml

roles/test_sensubility/tasks/test_health_status.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
changed_when: false
3535
failed_when: container_nodes.stdout_lines|length != 0
3636

37-
37+
- name: "Wait 1 minute before checking that health status of container has been changed"
38+
ansible.builtin.pause:
39+
minutes: 1
3840

3941
- name: RHELOSP-176036 Check that health status of container changed to 0
4042
ansible.builtin.shell:
41-
cmd: /usr/bin/curl -k {{ prom_auth_string }} -g https://{{ prom_url }}/api/v1/query? --data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="{{ groups['overcloud_nodes'][0] }}"}[10m])' | grep -oP '(?<="value":).*' | awk -F, '{ print $2 }' | grep -o '[0-9]\+' | grep 0 | wc -l
43+
cmd: /usr/bin/curl -k {{ prom_auth_string }} -g https://{{ prom_url }}/api/v1/query? --data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="controller-0.redhat.local"}[10m])' | grep -oP '(?<="value":).*' | awk -F, '{ print $2 }' | grep -o '[0-9]\+' | grep 0 | wc -l
4244
# /usr/bin/curl -k {{ prom_auth_string }} \
4345
# -g https://{{ prom_url }}/api/v1/query? \
4446
# --data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="{{ groups['overcloud_nodes'][0] }}"}[10m])' \
@@ -59,13 +61,17 @@
5961
changed_when: false
6062

6163

64+
- name: "Wait 1 minute before checking that health status of container has been changed"
65+
ansible.builtin.pause:
66+
minutes: 1
67+
6268

6369
- name: RHELOSP-176038 Check that health status of container changed to 1
6470
ansible.builtin.shell:
6571
cmd: >-
6672
/usr/bin/curl -k {{ prom_auth_string }} \
6773
-g https://{{ prom_url }}/api/v1/query? \
68-
--data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="{{ groups['overcloud_nodes'][0] }}"}[10m])' \
74+
--data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="controller-0.redhat.local"}[10m])' \
6975
| grep -oP '(?<="value":).*' | awk -F, '{ print $2 }' | grep -o '[0-9]\+' | grep 1 | wc -l
7076
register: output
7177
changed_when: false

0 commit comments

Comments
 (0)