-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed checking for fields that are new in the post document and got a…
…udit hook to the point that we *could* do something with the data.. it doesn't do anything still
- Loading branch information
Showing
8 changed files
with
88 additions
and
7 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
6 changes: 6 additions & 0 deletions
6
src/test/resources/CountryAuditHookTest-differentPreAndPost-post.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "United States of America", | ||
"iso2Code": "US", | ||
"iso3Code": "USA", | ||
"optionalField": "changed" | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/CountryAuditHookTest-differentPreAndPost-pre.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "United States of America", | ||
"iso2Code": "US", | ||
"iso3Code": "USA" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/test/resources/CountryAuditHookTest-missingAllIdentifyingFields-post.json
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"name": "United States of America" | ||
"name": "United States of America", | ||
"optionalField": "changed" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/test/resources/CountryAuditHookTest-missingOneIdentifyingField-post.json
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"name": "United States of America", | ||
"iso2Code": "US" | ||
"iso2Code": "US", | ||
"optionalField": "changed" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/test/resources/CountryAuditHookTest-noMissingIdentifyingFields-post.json
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "United States of America", | ||
"iso2Code": "US", | ||
"iso3Code": "USA" | ||
"iso3Code": "USA", | ||
"optionalField": "changed" | ||
} |
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 |
---|---|---|
|
@@ -54,6 +54,9 @@ | |
"constraints": { | ||
"identity": true | ||
} | ||
}, | ||
"optionalField": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
|