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 1449566
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wfe2/wfe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,10 @@ func setupWFE(t *testing.T) (WebFrontEndImpl, clock.FakeClock, requestSigner) {
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,
Expand Down

0 comments on commit 1449566

Please sign in to comment.