From b0777a44cb7e1a4d8d30934798f95cd500a9d7ba Mon Sep 17 00:00:00 2001 From: "Raphael D. Pinheiro" Date: Thu, 23 Feb 2017 13:44:28 -0300 Subject: [PATCH] add test to certs:add with multiple dots Add test to certs:add command to allow multiple dots in file name --- tests/unit/10_certs.bats | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/10_certs.bats b/tests/unit/10_certs.bats index e7978ab13..94f9a0d0f 100644 --- a/tests/unit/10_certs.bats +++ b/tests/unit/10_certs.bats @@ -33,6 +33,13 @@ teardown() { assert_success } +@test "(certs) certs:add with multiple dots in the filename" { + run bash -c "dokku certs:add $TEST_APP $BATS_TMPDIR/tls/domain.com.crt $BATS_TMPDIR/tls/domain.com.key" + echo "output: "$output + echo "status: "$status + assert_success +} + @test "(certs) certs:add < tar" { run bash -c "dokku certs:add $TEST_APP < $BATS_TEST_DIRNAME/server_ssl.tar" echo "output: "$output