File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bats
2
+
3
+ load ' /bats-support/load.bash'
4
+ load ' /bats-assert/load.bash'
5
+ load ' /getssl/test/test_helper.bash'
6
+
7
+ # CA with a unified directory (both ACME V1 and V2 at the same URI)
8
+ CA=" https://api.test4.buypass.no/acme"
9
+
10
+ # This is run for every test
11
+ setup () {
12
+ [ ! -f $BATS_TMPDIR /failed.skip ] || skip " skipping tests after first failure"
13
+
14
+ . /getssl/getssl --source
15
+
16
+ requires curl
17
+ _NOMETER=" --silent"
18
+
19
+ _RUNNING_TEST=1
20
+ _USE_DEBUG=1
21
+ }
22
+
23
+
24
+ teardown () {
25
+ [ -n " $BATS_TEST_COMPLETED " ] || touch $BATS_TMPDIR /failed.skip
26
+ }
27
+
28
+
29
+ @test " Check that API V2 is selected in a unified ACME directory." {
30
+ obtain_ca_resource_locations
31
+
32
+ [ " $API " -eq 2 ]
33
+ }
34
+
You can’t perform that action at this time.
0 commit comments