-
Notifications
You must be signed in to change notification settings - Fork 242
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
e2e: Add scenario for microshift preset #3779
Conversation
62dfcce
to
bb82289
Compare
/hold Need to verify the actual microshift test runs or not. |
b9eb450
to
899dada
Compare
/test e2e-microshift-crc |
9362d12
to
39121ad
Compare
It should fix following error in case of microshift preset and warning in case of openshift preset. ``` Error creating: pods "httpd-example-6ddffbfb58-r6z7d" is forbidden: violates PodSecurity "restricted:latest": seccompProfile (pod or container "httpd-24" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost") ```
82ca273 refactored the code and because of that `usingPreexistingCluster` function broken since `GodogTags` is not assigned. This PR make sure `GodogTags` contain the provided tags.
With this we can run `make e2e-story-microshift` and test only the microshift functionaility.
The defaults doesn't make sense and also it block the correct execution of test. If I run the integration test without these parameter then it should use the default from the binary for bundle and $GOPATH/bin for the binary. This PR fix it.
Currently, it is part of different block which print it out during testing of default bundle instead user provided one.
39121ad
to
9a0748a
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gbraad 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 |
@praveenkumar: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/unhold |
Unclear to me why this seems to be a wholly different test from the other ones we have? Could we share the same "httpd" test for both microshift and openshift? |
@cfergeau |
I would suggest add a config flag to inform on which preset we want to run the tests (Default value to That flag can be used within the background steps (making them dynamic based on the flag). With that approach you can avoid the duplication. |
Took another look at this, and for some reason I had missed crc/test/e2e/features/story_openshift.feature Lines 13 to 37 in 97705a0
This is not the case, it's the same code, which answers my initial question :) Imo it's really useful to add a comment before duplicated code to remind people when touching one of the code blocks, the other one needs to be updated. And documentingin the commit log why this was duplicated is also useful if one wants to try to improve things. |
With this we can able to test out the microshift preset functionality.