Skip to content

Commit 47f37d1

Browse files
fix tests
1 parent f751440 commit 47f37d1

10 files changed

+32
-2
lines changed

charts/gitops-runtime/tests/app-proxy-hosted_test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ suite: Test hosted runtime flow in app-proxy
22
templates:
33
- app-proxy/deployment.yaml
44
- app-proxy/config.yaml
5+
- _components/cap-app-proxy/_deployment.yaml
6+
- _components/cap-app-proxy/_config.yaml
7+
- codefresh-cm.yaml
58
tests:
69
- it: accountId appears in app-proxy env if provided - used in hosted
710
template: 'app-proxy/deployment.yaml'
@@ -66,4 +69,4 @@ tests:
6669
path: spec.template.spec.containers[0].env
6770
content:
6871
name: INSTALLATION_TYPE
69-
value: "HELM_HOSTED"
72+
value: "HELM_HOSTED"

charts/gitops-runtime/tests/app-proxy-image-enrichemnt_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ templates:
55
- app-proxy/enrichment/sa.yaml
66
- app-proxy/enrichment/rbac.yaml
77
- app-proxy/enrichment/enforce-workflows-enabled.yaml
8+
- _components/cap-app-proxy/_deployment.yaml
9+
- _components/cap-app-proxy/_config.yaml
10+
- codefresh-cm.yaml
811
tests:
912
- it: Fail template if enrichment is enabled and workflows disabled
1013
template: 'app-proxy/enrichment/enforce-workflows-enabled.yaml'

charts/gitops-runtime/tests/app-proxy-misc_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ suite: misc tests on app-proxy templates generation
33
templates:
44
- app-proxy/deployment.yaml
55
- app-proxy/config.yaml
6+
- _components/cap-app-proxy/_deployment.yaml
7+
- _components/cap-app-proxy/_config.yaml
8+
- codefresh-cm.yaml
69
tests:
710
- it: overriding of environment variables on main container
811
template: 'app-proxy/deployment.yaml'

charts/gitops-runtime/tests/argo-api-gateway_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
suite: argo-gateway tests
33
templates:
44
- argo-gateway/**
5+
- codefresh-cm.yaml
56
tests:
67
- it: Argo Api Gateway ConfigMap should have valid data
78
template: argo-gateway/configmap.yaml

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ templates:
44
- tls-custom-ca/codefresh-tls-certs.yaml
55
- tls-custom-ca/workflow-pipelines-git-webhooks.yaml
66
- app-proxy/deployment.yaml
7+
- app-proxy/config.yaml
78
- hooks/pre-uninstall/delete-runtime-from-platform.yaml
89
- gitops-operator/*
910
- _components/gitops-operator/*
11+
- _components/cap-app-proxy/_deployment.yaml
12+
- _components/cap-app-proxy/_config.yaml
13+
- codefresh-cm.yaml
1014
tests:
1115

1216
- it: test chart created secret contents - default secret key

charts/gitops-runtime/tests/event-reporters_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
suite: argo-gateway tests
33
templates:
44
- event-reporters/**/*.yaml
5+
- codefresh-cm.yaml
56
tests:
67
- it: Runtime Reporter should be deployed with forked ArgoCD
78
template: event-reporters/runtime-event-reporter/deployment.yaml

charts/gitops-runtime/tests/global_constraints_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
suite: Test global constraints (nodeSelector, tolerations)
22
templates:
33
- app-proxy/deployment.yaml
4+
- app-proxy/config.yaml
45
- gitops-operator/*
56
- event-reporters/**
67
- argo-gateway/**
@@ -15,6 +16,9 @@ templates:
1516
- charts/argo-events/*
1617
- charts/argo-rollouts/*
1718
- charts/argo-workflows/*
19+
- _components/cap-app-proxy/_deployment.yaml
20+
- _components/cap-app-proxy/_config.yaml
21+
- codefresh-cm.yaml
1822
values:
1923
- ./values/mandatory-values.yaml
2024
tests:

charts/gitops-runtime/tests/installation-token_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
suite: test installation token in app proxy
22
templates:
33
- app-proxy/deployment.yaml
4+
- app-proxy/config.yaml
45
- installation-token-secret.yaml
6+
- _components/cap-app-proxy/_deployment.yaml
7+
- _components/cap-app-proxy/_config.yaml
8+
- codefresh-cm.yaml
59

610
tests:
711
- it: app proxy plain string value

charts/gitops-runtime/tests/redis_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ suite: redis tests
33
templates:
44
- cf-argocd-extras/**/*.yaml
55
- app-proxy/deployment.yaml
6+
- app-proxy/config.yaml
67
- redis/**
78
- charts/redis-ha/**
9+
- _components/cap-app-proxy/_deployment.yaml
10+
- _components/cap-app-proxy/_config.yaml
11+
- codefresh-cm.yaml
812
tests:
913
- it: Standalone Redis Deployment should be created by when redis.enabled is true
1014
template: redis/deployment.yaml

charts/gitops-runtime/tests/runtime-gitcredentials_test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
suite: test runtime git credentials in app proxy
22
templates:
33
- app-proxy/deployment.yaml
4+
- app-proxy/config.yaml
45
- git-password-secret.yaml
5-
6+
- _components/cap-app-proxy/_deployment.yaml
7+
- _components/cap-app-proxy/_config.yaml
8+
- codefresh-cm.yaml
69
tests:
710
- it: secret created for plain text value
811
template: 'git-password-secret.yaml'

0 commit comments

Comments
 (0)