File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -598,6 +598,8 @@ check_challenge_completion_dns() { # perform validation via DNS challenge
598
598
rr_cname=$( grep -i " ^${rr} " <<< " ${check_output}" | grep ' IN\WCNAME' | awk ' { print $5}' )
599
599
debug " cname check=\" $rr_cname \" "
600
600
if [[ -n " $rr_cname " ]]; then
601
+ # shellcheck disable=SC2086
602
+ check_output=$( $DNS_CHECK_FUNC $DNS_CHECK_OPTIONS TXT " ${rr_cname} " " @${ns} " )
601
603
check_result=$( grep -i " ^${rr_cname} " <<< " ${check_output}" | grep ' IN\WTXT' | awk -F' "' ' { print $2}' | uniq)
602
604
fi
603
605
fi
@@ -1216,7 +1218,7 @@ create_order() {
1216
1218
dn=0
1217
1219
for d in " ${alldomains[@]} " ; do
1218
1220
# get authorizations link
1219
- AuthLink[$ dn ]=$( json_get " $response " " identifiers" " value" " ${d## \* .} " " authorizations" " x" )
1221
+ AuthLink[dn]=$( json_get " $response " " identifiers" " value" " ${d## \* .} " " authorizations" " x" )
1220
1222
debug " authorizations link for $d - ${AuthLink[$dn]} "
1221
1223
(( dn++ ))
1222
1224
done
@@ -1240,8 +1242,8 @@ create_order() {
1240
1242
if [[ ( " $lower_d " == " $authdomain " && -z " $wildcard " ) || ( " $lower_d " == " *.${authdomain} " && -n " $wildcard " ) ]]; then
1241
1243
debug " Saving authorization response for $authdomain for domain alldomains[$dn ]"
1242
1244
debug " Response = ${response// [$'\t\r\n']} "
1243
- AuthLinkResponse[$ dn ]=$response
1244
- AuthLinkResponseHeader[$ dn ]=$responseHeaders
1245
+ AuthLinkResponse[dn]=$response
1246
+ AuthLinkResponseHeader[dn]=$responseHeaders
1245
1247
fi
1246
1248
(( dn++ ))
1247
1249
done
Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ For individual accounts, <reponame> is your github account name.
30
30
## To run all the tests on a single OS
31
31
32
32
1 . Start ` pebble ` and ` challtestsrv ` using ``` docker-compose up -d --build ```
33
- 2 . Run the test suite ``` run-test.sh [<os>] ```
34
- 3 . eg. ` run-test.sh ubuntu16 `
33
+ 2 . Run the test suite ``` test/ run-test.sh [<os>]```
34
+ 3 . eg. ` test/ run-test.sh ubuntu16`
35
35
36
36
## To run a single bats test on a single OS
37
37
38
38
1 . Start ` pebble ` and ` challtestsrv ` using ``` docker-compose up -d --build ```
39
- 2 . ``` run-test.sh <os> bats <bats test script> ```
40
- 3 . e.g. ` run-test.sh ubuntu bats /getssl/test/1-simple-http01.bats `
39
+ 2 . ``` test/ run-test.sh <os> bats <bats test script>```
40
+ 3 . e.g. ` test/ run-test.sh ubuntu bats /getssl/test/1-simple-http01.bats`
41
41
42
42
## To debug a test
43
43
44
44
1 . Start ` pebble ` and ` challtestsrv ` using ``` docker-compose up -d --build ```
45
45
2 . ``` run-test.sh <os> /getssl/test/debug-test.sh <getssl config file> ```
46
- 3 . e.g. ` run-test.sh ubuntu /getssl/test/debug-test.sh -d /getssl/test/test-config/getssl-http01-cfg `
46
+ 3 . e.g. ` test/ run-test.sh ubuntu /getssl/test/debug-test.sh -d /getssl/test/test-config/getssl-http01-cfg`
47
47
48
48
## TODO
49
49
You can’t perform that action at this time.
0 commit comments