-
Notifications
You must be signed in to change notification settings - Fork 28
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 OperatorOpenShiftInfinispan
anotation to setup Infinispan/datagrid on OpenShift
#1468
Conversation
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.
I left comments, but I don't think any of that is important. What matters is - https://github.com/quarkus-qe/quarkus-test-suite/pull/2269/files makes changes to test with motivation described in the description of this PR:
In testsuite this was created in prestart phase of initialization of RestService which caused not cleaning up datagrid from openshift when the error occured while initialization of RestService.
honestly I have no means to verify this, I didn't see past runs nor I saw one run with changes in here that would prove it one way or another. I checked the code here one by line and it seems fine to me. I suggest we just merge it when you deal with my comments and test results will confirm @jedla97 conclusions then.
...t-service-infinispan/src/main/java/io/quarkus/test/bootstrap/DataGridInfinispanInstance.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
...ava/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResourceBuilder.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/test/bootstrap/service/datagrid/DataGridInfinispanManagedResource.java
Outdated
Show resolved
Hide resolved
@jedla97 and PR title is also not good, please try something more explanatory |
This moving the logic from setting up the datagrid in testsuite to framework. In testsuite this was created in prestart phase of initialization of RestService which caused not cleaning up datagrid from openshift when the error occured while initialization of RestService. Usage ``` @DataGridInfinispan(clusterSecret = CLUSTER_SECRET, clusterConfig = CLUSTER_CONFIG, clusterConfigMap = CLUSTER_CONFIGMAP, connectSecret = CONNECT_SECRET, tlsSecret = TLS_SECRET) static DataGridInfinispanInstance dataGridInfinispan = new DataGridInfinispanInstance(); ``` Where `DataGridInfinispan` parameters mentioned above are mandatory. For real usage examle you can look at https://github.com/quarkus-qe/quarkus-test-suite/tree/main/infinispan-client
c4ebf1b
to
c847cfb
Compare
OperatorOpenShiftInfinispan
anotation to setup Infinispan/datagrid on OpenShift
I resolve comments. As I found that I need either change back the modified file or copy and modife them I choose later. With this it should be possible to run concurrently multiple infinispan cluster in one namespace. Also added the info about this "service" to wiki https://github.com/quarkus-qe/quarkus-test-framework/wiki/6.-Openshift#infinispandatagrid |
...a/io/quarkus/test/bootstrap/service/datagrid/OperatorOpenShiftInfinispanManagedResource.java
Show resolved
Hide resolved
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.
Looks nice and useful, thanks!
Summary
This moving the logic from setting up the datagrid in testsuite to framework. In testsuite this was created in prestart phase of initialization of RestService which caused not cleaning up datagrid from openshift when the error occured while initialization of RestService.
This is mainly to use it with quarkus-qe/quarkus-test-suite#2269
Please check the relevant options
run tests
phrase in comment)Checklist: