Browse Source

Merge pebble dns and staging dns tests

pull/572/head
Tim Kimber 6 years ago
parent
commit
98ee28cd52
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
3 changed files with 6 additions and 7 deletions
  1. +2
    -5
      test/2-simple-dns01-dig.bats
  2. +2
    -2
      test/2-simple-dns01-nslookup.bats
  3. +2
    -0
      test/7-staging-dns01-dig.bats

+ 2
- 5
test/2-simple-dns01-dig.bats View File

@ -27,11 +27,11 @@ teardown() {
@test "Create new certificate using DNS-01 verification (dig)" { @test "Create new certificate using DNS-01 verification (dig)" {
CONFIG_FILE="getssl-dns01.cfg"
if [ -n "$STAGING" ]; then if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
CONFIG_FILE="getssl-staging-dns01.cfg"
fi fi
CONFIG_FILE="getssl-dns01.cfg"
setup_environment setup_environment
init_getssl init_getssl
create_certificate -d create_certificate -d
@ -42,9 +42,6 @@ teardown() {
@test "Force renewal of certificate using DNS-01 (dig)" { @test "Force renewal of certificate using DNS-01 (dig)" {
if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
fi
run ${CODE_DIR}/getssl -d -f $GETSSL_HOST run ${CODE_DIR}/getssl -d -f $GETSSL_HOST
assert_success assert_success
assert_output --partial "dig" assert_output --partial "dig"


+ 2
- 2
test/2-simple-dns01-nslookup.bats View File

@ -28,11 +28,11 @@ teardown() {
@test "Create new certificate using DNS-01 verification (nslookup)" { @test "Create new certificate using DNS-01 verification (nslookup)" {
CONFIG_FILE="getssl-dns01.cfg"
if [ -n "$STAGING" ]; then if [ -n "$STAGING" ]; then
skip "Using staging server, skipping internal test"
CONFIG_FILE="getssl-dns01.cfg"
fi fi
CONFIG_FILE="getssl-dns01.cfg"
setup_environment setup_environment
init_getssl init_getssl
create_certificate -d create_certificate -d


+ 2
- 0
test/7-staging-dns01-dig.bats View File

@ -7,6 +7,7 @@ load '/getssl/test/test_helper.bash'
@test "Create new certificate using staging server, dig and DuckDNS" { @test "Create new certificate using staging server, dig and DuckDNS" {
skip
if [ -z "$STAGING" ]; then if [ -z "$STAGING" ]; then
skip "Running internal tests, skipping external test" skip "Running internal tests, skipping external test"
fi fi
@ -20,6 +21,7 @@ load '/getssl/test/test_helper.bash'
} }
@test "Force renewal of certificate using staging server, dig and DuckDNS" { @test "Force renewal of certificate using staging server, dig and DuckDNS" {
skip
if [ -z "$STAGING" ]; then if [ -z "$STAGING" ]; then
skip "Running internal tests, skipping external test" skip "Running internal tests, skipping external test"
fi fi


Loading…
Cancel
Save