Skip to content

Commit b2b30a1

Browse files
authored
Merge branch 'master' into test_alerts_detect_observability_api
2 parents ec77572 + a29eec2 commit b2b30a1

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: "Get the observability strategy and set the observability_api"
310
ansible.builtin.include_tasks:
411
file: get_observability_api.yml

roles/test_sensubility/tasks/test_health_status.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@
3737
changed_when: false
3838
failed_when: container_nodes.stdout_lines|length != 0
3939

40-
40+
- name: "Wait 1 minute before checking that health status of container has been changed"
41+
ansible.builtin.pause:
42+
minutes: 1
4143

4244
- name: RHELOSP-176036
4345
# Description: Check that health status of container changed to 0
4446
ansible.builtin.shell:
45-
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
47+
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
4648
# /usr/bin/curl -k {{ prom_auth_string }} \
4749
# -g https://{{ prom_url }}/api/v1/query? \
4850
# --data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="{{ groups['overcloud_nodes'][0] }}"}[10m])' \
@@ -64,14 +66,18 @@
6466
changed_when: false
6567

6668

69+
- name: "Wait 1 minute before checking that health status of container has been changed"
70+
ansible.builtin.pause:
71+
minutes: 1
72+
6773

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

0 commit comments

Comments
 (0)