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

Add itest for multi unit alerts #21

Merged
merged 5 commits into from
Mar 11, 2022
Merged

Add itest for multi unit alerts #21

merged 5 commits into from
Mar 11, 2022

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Mar 10, 2022

This PR adds an itest that addresses canonical/prometheus-k8s-operator#239:
Now that juju_unit is no longer added to rule files, this test confirms that alerts still fire per unit (not only from the leader unit), and are correctly labeled as such.

@sed-i sed-i requested review from Abuelodelanada and a team March 10, 2022 20:08
Copy link
Contributor

@mmanciop mmanciop left a comment

Choose a reason for hiding this comment

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

Red tests are red

@rbarry82
Copy link

Red tests are red

No pebble socket. Possible juju failure. Rerunning

@sed-i
Copy link
Contributor Author

sed-i commented Mar 10, 2022

Red tests are red

This passed locally but now here fails for

  Full diff:
  - ['avalanche/0', 'avalanche/1']
  + []

i.e. seems like no juju_unit labels on the alerts, in contrast to expectation. Investigating.

@sed-i
Copy link
Contributor Author

sed-i commented Mar 11, 2022

This test is flaky because the charm I uploaded to edge has a stray rule file:
canonical/charmcraft#710

tox.ini Show resolved Hide resolved
@sed-i sed-i merged commit 760860b into main Mar 11, 2022
@sed-i sed-i deleted the feature/itest_unit_number branch March 11, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants