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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃尡 Add e2e basic operations test #1389
馃尡 Add e2e basic operations test #1389
Conversation
3c5d6fb
to
e92b019
Compare
/metal3-bmo-e2e-test |
e92b019
to
ca14a2e
Compare
/metal3-bmo-e2e-test |
ca14a2e
to
81fcc20
Compare
/metal3-bmo-e2e-test |
f94b916
to
799df61
Compare
/metal3-bmo-e2e-test |
799df61
to
e5fed9f
Compare
/metal3-bmo-e2e-test |
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.
Excellent work @mboukhalfa !
Added a few nits below, and then one concern: I would like to avoid relying on virsh
or similar in the tests. This makes it impossible to reuse them in other contexts. Do you think there is some way we could avoid it?
e5fed9f
to
aef3016
Compare
9501977
to
47dfa79
Compare
47dfa79
to
4f03854
Compare
/metal3-bmo-e2e-test |
4f03854
to
ba73074
Compare
/metal3-bmo-e2e-test |
/test-centos-e2e-integration-main |
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.
Awesome!
/approve
ba73074
to
c1e2044
Compare
/metal3-bmo-e2e-test |
/test-centos-e2e-integration-main |
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
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.
/approve
One question in line.
/hold
}, e2eConfig.GetIntervals(specName, "wait-available")...) | ||
|
||
By("setting the reboot annotation and checking that the BMH was rebooted") | ||
capm3_e2e.AnnotateBmh(ctx, clusterProxy.GetClient(), bmh, rebootAnnotation, pointer.String("{\"force\": 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.
Shouldn't this AnnotateBMH()
function reside here and capm3 should import it rather.
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.
That is a good point. It would probably make sense to move some of the e2e code around BMHs from CAPM3 here.
For me it does not matter much when/how we do it though. I'm fine with doing a refactor PR after implementing the tests for example. This also makes it easier to review the new code we add 馃檪
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.
ok with refactor later.
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kashifest, lentzi90 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 |
Adds basic operations e2e test: reboot and power off/on.
Import capm3 e2e test to reuse public functions.
fixes: #1371