Skip to content

Commit

Permalink
Update existing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongable committed Oct 2, 2024
1 parent b8e7d8f commit 0442894
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sa/sa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,9 @@ func TestNewOrderAndAuthzs(t *testing.T) {
sa, _, cleanup := initSA(t)
defer cleanup()

features.Set(features.Config{InsertAuthzsIndividually: true})
defer features.Reset()

reg := createWorkingRegistration(t, sa)

// Insert two pre-existing authorizations to reference
Expand Down Expand Up @@ -1286,6 +1289,9 @@ func TestNewOrderAndAuthzs_NonNilInnerOrder(t *testing.T) {
sa, fc, cleanup := initSA(t)
defer cleanup()

features.Set(features.Config{InsertAuthzsIndividually: true})
defer features.Reset()

reg := createWorkingRegistration(t, sa)

expires := fc.Now().Add(2 * time.Hour)
Expand All @@ -1307,6 +1313,9 @@ func TestNewOrderAndAuthzs_MismatchedRegID(t *testing.T) {
sa, _, cleanup := initSA(t)
defer cleanup()

features.Set(features.Config{InsertAuthzsIndividually: true})
defer features.Reset()

_, err := sa.NewOrderAndAuthzs(context.Background(), &sapb.NewOrderAndAuthzsRequest{
NewOrder: &sapb.NewOrderRequest{
RegistrationID: 1,
Expand All @@ -1325,6 +1334,9 @@ func TestNewOrderAndAuthzs_NewAuthzExpectedFields(t *testing.T) {
sa, fc, cleanup := initSA(t)
defer cleanup()

features.Set(features.Config{InsertAuthzsIndividually: true})
defer features.Reset()

reg := createWorkingRegistration(t, sa)
expires := fc.Now().Add(time.Hour)
domain := "a.com"
Expand Down

0 comments on commit 0442894

Please sign in to comment.