Skip to content

Commit d44ea51

Browse files
committed
Fix #32380: fix tests
1 parent 092690e commit d44ea51

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/test/kotlin/eu/openanalytics/shinyproxyoperator/MainIntegrationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ class MainIntegrationTest : IntegrationTestBase() {
880880
fun `operator should properly handle 409 conflicts by replacing the resource`() =
881881
setup(Mode.NAMESPACED) { namespace, shinyProxyClient, namespacedClient, stableClient, operator, reconcileListener, _ ->
882882
// 1. create conflicting resources
883-
stableClient.load(this.javaClass.getResourceAsStream("/config/conflict.yaml")).serverSideApply()
883+
stableClient.load(this.javaClass.getResourceAsStream("/configs/conflict.yaml")).serverSideApply()
884884

885885
// 2. create a SP instance
886886
val spTestInstance = ShinyProxyTestInstance(

src/test/resources/configs/conflict.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: sp-example-shinyproxy-cm-abfc24c726e9e87ea7c633384f2a6599352490
4+
name: sp-example-shinyproxy-cm-502467f68c769f1a6a3f641603ec053e15a350
55
namespace: itest
66
data:
77
application.yml: |
@@ -10,7 +10,7 @@ data:
1010
apiVersion: v1
1111
kind: Service
1212
metadata:
13-
name: sp-example-shinyproxy-svc-abfc24c726e9e87ea7c633384f2a659935249
13+
name: sp-example-shinyproxy-svc
1414
namespace: itest
1515
spec:
1616
type: ClusterIP
@@ -25,7 +25,7 @@ spec:
2525
apiVersion: networking.k8s.io/v1
2626
kind: Ingress
2727
metadata:
28-
name: sp-example-shinyproxy-ing-abfc24c726e9e87ea7c633384f2a659935249
28+
name: sp-example-shinyproxy-ing
2929
namespace: itest
3030
spec:
3131
rules:

src/test/resources/configs/simple_config_with_patches.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
failureThreshold: 1
4545
httpGet:
4646
path: /actuator/health/liveness
47-
port: 9090
47+
port: "9090"
4848
scheme: HTTP
4949
periodSeconds: 1
5050
initialDelaySeconds: 30
@@ -56,7 +56,7 @@ spec:
5656
failureThreshold: 1
5757
httpGet:
5858
path: /actuator/health/readiness
59-
port: 9090
59+
port: "9090"
6060
scheme: HTTP
6161
periodSeconds: 1
6262
initialDelaySeconds: 30

0 commit comments

Comments
 (0)