-
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.
Rename folder for integration test of #145
- Loading branch information
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...etafacture/metafix/integration/record/fromJson/toJson/retainCertainSubfields/disabled.txt
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 @@ | ||
See issue #145 |
11 changes: 11 additions & 0 deletions
11
...tafacture/metafix/integration/record/fromJson/toJson/retainCertainSubfields/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,11 @@ | ||
{ | ||
"test" : [ { | ||
"foo" : "bar" | ||
}, { | ||
"foo" : "bar" | ||
} ], | ||
"words" : [ "bla", "bla", "bla" ], | ||
"test_2" : { | ||
"test": "test" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
.../metafacture/metafix/integration/record/fromJson/toJson/retainCertainSubfields/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,17 @@ | ||
{ | ||
"test" : [ { | ||
"key" : [ "value", "more_value", "even_more_value" ], | ||
"foo" : "bar", | ||
"test": "test" | ||
}, { | ||
"key" : [ "less_value", "little_value", "no_value" ], | ||
"foo" : "bar", | ||
"test": "test" | ||
} ], | ||
"words" : [ "bla", "bla", "bla" ], | ||
"test_2" : { | ||
"key" : [ "value", "more_value", "even_more_value" ], | ||
"foo" : "bar", | ||
"test": "test" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...rg/metafacture/metafix/integration/record/fromJson/toJson/retainCertainSubfields/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 @@ | ||
retain("words[]", "test[].*.foo", "test_2.test") |
8 changes: 8 additions & 0 deletions
8
...g/metafacture/metafix/integration/record/fromJson/toJson/retainCertainSubfields/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-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |