Skip to content

Commit

Permalink
Merge pull request #1379 from ministryofjustice/update-lpa-store-stat…
Browse files Browse the repository at this point in the history
…uses

Change pact test to match all statuses and include new statuses
  • Loading branch information
mabely authored Jul 26, 2024
2 parents 97d05f3 + b64a1c3 commit 88482ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/lpastore/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ func TestClientServiceContract(t *testing.T) {
// b.Header("Content-Type", matchers.String("application/json"))
b.JSONBody(matchers.Map{
"uid": matchers.Regex("M-0000-1111-2222", "M(-[A-Z0-9]{4}){3}"),
"status": matchers.String("processing"),
"status": matchers.Regex("in-progress", "in-progress|processing|cannot-register|statutory-waiting-period|perfect|registered"),
"lpaType": matchers.String("personal-welfare"),
"channel": matchers.String("online"),
"donor": matchers.Like(map[string]any{
Expand Down Expand Up @@ -926,7 +926,7 @@ func TestClientServiceContract(t *testing.T) {
b.JSONBody(matchers.Map{
"lpas": matchers.EachLike(matchers.Map{
"uid": matchers.Regex("M-0000-1111-2222", "M(-[A-Z0-9]{4}){3}"),
"status": matchers.String("processing"),
"status": matchers.Regex("in-progress", "in-progress|processing|cannot-register|statutory-waiting-period|perfect|registered"),
"lpaType": matchers.String("personal-welfare"),
"channel": matchers.String("online"),
"donor": matchers.Like(map[string]any{
Expand Down

0 comments on commit 88482ba

Please sign in to comment.