Skip to content

Commit

Permalink
Small inconsistency in WFE test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Jul 25, 2024
1 parent 0a65d89 commit ab5739a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions wfe2/wfe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,15 @@ func setupWFE(t *testing.T) (WebFrontEndImpl, clock.FakeClock, requestSigner) {
txnBuilder, err := ratelimits.NewTransactionBuilder("../test/config-next/wfe2-ratelimit-defaults.yml", "")
test.AssertNotError(t, err, "making transaction composer")

var signer unpause.JWTSigner
var unpauseSigner unpause.JWTSigner
var unpauseLifetime time.Duration
var unpauseURL string
if os.Getenv("BOULDER_CONFIG_DIR") == "test/config-next" {
features.Set(features.Config{CheckRenewalExemptionAtWFE: true})
signer, err = unpause.NewJWTSigner(cmd.HMACKeyConfig{KeyFile: "../test/secrets/sfe_unpause_key"})
unpauseSigner, err = unpause.NewJWTSigner(cmd.HMACKeyConfig{KeyFile: "../test/secrets/sfe_unpause_key"})
test.AssertNotError(t, err, "making unpause signer")
unpauseLifetime = time.Hour * 24 * 14
unpauseURL = "https://boulder.service.consul:4003"
}

wfe, err := NewWebFrontEndImpl(
Expand All @@ -416,9 +420,9 @@ func setupWFE(t *testing.T) (WebFrontEndImpl, clock.FakeClock, requestSigner) {
txnBuilder,
100,
nil,
signer,
time.Hour*24*14,
"https://boulder.service.consul:4003",
unpauseSigner,
unpauseLifetime,
unpauseURL,
)
test.AssertNotError(t, err, "Unable to create WFE")

Expand Down

0 comments on commit ab5739a

Please sign in to comment.