fix: update counts
This commit is contained in:
@@ -30,7 +30,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "Enabling HSTS"
|
assert_output_contains "Enabling HSTS" 2
|
||||||
|
|
||||||
run /bin/bash -c "test -f $HSTS_CONF"
|
run /bin/bash -c "test -f $HSTS_CONF"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
@@ -113,7 +113,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "Enabling HSTS"
|
assert_output_contains "Enabling HSTS" 2
|
||||||
|
|
||||||
# disable hsts globally
|
# disable hsts globally
|
||||||
run /bin/bash -c "dokku nginx:set --global hsts false"
|
run /bin/bash -c "dokku nginx:set --global hsts false"
|
||||||
@@ -139,7 +139,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "Enabling HSTS" 1
|
assert_output_contains "Enabling HSTS" 2
|
||||||
|
|
||||||
# set global value to default
|
# set global value to default
|
||||||
run /bin/bash -c "dokku nginx:set --global hsts"
|
run /bin/bash -c "dokku nginx:set --global hsts"
|
||||||
@@ -152,7 +152,7 @@ teardown() {
|
|||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output_contains "Enabling HSTS" 1
|
assert_output_contains "Enabling HSTS" 2
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(nginx-vhosts) nginx:set bind-address" {
|
@test "(nginx-vhosts) nginx:set bind-address" {
|
||||||
|
|||||||
Reference in New Issue
Block a user