-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for limiting number of entities. (#373)
- Loading branch information
1 parent
dc4f1af
commit a10b3d8
Showing
6 changed files
with
20 additions
and
2 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
3 changes: 3 additions & 0 deletions
3
...s/org/metafacture/metafix/integration/script/fromJson/toJson/maxEntityCount/expected.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,3 @@ | ||
{"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} | ||
{"key1":"value1","key2":["v1","v2"]} | ||
{"key1":"value1","key2":["v1","v2"],"key3":"value3","key4":"value4"} |
3 changes: 3 additions & 0 deletions
3
...rces/org/metafacture/metafix/integration/script/fromJson/toJson/maxEntityCount/input.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,3 @@ | ||
{"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} | ||
{"key1":"value1","key2":["v1","v2"],"key3":["v3"],"key4":"value4"} | ||
{"key1":"value1","key2":["v1","v2"],"key3":"value3","key4":"value4"} |
1 change: 1 addition & 0 deletions
1
...es/org/metafacture/metafix/integration/script/fromJson/toJson/maxEntityCount/metafix.args
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 @@ | ||
-Dorg.metafacture.metafix.maxEntityCount=1 |
1 change: 1 addition & 0 deletions
1
...ources/org/metafacture/metafix/integration/script/fromJson/toJson/maxEntityCount/test.fix
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 @@ | ||
nothing() |
8 changes: 8 additions & 0 deletions
8
...urces/org/metafacture/metafix/integration/script/fromJson/toJson/maxEntityCount/test.flux
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,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-lines | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |