From f59e642088370381981011271c0a8333bf010228 Mon Sep 17 00:00:00 2001 From: Josef Smrcka Date: Thu, 19 Jan 2023 13:05:44 +0100 Subject: [PATCH] Fix OpenShift resource URI caching - clear cache on service stop Prevents the cached value from distorting status checks on stopped resources. This fixes `infinispan-client` failures observed in e.g. https://github.com/quarkus-qe/quarkus-test-suite/pull/975. This is a follow-up to https://github.com/quarkus-qe/quarkus-test-framework/pull/625, which introduced the caching in order to fix issues in INTEROP environment. See e.g. https://mpts-prod.psi.redhat.com/dashboard/run/?id=8896. --- .../quarkus/OpenShiftQuarkusApplicationManagedResource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quarkus-test-openshift/src/main/java/io/quarkus/test/services/quarkus/OpenShiftQuarkusApplicationManagedResource.java b/quarkus-test-openshift/src/main/java/io/quarkus/test/services/quarkus/OpenShiftQuarkusApplicationManagedResource.java index 4c8466603..4907fd889 100644 --- a/quarkus-test-openshift/src/main/java/io/quarkus/test/services/quarkus/OpenShiftQuarkusApplicationManagedResource.java +++ b/quarkus-test-openshift/src/main/java/io/quarkus/test/services/quarkus/OpenShiftQuarkusApplicationManagedResource.java @@ -74,6 +74,7 @@ public void stop() { } client.scaleTo(model.getContext().getOwner(), 0); + uri = null; running = false; }