Skip to content

Commit 539de13

Browse files
committed
test: add component test
Signed-off-by: Chen Keinan <[email protected]>
1 parent 551d2b8 commit 539de13

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed

.github/workflows/component-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# File: .github/workflows/docker-go-build.yml
2-
name: codefresh-gitops-operator
2+
name: gitops-runtime-helm
33

44
on:
55
push:
@@ -71,4 +71,4 @@ jobs:
7171
7272
- name: Run KUTTL tests
7373
run: |
74-
cd test/component-tests && ./../../bin/kuttl test --parallel 1 --start-kind=false --namespace e2e-test --config startup.yaml
74+
cd tests/component-tests && ./../../bin/kuttl test --parallel 1 --start-kind=false --namespace e2e-test --config startup.yaml

tests/component-tests/kubeconfig

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
cd ../../charts/gitops-runtime
3+
helm dependency update
4+
cd ../../

tests/component-tests/startup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ commands:
2828
- script: ./setup/scripts/init.sh
2929
background: true
3030
- command: sleep 3
31-
- command: cd ../../charts/gitops-runtime && helm dependency update && cd ../../
31+
- command: ./setup/scripts/helm-deps.sh
3232
- command: helm upgrade --install cf-gitops-runtime ../../charts/gitops-runtime --create-namespace --namespace codefresh -f ./setup/values/runtime.values.yaml
3333
- command: >
3434
kubectl patch deployment gitops-operator -n codefresh --type=json -p='[{"op": "add", "path": "/spec/template/spec/containers/0/env/-", "value": {"name": "NAMESPACE", "valueFrom": {"fieldRef": {"fieldPath": "metadata.namespace"}}}}]'

0 commit comments

Comments
 (0)