Skip to content

Commit

Permalink
Merge pull request #1597 from ministryofjustice/MLPAB-2641-vouch-comp…
Browse files Browse the repository at this point in the history
…lete

MLPAB-2641 Complete donor identity task when voucher declaration
  • Loading branch information
hawx authored Nov 5, 2024
2 parents c6f10e8 + a279d8c commit 3b6b645
Show file tree
Hide file tree
Showing 29 changed files with 168 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestGetIdentityWithOneLoginCallback(t *testing.T) {
r, _ := http.NewRequest(http.MethodGet, "/?code=a-code", nil)

userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Doe", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Doe", CheckedAt: now}

updatedCertificateProvider := &certificateproviderdata.Provided{
IdentityUserData: userData,
Expand Down Expand Up @@ -81,7 +81,7 @@ func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatched(t *testing.T) {
r, _ := http.NewRequest(http.MethodGet, "/?code=a-code", nil)

userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "Jonathan", LastName: "Doe", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "Jonathan", LastName: "Doe", CheckedAt: now}
actorUID := actoruid.New()

certificateProviderStore := newMockCertificateProviderStore(t)
Expand Down Expand Up @@ -144,7 +144,7 @@ func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatchedEventErrors(t *tes
r, _ := http.NewRequest(http.MethodGet, "/?code=a-code", nil)

userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "Jonathan", LastName: "Doe", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "Jonathan", LastName: "Doe", CheckedAt: now}
actorUID := actoruid.New()

certificateProviderStore := newMockCertificateProviderStore(t)
Expand Down Expand Up @@ -575,7 +575,7 @@ func TestGetIdentityWithOneLoginCallbackWhenReturning(t *testing.T) {
w := httptest.NewRecorder()
r, _ := http.NewRequest(http.MethodGet, "/?code=a-code", nil)
now := time.Date(2012, time.January, 1, 2, 3, 4, 5, time.UTC)
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "first-names", LastName: "last-name", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "first-names", LastName: "last-name", CheckedAt: now}

lpaStoreResolvingService := newMockLpaStoreResolvingService(t)
lpaStoreResolvingService.EXPECT().
Expand Down
4 changes: 2 additions & 2 deletions internal/donor/donordata/provided_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ func TestGenerateHash(t *testing.T) {
}

// DO change this value to match the updates
const modified uint64 = 0xc2500da2acebd544
const modified uint64 = 0x171cc2a0256d4510

// DO NOT change these initial hash values. If a field has been added/removed
// you will need to handle the version gracefully by modifying
// (*Provided).HashInclude and adding another testcase for the new
// version.
testcases := map[uint8]uint64{
0: 0xcbdc2610e837540c,
0: 0x556e667fbc8c5f94,
}

for version, initial := range testcases {
Expand Down
6 changes: 3 additions & 3 deletions internal/donor/donorpage/identity_with_one_login_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
func IdentityWithOneLoginCallback(oneLoginClient OneLoginClient, sessionStore SessionStore, donorStore DonorStore, scheduledStore ScheduledStore, eventClient EventClient) Handler {
return func(appData appcontext.Data, w http.ResponseWriter, r *http.Request, provided *donordata.Provided) error {
if provided.DonorIdentityConfirmed() {
return donor.PathOneLoginIdentityDetails.Redirect(w, r, appData, provided)
return donor.PathIdentityDetails.Redirect(w, r, appData, provided)
}

if r.FormValue("error") == "access_denied" {
Expand Down Expand Up @@ -84,15 +84,15 @@ func IdentityWithOneLoginCallback(oneLoginClient OneLoginClient, sessionStore Se
return donor.PathUnableToConfirmIdentity.Redirect(w, r, appData, provided)
default:
if err := scheduledStore.Put(r.Context(), scheduled.Event{
At: userData.RetrievedAt.AddDate(0, 6, 0),
At: userData.CheckedAt.AddDate(0, 6, 0),
Action: scheduled.ActionExpireDonorIdentity,
TargetLpaKey: provided.PK,
TargetLpaOwnerKey: provided.SK,
}); err != nil {
return err
}

return donor.PathOneLoginIdentityDetails.Redirect(w, r, appData, provided)
return donor.PathIdentityDetails.Redirect(w, r, appData, provided)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestGetIdentityWithOneLoginCallback(t *testing.T) {
now := time.Now()

userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Doe", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Doe", CheckedAt: now}
updatedDonor := &donordata.Provided{
PK: dynamo.LpaKey("hey"),
SK: dynamo.LpaOwnerKey(dynamo.DonorKey("oh")),
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestGetIdentityWithOneLoginCallback(t *testing.T) {

assert.Nil(t, err)
assert.Equal(t, http.StatusFound, resp.StatusCode)
assert.Equal(t, donor.PathOneLoginIdentityDetails.Format("lpa-id"), resp.Header.Get("Location"))
assert.Equal(t, donor.PathIdentityDetails.Format("lpa-id"), resp.Header.Get("Location"))
}

func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatched(t *testing.T) {
Expand All @@ -88,7 +88,7 @@ func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatched(t *testing.T) {

actorUID := actoruid.New()
userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Does", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Does", CheckedAt: now}
updatedDonor := &donordata.Provided{
PK: dynamo.LpaKey("hey"),
SK: dynamo.LpaOwnerKey(dynamo.DonorKey("oh")),
Expand Down Expand Up @@ -159,7 +159,7 @@ func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatched(t *testing.T) {

assert.Nil(t, err)
assert.Equal(t, http.StatusFound, resp.StatusCode)
assert.Equal(t, donor.PathOneLoginIdentityDetails.Format("lpa-id"), resp.Header.Get("Location"))
assert.Equal(t, donor.PathIdentityDetails.Format("lpa-id"), resp.Header.Get("Location"))
}

func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatchedEventErrors(t *testing.T) {
Expand All @@ -169,7 +169,7 @@ func TestGetIdentityWithOneLoginCallbackWhenIdentityMismatchedEventErrors(t *tes

actorUID := actoruid.New()
userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Does", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Does", CheckedAt: now}

sessionStore := newMockSessionStore(t)
sessionStore.EXPECT().
Expand Down Expand Up @@ -209,7 +209,7 @@ func TestGetIdentityWithOneLoginCallbackWhenScheduledStoreErrors(t *testing.T) {
now := time.Now()

userInfo := onelogin.UserInfo{CoreIdentityJWT: "an-identity-jwt"}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Doe", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "John", LastName: "Doe", CheckedAt: now}

donorStore := newMockDonorStore(t)
donorStore.EXPECT().
Expand Down Expand Up @@ -519,7 +519,7 @@ func TestGetIdentityWithOneLoginCallbackWhenReturning(t *testing.T) {
w := httptest.NewRecorder()
r, _ := http.NewRequest(http.MethodGet, "/?code=a-code", nil)
now := time.Date(2012, time.January, 1, 2, 3, 4, 5, time.UTC)
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "first-name", LastName: "last-name", RetrievedAt: now}
userData := identity.UserData{Status: identity.StatusConfirmed, FirstNames: "first-name", LastName: "last-name", CheckedAt: now}

err := IdentityWithOneLoginCallback(nil, nil, nil, nil, nil)(testAppData, w, r, &donordata.Provided{
LpaID: "lpa-id",
Expand All @@ -530,5 +530,5 @@ func TestGetIdentityWithOneLoginCallbackWhenReturning(t *testing.T) {

assert.Nil(t, err)
assert.Equal(t, http.StatusFound, resp.StatusCode)
assert.Equal(t, donor.PathOneLoginIdentityDetails.Format("lpa-id"), resp.Header.Get("Location"))
assert.Equal(t, donor.PathIdentityDetails.Format("lpa-id"), resp.Header.Get("Location"))
}
2 changes: 1 addition & 1 deletion internal/donor/donorpage/one_login_identity_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func OneLoginIdentityDetails(tmpl template.Template, donorStore DonorStore) Hand
return err
}

return donor.PathOneLoginIdentityDetails.RedirectQuery(w, r, appData, provided, url.Values{"detailsUpdated": {"1"}})
return donor.PathIdentityDetails.RedirectQuery(w, r, appData, provided, url.Values{"detailsUpdated": {"1"}})
} else {
return donor.PathWithdrawThisLpa.Redirect(w, r, appData, provided)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestPostOneLoginIdentityDetailsWhenYes(t *testing.T) {

assert.Nil(t, err)
assert.Equal(t, http.StatusFound, resp.StatusCode)
assert.Equal(t, donor.PathOneLoginIdentityDetails.Format("lpa-id")+"?detailsUpdated=1", resp.Header.Get("Location"))
assert.Equal(t, donor.PathIdentityDetails.Format("lpa-id")+"?detailsUpdated=1", resp.Header.Get("Location"))
}

func TestPostOneLoginIdentityDetailsWhenNo(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/donor/donorpage/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ func Register(
IdentityWithOneLogin(oneLoginClient, sessionStore, random.String))
handleWithDonor(donor.PathIdentityWithOneLoginCallback, page.CanGoBack,
IdentityWithOneLoginCallback(oneLoginClient, sessionStore, donorStore, scheduledStore, eventClient))
handleWithDonor(donor.PathOneLoginIdentityDetails, page.CanGoBack,
OneLoginIdentityDetails(tmpls.Get("onelogin_identity_details.gohtml"), donorStore))
handleWithDonor(donor.PathIdentityDetails, page.CanGoBack,
OneLoginIdentityDetails(tmpls.Get("identity_details.gohtml"), donorStore))
handleWithDonor(donor.PathRegisterWithCourtOfProtection, page.None,
RegisterWithCourtOfProtection(tmpls.Get("register_with_court_of_protection.gohtml"), donorStore))

Expand Down
2 changes: 1 addition & 1 deletion internal/donor/donorpage/task_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func taskListSignSection(provided *donordata.Provided) taskListSection {

switch provided.IdentityUserData.Status {
case identity.StatusConfirmed:
confirmYourIdentityPath = donor.PathOneLoginIdentityDetails
confirmYourIdentityPath = donor.PathIdentityDetails

if !provided.WitnessedByCertificateProviderAt.IsZero() {
signTheLpaPath = donor.PathYouHaveSubmittedYourLpa
Expand Down
10 changes: 5 additions & 5 deletions internal/donor/donorpage/task_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestGetTaskList(t *testing.T) {
},
expected: func(sections []taskListSection) []taskListSection {
sections[2].Items = []taskListItem{
{Name: "confirmYourIdentity", Path: donor.PathOneLoginIdentityDetails.Format("lpa-id")},
{Name: "confirmYourIdentity", Path: donor.PathIdentityDetails.Format("lpa-id")},
{Name: "signTheLpa", Path: donor.PathHowToSignYourLpa.Format("lpa-id")},
}

Expand All @@ -123,7 +123,7 @@ func TestGetTaskList(t *testing.T) {
IdentityUserData: identity.UserData{Status: identity.StatusConfirmed, LastName: "a"},
},
expected: func(sections []taskListSection) []taskListSection {
sections[2].Items[0].Path = donor.PathOneLoginIdentityDetails.Format("lpa-id")
sections[2].Items[0].Path = donor.PathIdentityDetails.Format("lpa-id")

return sections
},
Expand Down Expand Up @@ -467,7 +467,7 @@ func TestGetTaskList(t *testing.T) {
}

sections[2].Items = []taskListItem{
{Name: "confirmYourIdentity", Path: donor.PathOneLoginIdentityDetails.Format("lpa-id"), IdentityState: task.IdentityStateCompleted},
{Name: "confirmYourIdentity", Path: donor.PathIdentityDetails.Format("lpa-id"), IdentityState: task.IdentityStateCompleted},
{Name: "signTheLpa", Path: donor.PathHowToSignYourLpa.Format("lpa-id")},
}

Expand Down Expand Up @@ -522,7 +522,7 @@ func TestGetTaskList(t *testing.T) {
}

sections[2].Items = []taskListItem{
{Name: "confirmYourIdentity", Path: donor.PathOneLoginIdentityDetails.Format("lpa-id"), IdentityState: task.IdentityStateCompleted},
{Name: "confirmYourIdentity", Path: donor.PathIdentityDetails.Format("lpa-id"), IdentityState: task.IdentityStateCompleted},
{Name: "signTheLpa", Path: donor.PathWitnessingYourSignature.Format("lpa-id"), State: task.StateCompleted},
}

Expand Down Expand Up @@ -578,7 +578,7 @@ func TestGetTaskList(t *testing.T) {
}

sections[2].Items = []taskListItem{
{Name: "confirmYourIdentity", Path: donor.PathOneLoginIdentityDetails.Format("lpa-id"), IdentityState: task.IdentityStateCompleted},
{Name: "confirmYourIdentity", Path: donor.PathIdentityDetails.Format("lpa-id"), IdentityState: task.IdentityStateCompleted},
{Name: "signTheLpa", Path: donor.PathYouHaveSubmittedYourLpa.Format("lpa-id"), State: task.StateCompleted},
}

Expand Down
2 changes: 1 addition & 1 deletion internal/donor/donorpage/what_you_can_do_now_expired.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func WhatYouCanDoNowExpired(tmpl template.Template, donorStore DonorStore) Handl
data.NewVoucherLabel = "iHaveSomeoneWhoCanVouch"
data.ProveOwnIdentityLabel = "iWillReturnToOneLogin"

if provided.IdentityUserData.VouchedFor {
if provided.WantVoucher.IsYes() {
data.ProveOwnIdentityLabel = "iWillGetOrFindID"

switch provided.FailedVouchAttempts {
Expand Down
8 changes: 4 additions & 4 deletions internal/donor/donorpage/what_you_can_do_now_expired_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestGetWhatYouCanDoNowExpired(t *testing.T) {
NewVoucherLabel string
ProveOwnIdentityLabel string
CanHaveVoucher bool
VouchedForIdentity bool
WantVoucher form.YesNo
}{
0: {
BannerContent: "yourConfirmedIdentityHasExpired",
Expand All @@ -37,13 +37,13 @@ func TestGetWhatYouCanDoNowExpired(t *testing.T) {
NewVoucherLabel: "iHaveSomeoneWhoCanVouch",
ProveOwnIdentityLabel: "iWillGetOrFindID",
CanHaveVoucher: true,
VouchedForIdentity: true,
WantVoucher: form.Yes,
},
2: {
BannerContent: "yourVouchedForIdentityHasExpiredSecondAttempt",
NewVoucherLabel: "iHaveSomeoneWhoCanVouch",
ProveOwnIdentityLabel: "iWillGetOrFindID",
VouchedForIdentity: true,
WantVoucher: form.Yes,
},
}

Expand All @@ -69,7 +69,7 @@ func TestGetWhatYouCanDoNowExpired(t *testing.T) {

err := WhatYouCanDoNowExpired(template.Execute, nil)(testAppData, w, r, &donordata.Provided{
FailedVouchAttempts: failedVouchAttempts,
IdentityUserData: identity.UserData{VouchedFor: tc.VouchedForIdentity},
WantVoucher: tc.WantVoucher,
})

assert.Nil(t, err)
Expand Down
4 changes: 2 additions & 2 deletions internal/donor/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const (
PathLpaYourLegalRightsAndResponsibilities = Path("/your-legal-rights-and-responsibilities")
PathMakeANewLPA = Path("/make-a-new-lpa")
PathNeedHelpSigningConfirmation = Path("/need-help-signing-confirmation")
PathOneLoginIdentityDetails = Path("/one-login-identity-details")
PathIdentityDetails = Path("/one-login-identity-details")
PathPaymentConfirmation = Path("/payment-confirmation")
PathPaymentSuccessful = Path("/payment-successful")
PathPreviousApplicationNumber = Path("/previous-application-number")
Expand Down Expand Up @@ -215,7 +215,7 @@ func (p Path) canVisit(donor *donordata.Provided) bool {

case PathConfirmYourIdentity,
PathIdentityWithOneLogin,
PathOneLoginIdentityDetails,
PathIdentityDetails,
PathLpaYourLegalRightsAndResponsibilities,
PathSignTheLpaOnBehalf:
return section1Completed && (donor.Tasks.PayForLpa.IsCompleted() || donor.Tasks.PayForLpa.IsPending())
Expand Down
5 changes: 3 additions & 2 deletions internal/identity/user_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ type UserData struct {
FirstNames string
LastName string
DateOfBirth date.Date
RetrievedAt time.Time
CurrentAddress place.Address
VouchedFor bool
// CheckedAt records when identity information was taken from OneLogin or
// when the identity data was vouched for.
CheckedAt time.Time
}

func (u UserData) MatchName(firstNames, lastName string) bool {
Expand Down
4 changes: 2 additions & 2 deletions internal/lpastore/lpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (c *Client) SendLpa(ctx context.Context, donor *donordata.Provided) error {

if donor.DonorIdentityConfirmed() {
body.Donor.IdentityCheck = &lpaRequestIdentityCheck{
CheckedAt: donor.IdentityUserData.RetrievedAt,
CheckedAt: donor.IdentityUserData.CheckedAt,
Type: "one-login",
}
}
Expand Down Expand Up @@ -563,7 +563,7 @@ func FromDonorProvidedDetails(l *donordata.Provided) *lpadata.Lpa {
}

if l.DonorIdentityConfirmed() {
data.Donor.IdentityCheck.CheckedAt = l.IdentityUserData.RetrievedAt
data.Donor.IdentityCheck.CheckedAt = l.IdentityUserData.CheckedAt
data.Donor.IdentityCheck.Type = "one-login"
}

Expand Down
2 changes: 1 addition & 1 deletion internal/lpastore/lpa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func TestClientSendLpa(t *testing.T) {
FirstNames: "John Johnson",
LastName: "Smith",
DateOfBirth: date.New("2000", "1", "2"),
RetrievedAt: time.Date(2002, time.January, 2, 12, 14, 16, 9, time.UTC),
CheckedAt: time.Date(2002, time.January, 2, 12, 14, 16, 9, time.UTC),
},
SignedAt: time.Date(2000, time.January, 2, 3, 4, 5, 6, time.UTC),
WitnessedByCertificateProviderAt: time.Date(2000, time.February, 3, 4, 5, 6, 7, time.UTC),
Expand Down
8 changes: 4 additions & 4 deletions internal/lpastore/resolving_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func TestResolvingServiceGet(t *testing.T) {
PayForLpa: task.PaymentStateCompleted,
},
IdentityUserData: identity.UserData{
Status: identity.StatusConfirmed,
RetrievedAt: time.Now(),
Status: identity.StatusConfirmed,
CheckedAt: time.Now(),
},
Correspondent: donordata.Correspondent{Email: "x"},
AuthorisedSignatory: donordata.AuthorisedSignatory{UID: actorUID, FirstNames: "A", LastName: "S"},
Expand Down Expand Up @@ -88,8 +88,8 @@ func TestResolvingServiceGet(t *testing.T) {
TrustCorporation: donordata.TrustCorporation{Name: "d"},
},
IdentityUserData: identity.UserData{
Status: identity.StatusConfirmed,
RetrievedAt: time.Date(2020, time.January, 2, 12, 13, 14, 5, time.UTC),
Status: identity.StatusConfirmed,
CheckedAt: time.Date(2020, time.January, 2, 12, 13, 14, 5, time.UTC),
},
Correspondent: donordata.Correspondent{Email: "x"},
AuthorisedSignatory: donordata.AuthorisedSignatory{UID: actorUID, FirstNames: "A", LastName: "S"},
Expand Down
4 changes: 2 additions & 2 deletions internal/lpastore/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (c *Client) SendDonorConfirmIdentity(ctx context.Context, donor *donordata.
body := updateRequest{
Type: "DONOR_CONFIRM_IDENTITY",
Changes: []updateRequestChange{
{Key: "/donor/identityCheck/checkedAt", New: donor.IdentityUserData.RetrievedAt, Old: nil},
{Key: "/donor/identityCheck/checkedAt", New: donor.IdentityUserData.CheckedAt, Old: nil},
{Key: "/donor/identityCheck/type", New: "one-login", Old: nil},
},
}
Expand All @@ -216,7 +216,7 @@ func (c *Client) SendCertificateProviderConfirmIdentity(ctx context.Context, lpa
body := updateRequest{
Type: "CERTIFICATE_PROVIDER_CONFIRM_IDENTITY",
Changes: []updateRequestChange{
{Key: "/certificateProvider/identityCheck/checkedAt", New: certificateProvider.IdentityUserData.RetrievedAt, Old: nil},
{Key: "/certificateProvider/identityCheck/checkedAt", New: certificateProvider.IdentityUserData.CheckedAt, Old: nil},
{Key: "/certificateProvider/identityCheck/type", New: "one-login", Old: nil},
},
}
Expand Down
4 changes: 2 additions & 2 deletions internal/lpastore/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func TestClientSendDonorConfirmIdentity(t *testing.T) {
LpaUID: "lpa-uid",
Donor: donordata.Donor{UID: uid},
IdentityUserData: identity.UserData{
RetrievedAt: time.Date(2024, time.January, 2, 12, 13, 14, 6, time.UTC),
CheckedAt: time.Date(2024, time.January, 2, 12, 13, 14, 6, time.UTC),
},
})

Expand Down Expand Up @@ -458,7 +458,7 @@ func TestClientSendCertificateProviderConfirmIdentity(t *testing.T) {
err := client.SendCertificateProviderConfirmIdentity(ctx, "lpa-uid", &certificateproviderdata.Provided{
UID: uid,
IdentityUserData: identity.UserData{
RetrievedAt: time.Date(2024, time.January, 2, 12, 13, 14, 6, time.UTC),
CheckedAt: time.Date(2024, time.January, 2, 12, 13, 14, 6, time.UTC),
},
})

Expand Down
Loading

0 comments on commit 3b6b645

Please sign in to comment.