Skip to content
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

Conversation

sanketpathak
Copy link
Contributor

Copy link
Contributor

@gajanan-more gajanan-more left a 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
Copy link
Contributor

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

Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@andrewballantyne
Copy link
Contributor

/cc @vikram-raj
/uncc @andrewballantyne

@openshift-ci-robot openshift-ci-robot requested review from vikram-raj and removed request for andrewballantyne February 11, 2021 21:17
# 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
Copy link
Member

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.

Suggested change
# cluster-monitoring-config.yaml, prometheous-example.yaml, workload-monitoring-config.yaml
# cluster-monitoring-config.yaml, workload-monitoring-config.yaml, prometheous-example.yaml

Copy link
Contributor Author

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
Copy link
Member

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.

Suggested change
for: 1s
for: 1s
labels:
severity: critical

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@sanketpathak sanketpathak force-pushed the Alert-details-page-ODC-5485 branch 3 times, most recently from f251d7b to d8eff07 Compare February 15, 2021 13:24
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And user update the etails and click on Silence
And user update the details and click on Silence

Comment on lines +80 to +86
@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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah got it. Thanks

Copy link
Member

@vikram-raj vikram-raj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2021
@sanketpathak
Copy link
Contributor Author

/assign @makambalaji

namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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
Copy link
Contributor

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

@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed lgtm Indicates that a PR is ready to be merged. labels Feb 19, 2021
@openshift-ci-robot openshift-ci-robot added component/pipelines Related to pipelines-plugin and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 19, 2021
@makambalaji
Copy link
Contributor

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 19, 2021
@openshift-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2021
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

4 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 099bf85 into openshift:master Feb 19, 2021
@spadgett spadgett added this to the v4.8 milestone Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console component/pipelines Related to pipelines-plugin lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants