Skip to content

Commit

Permalink
🟢 fix test for updated dummy.json
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
  • Loading branch information
arlimus committed Jan 21, 2024
1 parent 08b0d69 commit 714818e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion providers-sdk/v1/testutils/testdata/arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"Fields": {
"content": {
"type": "\u0007",
"value": "{\n \"_\": null,\n \"true\": true,\n \"1\": 1,\n \"1.0\": 1.0,\n \"int-array\": [1,2,3],\n \"dict\": {\n \"ee\": 3,\n \"ej\": 4,\n \"ek\": 5\n },\n \"f\": [{\"ff\": 3}],\n \"string-array\": [\"a\", \"b\", \"c\"],\n \"hello\": \"hello\",\n \"date\": \"2016-01-28T23:02:24Z\",\n \"aoa\": [[1, 2], 3],\n \"users\": [\n {\n \"name\": \"yor\",\n \"children\": [\n {\"name\": \"anya\"}\n ]\n },\n {\"name\": \"loid\"}\n ]\n}\n"
"value": "{\n \"_\": null,\n \"true\": true,\n \"1\": 1,\n \"1.0\": 1.0,\n \"int-array\": [1,2,3],\n \"dict\": {\n \"ee\": 3,\n \"ej\": 4,\n \"ek\": 5\n },\n \"f\": [{\"ff\": 3}],\n \"string-array\": [\"a\", \"b\", \"c\"],\n \"hello\": \"hello\",\n \"date\": \"2016-01-28T23:02:24Z\",\n \"aoa\": [[1, 2], 3],\n \"users\": [\n {\n \"name\": \"yor\",\n \"children\": [\n {\"name\": \"anya\"}\n ]\n },\n {\"name\": \"loid\"}\n ],\n \"zzzlast\": \"🌒\"}\n"
},
"path": {
"type": "\u0007",
Expand Down
10 changes: 5 additions & 5 deletions providers/os/resources/mql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestOS_Vars(t *testing.T) {
x.TestSimple(t, []testutils.SimpleTest{
{
Code: "p = file('/dummy.json'); parse.json(file: p).params.length",
Expectation: int64(11),
Expectation: int64(13),
},
})
}
Expand All @@ -97,15 +97,15 @@ func TestMap(t *testing.T) {
},
{
Code: "parse.json('/dummy.json').params.length",
Expectation: int64(11),
Expectation: int64(13),
},
{
Code: "parse.json('/dummy.json').params.keys.length",
Expectation: int64(11),
Expectation: int64(13),
},
{
Code: "parse.json('/dummy.json').params.values.length",
Expectation: int64(11),
Expectation: int64(13),
},
{
Code: "parse.json('/dummy.json').params { _['Protocol'] != 1 }",
Expand Down Expand Up @@ -461,7 +461,7 @@ func TestDict_Methods_Map(t *testing.T) {
},
{
Code: p + "params.last",
Expectation: true,
Expectation: "🌒",
},
{
Code: p + "params['aoa'].flat",
Expand Down

0 comments on commit 714818e

Please sign in to comment.