summaryrefslogtreecommitdiff
path: root/ci/docker/go-test.docker
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:27:25 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:27:25 +0200
commit44df9cb92abe66cf12e887ef19e60a01461b3558 (patch)
treec24ba1580a65c681d3dba4d77cd2042803396143 /ci/docker/go-test.docker
parentee1c5a9ada755a51efa2fbf054f4382d00c70dee (diff)
Tests: Ability to add a custom server and share certificate
We also now do not have to skip verification in the test files
Diffstat (limited to 'ci/docker/go-test.docker')
-rw-r--r--ci/docker/go-test.docker4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/docker/go-test.docker b/ci/docker/go-test.docker
index 2e6bcd5..04b6a99 100644
--- a/ci/docker/go-test.docker
+++ b/ci/docker/go-test.docker
@@ -34,5 +34,9 @@ COPY ./internal ./internal
# Copy selenium scripts
COPY ./selenium_eduvpn.py ./selenium_eduvpn.py
+# Update certificates
+COPY ./ci/docker/selfsigned/eduvpnserver.crt /usr/local/share/ca-certificates/eduvpnserver.crt
+RUN update-ca-certificates
+
# Run the tests
CMD ["go", "test", "-mod=readonly", "./...", "-v"]