File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ git-container-build: copy-testdata
10
10
git-container-push : git-container-build
11
11
docker push $(IMAGE_SLUG )
12
12
13
+ remove-docker-images :
14
+ docker rmi $$(docker images | grep $(IMAGE_REPO ) | awk '{print $$3}' )
15
+
13
16
copy-testdata :
14
17
cp -r testdata containers/git
15
18
@@ -21,6 +24,12 @@ install-prereqs:
21
24
make git-container-push
22
25
kubectl apply -n argocd-image-updater-e2e -f prereqs/repo/install.yaml
23
26
27
+ delete-prereqs :
28
+ kubectl delete -n argocd-image-updater-e2e -f prereqs/repo/install.yaml
29
+ kubectl delete -n argocd-image-updater-e2e -f prereqs/registry/registry.yaml
30
+ kustomize build prereqs/argocd | kubectl -n argocd-image-updater-e2e delete -f -
31
+ make remove-docker-images
32
+
24
33
.PHONY : git-container-build
25
34
.PHONY : git-container-push
26
35
.PHONY : copy-testdata
Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ This directory contains the end-to-end tests for Argo CD Image Updater. The
4
4
tests are implemented using [ kuttl] ( https://kuttl.dev ) and require some
5
5
prerequisites.
6
6
7
- ** This is work-in-progress at a very early stage** . The end-to-end tests are
8
- not yet expected to work flawlessly, and they require an opinionated setup to
9
- run. If you are going to use the end-to-end tests, it is expected that you are
10
- prepared to hack on them. Do not ask for support, please.
11
-
12
7
# Components
13
8
14
9
The end-to-end tests are comprised of the following components:
@@ -45,3 +40,11 @@ The end-to-end tests are comprised of the following components:
45
40
46
41
1 . Run ` make install-prereqs ` to install all the pre-requisites on your local
47
42
cluster.
43
+
44
+ ## Run the test suite
45
+
46
+ 1 . Run ` ./e2e-test.sh ` to run all the tests located in ` ./suite ` .
47
+
48
+ ## Known issues
49
+
50
+ 1 . ` ./suite/004-multiple-images ` is failing now.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ BASE_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/.
8
8
sudo mkdir -p /etc/rancher/k3s
9
9
sudo mkdir -p /etc/docker
10
10
11
- sudo cp ${BASE_DIR} /assets/registries.yaml /etc/rancher/k3s/registry .yaml
11
+ sudo cp ${BASE_DIR} /assets/registries.yaml /etc/rancher/k3s/registries .yaml
12
12
sudo cp ${BASE_DIR} /assets/registry.crt /etc/rancher/k3s/local.crt
13
13
sudo cp ${BASE_DIR} /assets/daemon.json /etc/docker/daemon.json
14
14
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ main() {
38
38
39
39
initialize_services () {
40
40
# Check permissions on $GIT_PROJECT_ROOT
41
- chown -R git :git $GIT_PROJECT_ROOT
41
+ chown -R nginx :git $GIT_PROJECT_ROOT
42
42
chmod -R 775 $GIT_PROJECT_ROOT
43
43
44
44
/usr/bin/spawn-fcgi \
You can’t perform that action at this time.
0 commit comments