Skip to content

Commit

Permalink
update running tests in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
johnksv committed Mar 1, 2021
1 parent 6d82ac9 commit 1ddd47f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile_tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=""

0 comments on commit 1ddd47f

Please sign in to comment.