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

tests: Collector specific tests for real hw #183

Merged

Conversation

dashmage
Copy link
Contributor

@dashmage dashmage commented Mar 4, 2024

Adds collector specific tests most notably for redfish.

For the redfish test, two new env vars are introduced for the username and password credentials. After successful authentication to the redfish service, the redfish specific metrics are fetched.

Also fixes "ipmi_sensor" typo in parse_metrics function and test_collector_specific_metrics_available.

The documentation for letting the user know that they have to add these env vars for redfish will come as part of a later PR which will cover all prerequisite steps for real h/w testing.

@dashmage dashmage requested review from a team, Pjack, aieri, agileshaw, jneo8 and rgildein March 4, 2024 06:22
Pjack
Pjack previously approved these changes Mar 4, 2024
Copy link

@Pjack Pjack left a comment

Choose a reason for hiding this comment

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

LGTM

Pjack
Pjack previously approved these changes Mar 5, 2024
@dashmage dashmage force-pushed the bseng-1381-collector-specific-tests branch from 9332367 to 80987e5 Compare March 5, 2024 12:42
@dashmage
Copy link
Contributor Author

dashmage commented Mar 5, 2024

Rebased changes from master branch

Pjack
Pjack previously approved these changes Mar 6, 2024
tests/functional/test_charm.py Show resolved Hide resolved
tests/functional/test_charm.py Show resolved Hide resolved
sudeephb
sudeephb previously approved these changes Mar 6, 2024
Copy link
Contributor

@sudeephb sudeephb left a comment

Choose a reason for hiding this comment

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

LGTM

Adds collector specific tests most notably for redfish.

For the redfish test, two new env vars are introduced for the username
and password credentials. After successful authentication to the redfish
service, the redfish specific metrics are fetched.

Also fixes "ipmi_sensor" typo in parse_metrics function and
test_collector_specific_metrics_available.
@dashmage dashmage dismissed stale reviews from sudeephb and Pjack via 7db4a5c March 6, 2024 17:21
@dashmage dashmage force-pushed the bseng-1381-collector-specific-tests branch from 80987e5 to 7db4a5c Compare March 6, 2024 17:21
@dashmage dashmage requested a review from jneo8 March 6, 2024 17:22
@dashmage
Copy link
Contributor Author

dashmage commented Mar 6, 2024

Had to rebase from master again due to new changes

tests/functional/test_charm.py Outdated Show resolved Hide resolved
tests/functional/test_charm.py Outdated Show resolved Hide resolved
tests/functional/test_charm.py Outdated Show resolved Hide resolved
Copy link
Member

@gabrielcocenza gabrielcocenza left a comment

Choose a reason for hiding this comment

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

My comments are not blockers, just suggestions

tests/functional/test_charm.py Outdated Show resolved Hide resolved
@gabrielcocenza gabrielcocenza self-requested a review March 6, 2024 23:17
Copy link

@Pjack Pjack left a comment

Choose a reason for hiding this comment

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

LGTM

@Pjack Pjack dismissed gabrielcocenza’s stale review March 7, 2024 11:39

Ashley is not available tomorrow and the code was been revised according to the comment.

Copy link
Contributor

@sudeephb sudeephb left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

Copy link
Member

@gabrielcocenza gabrielcocenza left a comment

Choose a reason for hiding this comment

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

LGTM

@dashmage dashmage merged commit 86e3505 into canonical:master Mar 7, 2024
5 checks passed
@dashmage dashmage deleted the bseng-1381-collector-specific-tests branch March 7, 2024 13:14
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.

5 participants