-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gherkin for Alert details page- ODC-5485 #8132
Gherkin for Alert details page- ODC-5485 #8132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the file names with less characters and something meaningful?
namespace: openshift-monitoring | ||
data: | ||
config.yaml: | | ||
enableUserWorkload: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add this YAMLs into testData. The PR with YAMLs folder is ready to merge. Once the PR is merged, you can add these YAMLs to YAMLs folder in testData.
@@ -7,8 +7,8 @@ Feature: Filter for Alert state and Severity | |||
Given user is at developer perspective | |||
And user is at Add page | |||
And user has created or selected namespace "aut-monitoring-alerts" | |||
# To configure the alerts on cluster - need to execute below yaml file | |||
# https://gist.githubusercontent.com/vikram-raj/27fa5c9d7e0cf223919c697d34bd2beb/raw/f85ab7a0e1f3e8a6270c124a4a97df13e5b9cb3c/ns-alert-setup.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add this YAMLs into testData. The PR with YAMLs folder is ready to merge. Once the PR is merged, you can add these YAMLs to YAMLs folder in testData.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
expr: version{job="prometheus-example-app"} | ||
- alert: VersionAlert | ||
expr: version{job="prometheus-example-app"} == 0 | ||
for: 1s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
data: | ||
config.yaml: | | ||
prometheusUserWorkload: | ||
replicas: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
9184d2e
to
19135ed
Compare
/cc @vikram-raj |
# To configure the alerts on cluster - need to execute below yaml file | ||
# https://gist.githubusercontent.com/vikram-raj/27fa5c9d7e0cf223919c697d34bd2beb/raw/f85ab7a0e1f3e8a6270c124a4a97df13e5b9cb3c/ns-alert-setup.yaml | ||
# To configure the alerts on cluster - need to execute below yaml files from monitoring YAMLs test data | ||
# cluster-monitoring-config.yaml, prometheous-example.yaml, workload-monitoring-config.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the order as we first need to apply the config.
# cluster-monitoring-config.yaml, prometheous-example.yaml, workload-monitoring-config.yaml | |
# cluster-monitoring-config.yaml, workload-monitoring-config.yaml, prometheous-example.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
expr: version{job="prometheus-example-app"} | ||
- alert: VersionAlert | ||
expr: version{job="prometheus-example-app"} == 0 | ||
for: 1s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add severity label, so that we can test the severity scenario.
for: 1s | |
for: 1s | |
labels: | |
severity: critical |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
f251d7b
to
d8eff07
Compare
Scenario: Silence alert from Alert details page | ||
Given user is on Alert details page | ||
When user clicks on Silence alert button | ||
And user update the etails and click on Silence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And user update the etails and click on Silence | |
And user update the details and click on Silence |
@regression | ||
Scenario: Alert details page | ||
Given user is on Alerts tab | ||
When user clicks on the name of the alert | ||
Then user will see Alert details page | ||
And user will see alert Metrics | ||
And user will see Name, Severity, Labels, Source, State, Alerting rule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this regression is similar to this
https://github.com/openshift/console/pull/8132/files#diff-300a611e03ff2b74764a0d4d1c10ee3e6dc7e0726afb299ab5cd2605e3c686fbR152?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is from the Alert tab in the monitoring and that one you mentioned is from the Alert rule details page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah got it. Thanks
d8eff07
to
f87cb2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/assign @makambalaji |
namespace: openshift-monitoring | ||
data: | ||
config.yaml: | | ||
enableUserWorkload: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line at the EOF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other YAML files do not have an empty line as well so I didn't add in any files. Do you want me to add in these files
expr: version{job="prometheus-example-app"} == 0 | ||
for: 1s | ||
labels: | ||
severity: critical |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add Empty line at the EOF
data: | ||
config.yaml: | | ||
prometheusUserWorkload: | ||
replicas: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line at the EOF
f87cb2f
to
978ee21
Compare
978ee21
to
d0bcc09
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: makambalaji, sanketpathak, vikram-raj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Story: https://issues.redhat.com/browse/ODC-5485