escape double quote via ssh

This commit is contained in:
Michael Hobbs committed 2016-06-29 11:38:51 -07:00
1 parent 1b690d4d49
commit 4bf29f276a
1 file changed
+3 -4
+3 -4
View File
@@ -17,14 +17,14 @@ teardown() {
} }
@test "(config) config:set --global" { @test "(config) config:set --global" {
run ssh dokku@dokku.me config:set --global test_var=true test_var2=\"hello world\" test_var3='double"quotes' run ssh dokku@dokku.me config:set --global test_var=true test_var2=\"hello world\" test_var3='double\"quotes'
echo "output: "$output echo "output: "$output
echo "status: "$status echo "status: "$status
assert_success assert_success
} }
@test "(config) config:get --global" { @test "(config) config:get --global" {
run ssh dokku@dokku.me config:set --global test_var=true test_var2=\"hello world\" test_var3=\"with\\nnewline\" test_var4='double"quotes' run ssh dokku@dokku.me config:set --global test_var=true test_var2=\"hello world\" test_var3=\"with\\nnewline\" test_var4='double\"quotes'
echo "output: "$output echo "output: "$output
echo "status: "$status echo "status: "$status
assert_success assert_success
@@ -62,7 +62,7 @@ teardown() {
} }
@test "(config) config:set/get" { @test "(config) config:set/get" {
run ssh dokku@dokku.me config:set $TEST_APP test_var1=true test_var2=\"hello world\" test_var3='double"quotes' run ssh dokku@dokku.me config:set $TEST_APP test_var1=true test_var2=\"hello world\" test_var3='double\"quotes'
echo "output: "$output echo "output: "$output
echo "status: "$status echo "status: "$status
assert_success assert_success
@@ -79,7 +79,6 @@ teardown() {
echo "output: "$output echo "output: "$output
echo "status: "$status echo "status: "$status
assert_output 'double"quotes' assert_output 'double"quotes'
} }
@test "(config) config:set/get (with --app)" { @test "(config) config:set/get (with --app)" {