Skip to content

Commit

Permalink
WIP: fix merge/rebase test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vzayts committed Dec 5, 2023
1 parent 9f0b917 commit 3ea7ac6
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions supervisor_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ var jsonBasic = `{
]
},
"granularitySpec": {
"queryGranularity": { "type": "none" },
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "none"
"queryGranularity": { "type": "none" }
}
},
"ioConfig": {
Expand Down Expand Up @@ -141,9 +141,9 @@ var jsonWithTypedDimensions = `{
]
},
"granularitySpec": {
"type": "uniform",
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "none"
"queryGranularity": {"type": "none"}
}
},
"ioConfig": {
Expand Down Expand Up @@ -193,15 +193,20 @@ var jsonWithSqlInputSource = `{
},
"dimensionsSpec": {
"dimensions": [
"ts",
"user_name",
"payload"
{
"type": "string",
"name": "ts"
},
{
"type": "json",
"name": "payload"
}
]
},
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "none"
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity: {type": "none"}
}
},
"ioConfig": {
Expand Down Expand Up @@ -253,6 +258,10 @@ func TestIngestionSpecWithSqlInputSource_MarshalJSON(t *testing.T) {
t.Fatalf("unexpected error while marshalling: %v", err)
}
expected := []byte(jsonWithSqlInputSource)

fmt.Println("Expected: " + string(expected))
fmt.Println("Actual : " + string(actual))

require.JSONEq(t, string(expected), string(actual), fmt.Sprintf("expected: %s\nactual: %s", string(expected), string(actual)))

var checkSpec *InputIngestionSpec
Expand Down

0 comments on commit 3ea7ac6

Please sign in to comment.