Skip to content

Commit 0afa1e2

Browse files
committed
chore: remove event reporter tests and templates for rollout and workflow components
1 parent a69795f commit 0afa1e2

File tree

5 files changed

+0
-411
lines changed

5 files changed

+0
-411
lines changed

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

Lines changed: 0 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ templates:
44
- tls-custom-ca/codefresh-tls-certs.yaml
55
- tls-custom-ca/workflow-pipelines-git-webhooks.yaml
66
- app-proxy/deployment.yaml
7-
- event-reporters/workflow-reporter/sensor.yaml
8-
- event-reporters/rollout-reporter/sensor.yaml
97
- hooks/pre-uninstall/delete-runtime-from-platform.yaml
108
- "gitops-operator.yaml"
119
- charts/gitops-operator/*
@@ -213,129 +211,6 @@ tests:
213211
name: SSL_CERT_FILE
214212
value: /app/config/codefresh-tls-certs/ca-bundle.crt
215213

216-
- it: rollout reporter sensor - check chart created secret with default key
217-
template: event-reporters/rollout-reporter/sensor.yaml
218-
values:
219-
- ./values/mandatory-values.yaml
220-
set:
221-
global.codefresh.tls.caCerts.secret.annotations.test: 'test'
222-
global.codefresh.tls.caCerts.secret.create: true
223-
global.codefresh.tls.caCerts.secret.content: |
224-
-----BEGIN CERTIFICATE-----
225-
... encoded certificate data here ...
226-
-----END CERTIFICATE-----
227-
asserts:
228-
- equal:
229-
path: spec.triggers[0].template.http.tls
230-
value:
231-
caCertSecret:
232-
name: codefresh-tls-certs
233-
key: ca-bundle.crt
234-
235-
- it: workflow reporter sensor - check chart created secret with default key
236-
template: event-reporters/workflow-reporter/sensor.yaml
237-
values:
238-
- ./values/mandatory-values.yaml
239-
set:
240-
global.codefresh.tls.caCerts.secret.annotations.test: 'test'
241-
global.codefresh.tls.caCerts.secret.create: true
242-
global.codefresh.tls.caCerts.secret.content: |
243-
-----BEGIN CERTIFICATE-----
244-
... encoded certificate data here ...
245-
-----END CERTIFICATE-----
246-
asserts:
247-
- equal:
248-
path: spec.triggers[0].template.http.tls
249-
value:
250-
caCertSecret:
251-
name: codefresh-tls-certs
252-
key: ca-bundle.crt
253-
254-
- it: rollout reporter sensor - secretKeyRef
255-
template: event-reporters/rollout-reporter/sensor.yaml
256-
values:
257-
- ./values/mandatory-values.yaml
258-
set:
259-
global.codefresh.tls.caCerts.secretKeyRef.name: my-secret
260-
global.codefresh.tls.caCerts.secretKeyRef.key: my-key
261-
asserts:
262-
- equal:
263-
path: spec.triggers[0].template.http.tls
264-
value:
265-
caCertSecret:
266-
name: my-secret
267-
key: my-key
268-
269-
- it: workflow reporter sensor - secretKeyRef
270-
template: event-reporters/workflow-reporter/sensor.yaml
271-
values:
272-
- ./values/mandatory-values.yaml
273-
set:
274-
global.codefresh.tls.caCerts.secretKeyRef.name: my-secret
275-
global.codefresh.tls.caCerts.secretKeyRef.key: my-key
276-
asserts:
277-
- equal:
278-
path: spec.triggers[0].template.http.tls
279-
value:
280-
caCertSecret:
281-
name: my-secret
282-
key: my-key
283-
284-
- it: rollout reporter sensor - check chart created secret with custom key
285-
template: event-reporters/rollout-reporter/sensor.yaml
286-
values:
287-
- ./values/mandatory-values.yaml
288-
set:
289-
global.codefresh.tls.caCerts.secret.annotations.test: 'test'
290-
global.codefresh.tls.caCerts.secret.create: true
291-
global.codefresh.tls.caCerts.secret.key: my-key
292-
global.codefresh.tls.caCerts.secret.content: |
293-
-----BEGIN CERTIFICATE-----
294-
... encoded certificate data here ...
295-
-----END CERTIFICATE-----
296-
asserts:
297-
- equal:
298-
path: spec.triggers[0].template.http.tls
299-
value:
300-
caCertSecret:
301-
name: codefresh-tls-certs
302-
key: my-key
303-
304-
- it: workflow reporter sensor - check chart created secret with custom key
305-
template: event-reporters/workflow-reporter/sensor.yaml
306-
values:
307-
- ./values/mandatory-values.yaml
308-
set:
309-
global.codefresh.tls.caCerts.secret.annotations.test: 'test'
310-
global.codefresh.tls.caCerts.secret.create: true
311-
global.codefresh.tls.caCerts.secret.key: my-key
312-
global.codefresh.tls.caCerts.secret.content: |
313-
-----BEGIN CERTIFICATE-----
314-
... encoded certificate data here ...
315-
-----END CERTIFICATE-----
316-
asserts:
317-
- equal:
318-
path: spec.triggers[0].template.http.tls
319-
value:
320-
caCertSecret:
321-
name: codefresh-tls-certs
322-
key: my-key
323-
324-
- it: rollout reporter sensor - no tls
325-
template: event-reporters/rollout-reporter/sensor.yaml
326-
values:
327-
- ./values/mandatory-values.yaml
328-
asserts:
329-
- notExists:
330-
path: spec.triggers[0].template.http.tls
331-
332-
- it: workflow reporter sensor - no tls
333-
template: event-reporters/workflow-reporter/sensor.yaml
334-
values:
335-
- ./values/mandatory-values.yaml
336-
asserts:
337-
- notExists:
338-
path: spec.triggers[0].template.http.tls
339214
# --------------------------------------------------------
340215
# workflowPipelinesGitWebhooks
341216
# --------------------------------------------------------

charts/gitops-runtime/tests/external_argo_rollouts_test.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ tests:
1414
name: rollout-reporter
1515
template: event-reporters/rollout-reporter/serviceaccount.yaml
1616
not: true
17-
- containsDocument:
18-
apiVersion: argoproj.io/v1alpha1
19-
kind: Sensor
20-
name: rollout-reporter
21-
template: event-reporters/rollout-reporter/sensor.yaml
22-
not: true
23-
- containsDocument:
24-
apiVersion: argoproj.io/v1alpha1
25-
kind: EventSource
26-
name: rollout-reporter
27-
template: event-reporters/rollout-reporter/eventsource.yaml
28-
not: true
2917
- containsDocument:
3018
apiVersion: rbac.authorization.k8s.io/v1
3119
kind: Role
@@ -59,16 +47,6 @@ tests:
5947
kind: ServiceAccount
6048
name: rollout-reporter
6149
template: event-reporters/rollout-reporter/serviceaccount.yaml
62-
- containsDocument:
63-
apiVersion: argoproj.io/v1alpha1
64-
kind: Sensor
65-
name: rollout-reporter
66-
template: event-reporters/rollout-reporter/sensor.yaml
67-
- containsDocument:
68-
apiVersion: argoproj.io/v1alpha1
69-
kind: EventSource
70-
name: rollout-reporter
71-
template: event-reporters/rollout-reporter/eventsource.yaml
7250
- containsDocument:
7351
apiVersion: rbac.authorization.k8s.io/v1
7452
kind: Role

charts/gitops-runtime/tests/global_constraints_test.yaml

Lines changed: 0 additions & 204 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ templates:
99
- charts/gitops-operator/*
1010
- charts/codefresh-tunnel-client/*
1111
- internal-router/deployment.yaml
12-
- event-reporters/rollout-reporter/eventsource.yaml
13-
- event-reporters/rollout-reporter/sensor.yaml
14-
- event-reporters/workflow-reporter/eventsource.yaml
15-
- event-reporters/workflow-reporter/sensor.yaml
1612
- eventbus/codefresh-eventbus.yaml
1713
- hooks/pre-install/validate-values.yaml
1814
- hooks/pre-install/validate-usage.yaml
@@ -124,206 +120,6 @@ tests:
124120
value: another-value
125121
effect: NoSchedule
126122

127-
- it: rollout-reporter eventsource should have nodeSelector from .Values.global
128-
values:
129-
- ./values/global-constraints-values.yaml
130-
template: event-reporters/rollout-reporter/eventsource.yaml
131-
asserts:
132-
- equal:
133-
path: spec.template.nodeSelector
134-
value:
135-
some-key: some-value
136-
extra-key: extra-value
137-
138-
- it: rollout-reporter eventsource should have nodeSelector from .Values.event-reporters and NOT from .Values.global
139-
values:
140-
- ./values/global-constraints-values.yaml
141-
- ./values/subcharts-constraints-values.yaml
142-
template: event-reporters/rollout-reporter/eventsource.yaml
143-
asserts:
144-
- equal:
145-
path: spec.template.nodeSelector
146-
value:
147-
some-key: another-value
148-
foo: bar
149-
150-
- it: rollout-reporter eventsource should have tolerations from .Values.global
151-
values:
152-
- ./values/global-constraints-values.yaml
153-
template: event-reporters/rollout-reporter/eventsource.yaml
154-
asserts:
155-
- equal:
156-
path: spec.template.tolerations
157-
value:
158-
- key: some-key
159-
operator: Equal
160-
value: some-value
161-
effect: NoSchedule
162-
163-
- it: rollout-reporter eventsource should have tolerations from .Values.event-reporters and NOT from .Values.global
164-
values:
165-
- ./values/global-constraints-values.yaml
166-
- ./values/subcharts-constraints-values.yaml
167-
template: event-reporters/rollout-reporter/eventsource.yaml
168-
asserts:
169-
- equal:
170-
path: spec.template.tolerations
171-
value:
172-
- key: another-key
173-
operator: Equal
174-
value: another-value
175-
effect: NoSchedule
176-
177-
- it: rollout-reporter sensor should have nodeSelector from .Values.global
178-
values:
179-
- ./values/global-constraints-values.yaml
180-
template: event-reporters/rollout-reporter/sensor.yaml
181-
asserts:
182-
- equal:
183-
path: spec.template.nodeSelector
184-
value:
185-
some-key: some-value
186-
extra-key: extra-value
187-
188-
- it: rollout-reporter sensor should have nodeSelector from .Values.event-reporters and NOT from .Values.global
189-
values:
190-
- ./values/global-constraints-values.yaml
191-
- ./values/subcharts-constraints-values.yaml
192-
template: event-reporters/rollout-reporter/sensor.yaml
193-
asserts:
194-
- equal:
195-
path: spec.template.nodeSelector
196-
value:
197-
some-key: another-value
198-
foo: bar
199-
200-
- it: rollout-reporter sensor should have tolerations from .Values.global
201-
values:
202-
- ./values/global-constraints-values.yaml
203-
template: event-reporters/rollout-reporter/sensor.yaml
204-
asserts:
205-
- equal:
206-
path: spec.template.tolerations
207-
value:
208-
- key: some-key
209-
operator: Equal
210-
value: some-value
211-
effect: NoSchedule
212-
213-
- it: rollout-reporter sensor should have tolerations from .Values.event-reporters and NOT from .Values.global
214-
values:
215-
- ./values/global-constraints-values.yaml
216-
- ./values/subcharts-constraints-values.yaml
217-
template: event-reporters/rollout-reporter/sensor.yaml
218-
asserts:
219-
- equal:
220-
path: spec.template.tolerations
221-
value:
222-
- key: another-key
223-
operator: Equal
224-
value: another-value
225-
effect: NoSchedule
226-
227-
- it: workflow-reporter eventsource should have nodeSelector from .Values.global
228-
values:
229-
- ./values/global-constraints-values.yaml
230-
template: event-reporters/workflow-reporter/eventsource.yaml
231-
asserts:
232-
- equal:
233-
path: spec.template.nodeSelector
234-
value:
235-
some-key: some-value
236-
extra-key: extra-value
237-
238-
- it: workflow-reporter eventsource should have nodeSelector from .Values.event-reporters and NOT from .Values.global
239-
values:
240-
- ./values/global-constraints-values.yaml
241-
- ./values/subcharts-constraints-values.yaml
242-
template: event-reporters/workflow-reporter/eventsource.yaml
243-
asserts:
244-
- equal:
245-
path: spec.template.nodeSelector
246-
value:
247-
some-key: another-value
248-
foo: bar
249-
250-
- it: workflow-reporter eventsource should have tolerations from .Values.global
251-
values:
252-
- ./values/global-constraints-values.yaml
253-
template: event-reporters/workflow-reporter/eventsource.yaml
254-
asserts:
255-
- equal:
256-
path: spec.template.tolerations
257-
value:
258-
- key: some-key
259-
operator: Equal
260-
value: some-value
261-
effect: NoSchedule
262-
263-
- it: workflow-reporter eventsource should have tolerations from .Values.event-reporters and NOT from .Values.global
264-
values:
265-
- ./values/global-constraints-values.yaml
266-
- ./values/subcharts-constraints-values.yaml
267-
template: event-reporters/workflow-reporter/eventsource.yaml
268-
asserts:
269-
- equal:
270-
path: spec.template.tolerations
271-
value:
272-
- key: another-key
273-
operator: Equal
274-
value: another-value
275-
effect: NoSchedule
276-
277-
- it: workflow-reporter sensor should have nodeSelector from .Values.global
278-
values:
279-
- ./values/global-constraints-values.yaml
280-
template: event-reporters/workflow-reporter/sensor.yaml
281-
asserts:
282-
- equal:
283-
path: spec.template.nodeSelector
284-
value:
285-
some-key: some-value
286-
extra-key: extra-value
287-
288-
- it: workflow-reporter sensor should have nodeSelector from .Values.event-reporters and NOT from .Values.global
289-
values:
290-
- ./values/global-constraints-values.yaml
291-
- ./values/subcharts-constraints-values.yaml
292-
template: event-reporters/workflow-reporter/sensor.yaml
293-
asserts:
294-
- equal:
295-
path: spec.template.nodeSelector
296-
value:
297-
some-key: another-value
298-
foo: bar
299-
300-
- it: workflow-reporter sensor should have tolerations from .Values.global
301-
values:
302-
- ./values/global-constraints-values.yaml
303-
template: event-reporters/workflow-reporter/sensor.yaml
304-
asserts:
305-
- equal:
306-
path: spec.template.tolerations
307-
value:
308-
- key: some-key
309-
operator: Equal
310-
value: some-value
311-
effect: NoSchedule
312-
313-
- it: workflow-reporter sensor should have tolerations from .Values.event-reporters and NOT from .Values.global
314-
values:
315-
- ./values/global-constraints-values.yaml
316-
- ./values/subcharts-constraints-values.yaml
317-
template: event-reporters/workflow-reporter/sensor.yaml
318-
asserts:
319-
- equal:
320-
path: spec.template.tolerations
321-
value:
322-
- key: another-key
323-
operator: Equal
324-
value: another-value
325-
effect: NoSchedule
326-
327123
- it: codefresh-eventbus should have nodeSelector from .Values.global
328124
values:
329125
- ./values/global-constraints-values.yaml

0 commit comments

Comments
 (0)