Skip to content

Commit 0b86113

Browse files
Copilottobio
andcommitted
Fix unit tests for namespace support in synthetics monitor
Co-authored-by: tobio <[email protected]>
1 parent 430e4d3 commit 0b86113

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/kibana/synthetics/schema_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ func TestToModelV0(t *testing.T) {
195195
ID: types.StringValue("default/test-id-http"),
196196
Name: types.StringValue("test-name-http"),
197197
SpaceID: types.StringValue("default"),
198+
Namespace: types.StringValue("default"),
198199
Schedule: types.Int64Value(5),
199200
Locations: []types.String{types.StringValue("us_east")},
200201
PrivateLocations: []types.String{types.StringValue("test private location")},
@@ -265,6 +266,7 @@ func TestToModelV0(t *testing.T) {
265266
ID: types.StringValue("default/test-id-tcp"),
266267
Name: types.StringValue("test-name-tcp"),
267268
SpaceID: types.StringValue("default"),
269+
Namespace: types.StringValue("default"),
268270
Schedule: types.Int64Value(5),
269271
Locations: nil,
270272
PrivateLocations: []types.String{types.StringValue("test private location")},
@@ -732,6 +734,7 @@ func TestToModelV0MergeAttributes(t *testing.T) {
732734
ID: types.StringValue("/"),
733735
Name: types.StringValue(""),
734736
SpaceID: types.StringValue(""),
737+
Namespace: types.StringValue(""),
735738
Schedule: types.Int64Value(0),
736739
APMServiceName: types.StringValue(""),
737740
TimeoutSeconds: types.Int64Value(0),

0 commit comments

Comments
 (0)