From 1ddd47f0968392943b0888a768bd516cbb85c6b1 Mon Sep 17 00:00:00 2001 From: John Kasper Svergja Date: Mon, 1 Mar 2021 13:47:02 +0100 Subject: [PATCH] update running tests in docker-compose --- Dockerfile_tests | 2 +- docker-compose.yml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile_tests b/Dockerfile_tests index adfd88e..d0fdb0b 100644 --- a/Dockerfile_tests +++ b/Dockerfile_tests @@ -15,4 +15,4 @@ RUN mv ./Buypass_Class_3_Test4_Root_CA.cer /usr/local/share/ca-certificates/Buyp RUN update-ca-certificates -ENTRYPOINT ["dotnet", "test", "-c", "Release", "--filter" "Category!=testWithCert"] +ENTRYPOINT dotnet test -c Release --filter Category!=testWithCert diff --git a/docker-compose.yml b/docker-compose.yml index 244639b..9dd53a3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,10 +4,11 @@ services: build: context: . dockerfile: Dockerfile_tests - volumes: - - $HOME/Documents/sertifikater/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12:/cert/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12:ro - environment: - # Smoketest requires some setup. Due to limitations on linux this is not necessary +# Due to limitations on linux this is not necessary. Tests with certificates are skipped.. +# Smoketest requires some setup. +# volumes: +# - $HOME/Documents/sertifikater/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12:/cert/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12:ro +# environment: # - SMOKE_TEST_CERTIFICATE_PATH="/cert/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12" # TODO: uncomment and enter password for certificate. Do NOT commit. # - SMOKE_TEST_CERTIFICATE_PASSWORD=""