-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
relax email+channel validation until consumer tests updated
- Loading branch information
Showing
2 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -299,31 +299,31 @@ func TestValidateLpaInvalid(t *testing.T) { | |
{Source: "/lifeSustainingTreatmentOption", Detail: "field must not be provided"}, | ||
}, | ||
}, | ||
"online trust corporation missing email": { | ||
lpa: shared.LpaInit{ | ||
TrustCorporations: []shared.TrustCorporation{ | ||
{ | ||
Channel: shared.ChannelOnline, | ||
}, | ||
}, | ||
}, | ||
contains: []shared.FieldError{ | ||
{Source: "/trustCorporations/0/email", Detail: "field is required"}, | ||
}, | ||
}, | ||
"paper trust corporation with email": { | ||
lpa: shared.LpaInit{ | ||
TrustCorporations: []shared.TrustCorporation{ | ||
{ | ||
Channel: shared.ChannelPaper, | ||
Email: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
contains: []shared.FieldError{ | ||
{Source: "/trustCorporations/0/email", Detail: "field must not be provided"}, | ||
}, | ||
}, | ||
//"online trust corporation missing email": { | ||
// lpa: shared.LpaInit{ | ||
// TrustCorporations: []shared.TrustCorporation{ | ||
// { | ||
// Channel: shared.ChannelOnline, | ||
// }, | ||
// }, | ||
// }, | ||
// contains: []shared.FieldError{ | ||
// {Source: "/trustCorporations/0/email", Detail: "field is required"}, | ||
// }, | ||
//}, | ||
//"paper trust corporation with email": { | ||
// lpa: shared.LpaInit{ | ||
// TrustCorporations: []shared.TrustCorporation{ | ||
// { | ||
// Channel: shared.ChannelPaper, | ||
// Email: "[email protected]", | ||
// }, | ||
// }, | ||
// }, | ||
// contains: []shared.FieldError{ | ||
// {Source: "/trustCorporations/0/email", Detail: "field must not be provided"}, | ||
// }, | ||
//}, | ||
} | ||
|
||
for name, tc := range testcases { | ||
|