Skip to content

Commit 30aac26

Browse files
deleted redundant test-cases for after v1 reporter removal
1 parent 1660e85 commit 30aac26

File tree

3 files changed

+9
-97
lines changed

3 files changed

+9
-97
lines changed

charts/gitops-runtime/tests/argo-projects-templates-integration_test.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ templates:
66
- app-proxy/workflows-crb.yaml
77
- app-proxy/config.yaml
88
- internal-router/config.yaml
9-
- event-reporters/events-reporter/eventsource.yaml
109
- event-reporters/rollout-reporter/clusterrolebinding.yaml
1110
tests:
1211
# ------------------------------------------------------------------------
@@ -37,29 +36,6 @@ tests:
3736
path: data.argoCdUrl
3837
value: https://argo-cd-test-server:443
3938

40-
- it: events reporter eventsource argocd url - http
41-
template: 'event-reporters/events-reporter/eventsource.yaml'
42-
values:
43-
- ./values/mandatory-values.yaml
44-
set:
45-
argo-cd.fullnameOverride: argo-cd-test
46-
argo-cd.configs.params.server\.insecure: true
47-
asserts:
48-
- equal:
49-
path: spec.generic.events.url
50-
value: argo-cd-test-server:80
51-
52-
- it: events reporter eventsource argocd url - http
53-
template: 'event-reporters/events-reporter/eventsource.yaml'
54-
values:
55-
- ./values/mandatory-values.yaml
56-
set:
57-
argo-cd.fullnameOverride: argo-cd-test
58-
argo-cd.configs.params.server\.insecure: false
59-
asserts:
60-
- equal:
61-
path: spec.generic.events.url
62-
value: argo-cd-test-server:443
6339
# ------------------------------------------------------------------------------------------
6440
# Argo Workflows
6541
# Affected templates: app-proxy ClusterRoleBinding to argo-server role, intenal-url config

charts/gitops-runtime/tests/custom-ca_test.yaml

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ templates:
55
- tls-custom-ca/workflow-pipelines-git-webhooks.yaml
66
- app-proxy/deployment.yaml
77
- event-reporters/workflow-reporter/sensor.yaml
8-
- event-reporters/events-reporter/sensor.yaml
98
- event-reporters/rollout-reporter/sensor.yaml
109
- hooks/pre-uninstall/delete-runtime-from-platform.yaml
1110
- "gitops-operator.yaml"
@@ -214,25 +213,6 @@ tests:
214213
name: SSL_CERT_FILE
215214
value: /app/config/codefresh-tls-certs/ca-bundle.crt
216215

217-
- it: events reporter sensor - check chart created secret with default key
218-
template: event-reporters/events-reporter/sensor.yaml
219-
values:
220-
- ./values/mandatory-values.yaml
221-
set:
222-
global.codefresh.tls.caCerts.secret.annotations.test: 'test'
223-
global.codefresh.tls.caCerts.secret.create: true
224-
global.codefresh.tls.caCerts.secret.content: |
225-
-----BEGIN CERTIFICATE-----
226-
... encoded certificate data here ...
227-
-----END CERTIFICATE-----
228-
asserts:
229-
- equal:
230-
path: spec.triggers[0].template.http.tls
231-
value:
232-
caCertSecret:
233-
name: codefresh-tls-certs
234-
key: ca-bundle.crt
235-
236216
- it: rollout reporter sensor - check chart created secret with default key
237217
template: event-reporters/rollout-reporter/sensor.yaml
238218
values:
@@ -271,21 +251,6 @@ tests:
271251
name: codefresh-tls-certs
272252
key: ca-bundle.crt
273253

274-
- it: events reporter sensor - secretKeyRef
275-
template: event-reporters/events-reporter/sensor.yaml
276-
values:
277-
- ./values/mandatory-values.yaml
278-
set:
279-
global.codefresh.tls.caCerts.secretKeyRef.name: my-secret
280-
global.codefresh.tls.caCerts.secretKeyRef.key: my-key
281-
asserts:
282-
- equal:
283-
path: spec.triggers[0].template.http.tls
284-
value:
285-
caCertSecret:
286-
name: my-secret
287-
key: my-key
288-
289254
- it: rollout reporter sensor - secretKeyRef
290255
template: event-reporters/rollout-reporter/sensor.yaml
291256
values:
@@ -316,26 +281,6 @@ tests:
316281
name: my-secret
317282
key: my-key
318283

319-
- it: events reporter sensor - check chart created secret with custom key
320-
template: event-reporters/events-reporter/sensor.yaml
321-
values:
322-
- ./values/mandatory-values.yaml
323-
set:
324-
global.codefresh.tls.caCerts.secret.annotations.test: 'test'
325-
global.codefresh.tls.caCerts.secret.create: true
326-
global.codefresh.tls.caCerts.secret.key: my-key
327-
global.codefresh.tls.caCerts.secret.content: |
328-
-----BEGIN CERTIFICATE-----
329-
... encoded certificate data here ...
330-
-----END CERTIFICATE-----
331-
asserts:
332-
- equal:
333-
path: spec.triggers[0].template.http.tls
334-
value:
335-
caCertSecret:
336-
name: codefresh-tls-certs
337-
key: my-key
338-
339284
- it: rollout reporter sensor - check chart created secret with custom key
340285
template: event-reporters/rollout-reporter/sensor.yaml
341286
values:
@@ -376,14 +321,6 @@ tests:
376321
name: codefresh-tls-certs
377322
key: my-key
378323

379-
- it: events reporter sensor - no tls
380-
template: event-reporters/events-reporter/sensor.yaml
381-
values:
382-
- ./values/mandatory-values.yaml
383-
asserts:
384-
- notExists:
385-
path: spec.triggers[0].template.http.tls
386-
387324
- it: rollout reporter sensor - no tls
388325
template: event-reporters/rollout-reporter/sensor.yaml
389326
values:

charts/gitops-runtime/tests/event-reporters-sensors_test.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
suite: Test on event reporters sensors
22
templates:
33
- event-reporters/workflow-reporter/sensor.yaml
4-
- event-reporters/events-reporter/sensor.yaml
54
- event-reporters/rollout-reporter/sensor.yaml
65
tests:
76
- it: Setting api/events url works - workflow reporter
@@ -15,7 +14,7 @@ tests:
1514
- equal:
1615
path: spec.triggers[0].template.http.url
1716
value: https://my.platform/api-events
18-
17+
1918
- it: Setting api/events url works - rollout reporter
2019
template: 'event-reporters/rollout-reporter/sensor.yaml'
2120
values:
@@ -33,7 +32,7 @@ tests:
3332
- equal:
3433
path: spec.triggers[2].template.http.url
3534
value: https://my.platform/api-events
36-
35+
3736
- it: Setting various container specs - workflow reporter
3837
template: 'event-reporters/workflow-reporter/sensor.yaml'
3938
values:
@@ -87,7 +86,7 @@ tests:
8786
value:
8887
region: east
8988
type: user-node
90-
89+
9190
- it: Setting various container specs - rollout reporter
9291
template: 'event-reporters/rollout-reporter/sensor.yaml'
9392
values:
@@ -141,7 +140,7 @@ tests:
141140
value:
142141
region: east
143142
type: user-node
144-
143+
145144
- it: Logging without interval works - workflow reporter
146145
template: 'event-reporters/workflow-reporter/sensor.yaml'
147146
values:
@@ -157,7 +156,7 @@ tests:
157156
template:
158157
log: {}
159158
name: log-trigger
160-
159+
161160
- it: Logging without interval works - rollout reporter
162161
template: 'event-reporters/rollout-reporter/sensor.yaml'
163162
values:
@@ -173,7 +172,7 @@ tests:
173172
template:
174173
log: {}
175174
name: log-trigger
176-
175+
177176
- it: Logging with interval works - workflow reporter
178177
template: 'event-reporters/workflow-reporter/sensor.yaml'
179178
values:
@@ -191,7 +190,7 @@ tests:
191190
log:
192191
intervalSeconds: 60
193192
name: log-trigger
194-
193+
195194
- it: HTTP trigger contains retries if set - workflow reporter
196195
template: 'event-reporters/workflow-reporter/sensor.yaml'
197196
values:
@@ -211,7 +210,7 @@ tests:
211210
duration: 1
212211
factor: 1.2
213212
jitter: 3
214-
213+
215214
- it: HTTP trigger contains retries if set - rollout reporter
216215
template: 'event-reporters/rollout-reporter/sensor.yaml'
217216
values:
@@ -245,4 +244,4 @@ tests:
245244
duration: 1
246245
factor: 1.2
247246
jitter: 3
248-
247+

0 commit comments

Comments
 (0)