aboutsummaryrefslogtreecommitdiffstats
path: root/docker/cnf
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2025-01-28 13:20:35 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2025-01-28 15:15:47 +0100
commit9a5f3d7b4a0c4ade292d01e86a39b7c5a0121629 (patch)
tree4b2df2f667cfc24a9abe1069e70f2a3a46b765ab /docker/cnf
parent445d125031ee55d0784fbf26cfcc76f95082c151 (diff)
Parameterize cnf-config
It eases switching from one CNF to another. It also removes obsolete extra commands in Dockerfile. Change-Id: I61f9dc1312a6d6b450ef0ac38e37fa11df614c66 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8766d98959e8df20eab5409ce10329bd4a930ea6)
Diffstat (limited to 'docker/cnf')
-rw-r--r--docker/cnf/Dockerfile5
-rw-r--r--docker/cnf/testcases.yaml3
2 files changed, 4 insertions, 4 deletions
diff --git a/docker/cnf/Dockerfile b/docker/cnf/Dockerfile
index 5bea542d..35b31668 100644
--- a/docker/cnf/Dockerfile
+++ b/docker/cnf/Dockerfile
@@ -28,13 +28,10 @@ RUN apk --no-cache add --update wget curl ncurses git yaml openssl zlib && \
git checkout FETCH_HEAD && \
shards install --without-development && \
crystal build --static src/cnf-testsuite.cr && \
- cp cnf-testsuite /usr/local/bin/cnf-testsuite && rm -r lib) && \
+ mv cnf-testsuite /usr/local/bin/cnf-testsuite && rm -r lib) && \
chown -R xtesting: /src/cnf-testsuite && \
- ln -s /src/cnf-testsuite/example-cnfs/coredns/cnf-testsuite.yml /src/cnf-testsuite/cnf-testsuite.yml && \
- ln -s /src/cnf-testsuite/points-all.yml /src/cnf-testsuite/points.yml && \
rm -rf /src/cnf-testsuite/.git ;; esac && \
apk del .build-deps
USER xtesting
-RUN helm repo add stable https://cncf.gitlab.io/stable
COPY testcases.yaml /etc/xtesting/testcases.yaml
CMD ["run_tests", "-t", "all"]
diff --git a/docker/cnf/testcases.yaml b/docker/cnf/testcases.yaml
index edaa8143..be289630 100644
--- a/docker/cnf/testcases.yaml
+++ b/docker/cnf/testcases.yaml
@@ -40,3 +40,6 @@ tiers:
- DEPLOY_SCENARIO: "k8-*"
run:
name: cnf_testsuite
+ args:
+ cnf-config: example-cnfs/coredns/cnf-testsuite.yml
+ tag: cert