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: Add hw dependent tests for redfish cred validation #204

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

dashmage
Copy link
Contributor

@dashmage dashmage commented Mar 26, 2024

Adds test_redfish_credential_validation which sets the redfish credentials and checks if the charm is funtioning as intended. This is necessary for hardware dependent tests since the charm only goes to active state once the correct redfish credentials are configured (assuming redfish is present on the underlying machine).

test_build_and_deploy is broken up into smaller tests so that they are easier to manage. Also modifies logic in conftest.py so that all these tests are executed whether they're hw dependent or independent.

test_redfish_metrics has also been modified since we are setting the redfish credentials as part of the earlier test. The resource based tests (test_resource_in_correct_location, test_wrong_resource_attached and test_resource_clean_up) have been moved towards the end of TestCharmWithHW so that all the metrics based tests can be grouped together in the beginning.

Finally, a retry mechanism has been added to test_metrics_available as it was found while testing that it takes some time for the endpoint to be ready with the metrics.

Note: Requires #192 to be merged.

@dashmage dashmage requested a review from a team as a code owner March 26, 2024 11:38
Adds `test_redfish_credential_validation` which sets the redfish
credentials and checks if the charm is funtioning as intended.

`test_build_and_deploy` is broken up into smaller tests so that they
are easier to manage. Also modifies logic in conftest.py so that all
these tests are executed whether they're hw dependent or independent.

`test_redfish_metrics` has also been modified since we are setting the
redfish credentials as part of the earlier test.

Finally, a retry mechanism has been added to `test_metrics_available` as
it was found while testing that it takes some time for the endpoint to
be ready with the metrics.
@dashmage dashmage force-pushed the bseng-2192-update-hw-dep-tests branch from 4f7842c to c45fd97 Compare March 26, 2024 11:41
@dashmage dashmage self-assigned this Mar 26, 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

@dashmage dashmage merged commit 95cf384 into canonical:master Mar 27, 2024
5 checks passed
@dashmage dashmage deleted the bseng-2192-update-hw-dep-tests branch March 27, 2024 06:20
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.

3 participants