-
Notifications
You must be signed in to change notification settings - Fork 55
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 new xtf.openshift.namespace.per.testcase property which will exec… #490
Conversation
@mnovak1 Maybe I would appreciate some introduction how this is implemented. So I better understand it if this can be simplified even more. Overall idea seems OK to me and this seems on good way. But I feel code could be better organized to be even simpler. I drop some random thoughts, but maybe they are not relevant and I am missing something. |
956f240
to
8a4d491
Compare
junit5/src/main/java/cz/xtf/junit5/listeners/ProjectCreator.java
Outdated
Show resolved
Hide resolved
junit5/src/main/java/cz/xtf/junit5/listeners/ProjectCreator.java
Outdated
Show resolved
Hide resolved
7eafc5b
to
a540259
Compare
junit5/src/main/java/cz/xtf/junit5/listeners/EventsRecorder.java
Outdated
Show resolved
Hide resolved
junit5/src/main/java/cz/xtf/junit5/listeners/ProjectCreator.java
Outdated
Show resolved
Hide resolved
a540259
to
ff552bb
Compare
junit5/src/main/java/cz/xtf/junit5/listeners/ProjectCreator.java
Outdated
Show resolved
Hide resolved
a25c243
to
96723ba
Compare
8473efe
to
06716dd
Compare
junit5/src/main/java/cz/xtf/junit5/listeners/ProjectCreator.java
Outdated
Show resolved
Hide resolved
junit5/src/main/java/cz/xtf/junit5/listeners/ProjectCreator.java
Outdated
Show resolved
Hide resolved
06716dd
to
949bf74
Compare
junit5/src/main/java/cz/xtf/junit5/listeners/EventsRecorder.java
Outdated
Show resolved
Hide resolved
645b25f
to
cd2cc5a
Compare
abdf9f1
to
7b066c5
Compare
@mchoma I've addressed all the last comments and added CI runs. Could you review it. please? |
a709111
to
e838233
Compare
core/src/main/resources/META-INF/services/org.junit.jupiter.api.extension.Extension
Show resolved
Hide resolved
Ok I run through changes and I do not have any signifacnt objection. But truth is I am looking for long time on MR. Maybe it would need some fresh view :). Just to double check. For someone who is not interested in using |
e838233
to
9045508
Compare
Besides use of the static OpenShift instance and use of NamespaceManager there is no migration issue. |
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.
Approving.
9045508
to
866eeb3
Compare
…ute every test case in its own namespace. Note this property has limitation that consuming test suite must not create static Openshift instances as those are created before name of test case and thus the namespace for the test is known.
866eeb3
to
22c1d0c
Compare
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.
TBH I think that mapping should be done at a different level. TestCase to namespaced OpenShiftClient rather than TestCase to OpenShiftClient to namespace.
But there might be reasons to go this way.
Quite a lot of static fields might also prove to be problematic in the future.
Anyway, approving.
Thanks, I'll merge it.
It's more mapping TestCase -> namespace -> OpenShiftClient. I think we've discussed it somewhere already. Motivation is to cache OpenShiftClient as much as possible and making it optimal when this feature is ON or OFF Mapping TestCase to namespaced OpenShiftClient would work well when this feature is ON. But if it's OFF then it's not desirable to create as many OpenShiftClients as there are TestCases as most likely there would be just 2 OpenShiftClient instances for master and admin. |
…ute every test case in its own namespace. Note this property has limitation that consuming test suite must not create static Openshift instances as those are created before name of test case and thus the namespace for the test is known.
Please make sure your PR meets the following requirements:
CI runs (no regression):
-Dxtf.openshift.namespace.per.testcase=false
:https://jenkins.eapqe.psi.redhat.com/job/eap-8.x-openshift-ts-face/251//artifact/output.html
-Dxtf.openshift.namespace.per.testcase=true
:https://jenkins.eapqe.psi.redhat.com/job/eap-8.x-openshift-ts-face/252//artifact/output.html