-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #741 from srvrco/release2.46
Release 2.46
- Loading branch information
Showing
25 changed files
with
189 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#! /usr/bin/env bats | ||
|
||
load '/bats-support/load.bash' | ||
load '/bats-assert/load.bash' | ||
load '/getssl/test/test_helper.bash' | ||
|
||
|
||
# This is run for every test | ||
teardown() { | ||
[ -n "$BATS_TEST_COMPLETED" ] || touch $BATS_RUN_TMPDIR/failed.skip | ||
} | ||
|
||
setup() { | ||
[ ! -f $BATS_RUN_TMPDIR/failed.skip ] || skip "skipping tests after first failure" | ||
#export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt | ||
} | ||
|
||
|
||
@test "Run getssl without any arguments to verify the usage message is shown" { | ||
if [ -n "$STAGING" ]; then | ||
skip "Using staging server, skipping internal test" | ||
fi | ||
run ${CODE_DIR}/getssl | ||
assert_line --partial "Usage: getssl" | ||
assert_success | ||
} | ||
|
||
|
||
@test "Run getssl with --nocheck and verify the usage message is shown" { | ||
if [ -n "$STAGING" ]; then | ||
skip "Using staging server, skipping internal test" | ||
fi | ||
run ${CODE_DIR}/getssl --nocheck | ||
assert_line --partial "Usage: getssl" | ||
assert_success | ||
} | ||
|
||
|
||
@test "Run getssl with --upgrade and verify the usage message is NOT shown" { | ||
if [ -n "$STAGING" ]; then | ||
skip "Using staging server, skipping internal test" | ||
fi | ||
run ${CODE_DIR}/getssl --upgrade | ||
refute_output | ||
assert_success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /usr/bin/env bats | ||
|
||
load '/bats-support/load.bash' | ||
load '/bats-assert/load.bash' | ||
load '/getssl/test/test_helper.bash' | ||
|
||
|
||
# This is run for every test | ||
teardown() { | ||
[ -n "$BATS_TEST_COMPLETED" ] || touch $BATS_RUN_TMPDIR/failed.skip | ||
} | ||
|
||
setup() { | ||
[ ! -f $BATS_RUN_TMPDIR/failed.skip ] || skip "skipping tests after first failure" | ||
export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt | ||
} | ||
|
||
|
||
@test "Create new certificate using HTTP-01 verification (any dns tool)" { | ||
if [ -n "$STAGING" ]; then | ||
skip "Using staging server, skipping internal test" | ||
fi | ||
CONFIG_FILE="getssl-http01.cfg" | ||
setup_environment | ||
init_getssl | ||
create_certificate | ||
assert_success | ||
|
||
run ${CODE_DIR}/getssl --account-id ${GETSSL_HOST} | ||
assert_line --partial "Account Id is:" | ||
assert_success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.