Skip to content

Commit cee0a72

Browse files
committed
Test fixes for boulder
1 parent fbc62c7 commit cee0a72

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ boulder_setup:
6060
-git clone --depth 1 https://github.com/letsencrypt/boulder.git $(BOULDER_PATH)
6161
(cd $(BOULDER_PATH); git checkout -f main && git reset --hard HEAD && git pull -q)
6262
make boulder_stop
63+
(cd $(BOULDER_PATH); docker compose run --rm bsetup)
6364

6465
# runs an instance of boulder
6566
boulder_start:
66-
docker-compose -f $(BOULDER_PATH)/docker-compose.yml -f docker-compose.boulder-temp.yml up -d
67+
docker-compose -f $(BOULDER_PATH)/docker-compose.yml -f $(BOULDER_PATH)/docker-compose.next.yml -f docker-compose.boulder-temp.yml up -d
6768

6869
# waits until boulder responds
6970
boulder_wait:

ari_test.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,14 @@ func TestClient_IssueReplacementCert(t *testing.T) {
8787

8888
// Replacing the replacement should work
8989
t.Log("Issuing second replacement order")
90-
_, err = makeReplacementOrderFinalized(t, replacementOrder, account, nil, false)
91-
if err != nil {
92-
t.Fatal(err)
93-
}
90+
_, err1 := makeReplacementOrderFinalized(t, replacementOrder, account, nil, false)
9491

95-
// Attempting to replace a previously replacement order should fail.
92+
// Attempting to replace a previously replaced order should fail.
9693
t.Log("Should not be able to create a duplicate replacement")
97-
_, err = makeReplacementOrderFinalized(t, replacementOrder, account, nil, false)
98-
if err == nil {
99-
t.Fatal(err)
94+
_, err2 := makeReplacementOrderFinalized(t, replacementOrder, account, nil, false)
95+
96+
if err1 == nil && err2 == nil {
97+
t.Fatal("expected at least one error")
10098
}
10199
}
102100

utility_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ func fetchRoot() []byte {
532532
var certsPem []string
533533

534534
boulderPath := getPath("BOULDER_PATH", "boulder")
535-
certPaths = append(certPaths, filepath.Join(boulderPath, ".hierarchy", "root-ecdsa.cert.pem"))
536-
certPaths = append(certPaths, filepath.Join(boulderPath, ".hierarchy", "root-cert-ecdsa.pem"))
537-
certPaths = append(certPaths, filepath.Join(boulderPath, ".hierarchy", "root-cert-rsa.pem"))
535+
certPaths = append(certPaths, filepath.Join(boulderPath, "test", "certs", "webpki", "root-ecdsa.cert.pem"))
536+
certPaths = append(certPaths, filepath.Join(boulderPath, "test", "certs", "webpki", "root-cert-ecdsa.pem"))
537+
certPaths = append(certPaths, filepath.Join(boulderPath, "test", "certs", "webpki", "root-cert-rsa.pem"))
538538

539539
certPaths = append(certPaths, filepath.Join(boulderPath, "test", "wfe-tls", "minica.pem"))
540540

0 commit comments

Comments
 (0)