add test to certs:add with multiple dots

Add test to certs:add command to allow multiple dots in file name
This commit is contained in:
Raphael D. Pinheiro
2017-02-23 13:44:28 -03:00
committed by GitHub
parent 0c98a34094
commit b0777a44cb

View File

@@ -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