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

Some InfinispanOperatorProvisionerTest tests fail when run with community settings #190

Closed
fabiobrz opened this issue Aug 30, 2024 · 0 comments · Fixed by #191
Closed

Some InfinispanOperatorProvisionerTest tests fail when run with community settings #190

fabiobrz opened this issue Aug 30, 2024 · 0 comments · Fixed by #191
Assignees

Comments

@fabiobrz
Copy link
Member

fabiobrz commented Aug 30, 2024

Intersmash testsuite execution fails two Infinispan related tests when run with community settings.

To Reproduce
mvn clean install -DskipTests ; mvn test -pl testsuite -Dtest=InfinispanOperatorProvisionerTest:

...
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.imash416-5i2e.eapqe.psi.redhat.com:6443/apis/infinispan.org/v1/namespaces/appsint-diil/infinispans. Message: admission webhook "vinfinispan.kb.io" denied the request: Infinispan.infinispan.org "example-infinispan" is invalid: spec.service.type: Forbidden: CacheService is no longer supported.. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.service.type, message=Forbidden: CacheService is no longer supported., reason=FieldValueForbidden, additionalProperties={})], group=infinispan.org, kind=Infinispan, name=example-infinispan, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=admission webhook "vinfinispan.kb.io" denied the request: Infinispan.infinispan.org "example-infinispan" is invalid: spec.service.type: Forbidden: CacheService is no longer supported., metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
	at org.jboss.intersmash.testsuite.provision.openshift.InfinispanOperatorProvisionerTest.createAndVerifyInfinispan(InfinispanOperatorProvisionerTest.java:297)

Expected behavior
All the tests should pass.

Additional context
This is due to the fact that the community operator is shipping a new release - i.e. - which doesn't support .spec.service.type=cache, see https://infinispan.org/docs/infinispan-operator/main/operator.html#services_services
This issue should be fixed by changing the test code in order not to set .spec.service.type=cache in any cases, and use .spec.service.type=datagrid instead. Another issue should then track the effort to update the Intersmash provisioning tooling for Infinispan provisioning to the latest version, and check whether this would work with against product bits.

@fabiobrz fabiobrz added the bug Something isn't working label Aug 30, 2024
@fabiobrz fabiobrz self-assigned this Aug 30, 2024
@fabiobrz fabiobrz removed the bug Something isn't working label Aug 30, 2024
@fabiobrz fabiobrz changed the title Two Infinispan related tests when run with community settings Some InfinispanOperatorProvisionerTest tests fail when run with community settings Aug 31, 2024
@fabiobrz fabiobrz moved this to In Progress in Intersmash library Sep 1, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Intersmash library Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment