Skip to content

Commit

Permalink
Always setup unpause signer in WFE tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Dec 11, 2024
1 parent 1688574 commit 6fa2d0d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions wfe2/wfe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,16 +409,10 @@ 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 unpauseSigner unpause.JWTSigner
var unpauseLifetime time.Duration
var unpauseURL string
if os.Getenv("BOULDER_CONFIG_DIR") == "test/config-next" {
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"
}

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(
stats,
fc,
Expand Down

0 comments on commit 6fa2d0d

Please sign in to comment.