Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d08b5d9

Browse files
authoredMar 28, 2025··
Merge branch 'main' into shuheiktgw/add_monitor_input_validations
2 parents 561ac18 + a8a3f9b commit d08b5d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎internal/controller/datadoggenericresource/synthetics_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Test_updateStatusFromSyntheticsTest(t *testing.T) {
3030
},
3131
},
3232
expectedStatus: v1alpha1.DatadogGenericResourceStatus{
33-
Id: "test-id",
33+
Id: "123456789",
3434
Creator: "test-handle",
3535
SyncStatus: v1alpha1.DatadogSyncStatusOK,
3636
CurrentHash: hash,
@@ -46,7 +46,7 @@ func Test_updateStatusFromSyntheticsTest(t *testing.T) {
4646
},
4747
},
4848
expectedStatus: v1alpha1.DatadogGenericResourceStatus{
49-
Id: "test-id",
49+
Id: "123456789",
5050
Creator: "test-handle",
5151
SyncStatus: v1alpha1.DatadogSyncStatusOK,
5252
CurrentHash: hash,
@@ -63,7 +63,7 @@ func Test_updateStatusFromSyntheticsTest(t *testing.T) {
6363
},
6464
},
6565
expectedStatus: v1alpha1.DatadogGenericResourceStatus{
66-
Id: "test-id",
66+
Id: "123456789",
6767
Creator: "test-handle",
6868
SyncStatus: v1alpha1.DatadogSyncStatusOK,
6969
CurrentHash: hash,
@@ -77,7 +77,7 @@ func Test_updateStatusFromSyntheticsTest(t *testing.T) {
7777
"created_at": "2024-01-01T00:00:00Z",
7878
},
7979
expectedStatus: v1alpha1.DatadogGenericResourceStatus{
80-
Id: "test-id",
80+
Id: "123456789",
8181
Creator: "",
8282
SyncStatus: v1alpha1.DatadogSyncStatusOK,
8383
CurrentHash: hash,
@@ -92,7 +92,7 @@ func Test_updateStatusFromSyntheticsTest(t *testing.T) {
9292
"created_by": map[string]interface{}{},
9393
},
9494
expectedStatus: v1alpha1.DatadogGenericResourceStatus{
95-
Id: "test-id",
95+
Id: "123456789",
9696
Creator: "",
9797
SyncStatus: v1alpha1.DatadogSyncStatusOK,
9898
CurrentHash: hash,
@@ -106,7 +106,7 @@ func Test_updateStatusFromSyntheticsTest(t *testing.T) {
106106
t.Run(tt.name, func(t *testing.T) {
107107
status := &v1alpha1.DatadogGenericResourceStatus{}
108108
syntheticTest := &datadogV1.SyntheticsAPITest{}
109-
syntheticTest.SetPublicId("test-id")
109+
syntheticTest.SetPublicId("123456789")
110110
err := updateStatusFromSyntheticsTest(syntheticTest, tt.additionalProperties, status, mockLogger, hash)
111111
assert.NoError(t, err)
112112
assert.Equal(t, tt.expectedStatus.Id, status.Id)

0 commit comments

Comments
 (0)
Please sign in to comment.