Skip to content

Commit 82f3b75

Browse files
committed
migrate tests
Signed-off-by: Attila Mészáros <[email protected]>
1 parent bcc0eb1 commit 82f3b75

10 files changed

+15
-21
lines changed

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<fabric8-client.version>6.11.0</fabric8-client.version>
1919
<graalvm.version>24.0.0</graalvm.version>
2020
<mokito.version>5.11.0</mokito.version>
21-
<mustache.version>0.9.11</mustache.version>
2221
<qosdk.version>6.6.7</qosdk.version>
2322
<assertj.version>3.25.3</assertj.version>
2423
<spotless.version>2.43.0</spotless.version>
@@ -103,11 +102,6 @@
103102
<type>pom</type>
104103
<scope>runtime</scope>
105104
</dependency>
106-
<dependency>
107-
<groupId>com.github.spullara.mustache.java</groupId>
108-
<artifactId>compiler</artifactId>
109-
<version>${mustache.version}</version>
110-
</dependency>
111105
<dependency>
112106
<groupId>org.bouncycastle</groupId>
113107
<artifactId>bcpkix-jdk18on</artifactId>

src/test/resources/resourceglue/MultiNameRelatedResource.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ spec:
1111
metadata:
1212
name: cm1
1313
data:
14-
key1: "{{{secrets#test-secret1.data.key}}}"
15-
key2: "{{{secrets#test-secret2.data.key}}}"
14+
key1: "{secrets#test-secret1.data.key}"
15+
key2: "{secrets#test-secret2.data.key}"
1616

1717
relatedResources:
1818
- name: secrets

src/test/resources/resourceglue/RelatedResourceSimpleWithCondition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
metadata:
1212
name: cm1
1313
data:
14-
key: "{{{secret1.data.key}}}"
14+
key: "{secret1.data.key}"
1515
- name: configMap2
1616
resource:
1717
apiVersion: v1

src/test/resources/resourceglue/RelatesResourceSameType.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
metadata:
1212
name: cm1
1313
data:
14-
key: "{{{related-configmap.data.key}}}"
14+
key: "{related-configmap.data.key}"
1515
relatedResources:
1616
- name: related-configmap
1717
apiVersion: v1

src/test/resources/resourceglue/ResourceTemplate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ spec:
2222
name: templconfigmap2
2323
data:
2424
key: "v2"
25-
valueFromCM1: "{{configMap1.data.key}}"
25+
valueFromCM1: "{configMap1.data.key}"

src/test/resources/resourceglue/TemplateForConcurrency.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
apiVersion: v1
1010
kind: ConfigMap
1111
metadata:
12-
name: "{{glueMetadata.name}}-1"
12+
name: "{glueMetadata.name}-1"
1313
data:
1414
key: "value1"
1515
- name: configMap2
@@ -19,10 +19,10 @@ spec:
1919
apiVersion: v1
2020
kind: ConfigMap
2121
metadata:
22-
name: "{{glueMetadata.name}}-2"
22+
name: "{glueMetadata.name}-2"
2323
data:
2424
key: "v2"
25-
valueFromCM1: "{{configMap1.data.key}}"
25+
valueFromCM1: "{configMap1.data.key}"
2626

2727

2828

src/test/resources/resourceglue/Templating.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
name: templconfigmap2
2323
data:
2424
key: "v2"
25-
valueFromCM1: "{{configMap1.data.key}}"
25+
valueFromCM1: "{configMap1.data.key}"
2626

2727

2828

src/test/resources/resourceglueoperator/Concurrency.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ spec:
1212
apiVersion: v1
1313
kind: ConfigMap
1414
metadata:
15-
name: "{{parent.metadata.name}}"
15+
name: "{parent.metadata.name}"
1616
data:
17-
key: "{{parent.spec.value}}"
17+
key: "{parent.spec.value}"

src/test/resources/resourceglueoperator/Concurrency2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ spec:
1212
apiVersion: v1
1313
kind: ConfigMap
1414
metadata:
15-
name: "{{parent.metadata.name}}"
15+
name: "{parent.metadata.name}"
1616
data:
17-
key: "{{parent.spec.value}}"
17+
key: "{parent.spec.value}"

src/test/resources/resourceglueoperator/Templating.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ spec:
1212
apiVersion: v1
1313
kind: ConfigMap
1414
metadata:
15-
name: "{{parent.metadata.name}}"
15+
name: "{parent.metadata.name}"
1616
data:
17-
key: "{{parent.spec.value}}"
17+
key: "{parent.spec.value}"

0 commit comments

Comments
 (0)