Skip to content

Commit 729d08b

Browse files
committed
Fix the normalizer
1 parent cfd5766 commit 729d08b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

mockgcp/mockaiplatform/testdata/schedule/crud/_http.log

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ X-Xss-Protection: 0
9292
},
9393
"parent": "projects/${projectId}/locations/us-central1"
9494
},
95-
"createTime": "2024-01-01T12:34:56.123456Z",
95+
"createTime": "2024-04-01T12:34:56.123456Z",
9696
"cron": "* * * * *",
9797
"displayName": "test-${uniqueId}",
9898
"maxConcurrentRunCount": "1",
9999
"name": "projects/${projectNumber}/locations/us-central1/schedules/test-${uniqueId}",
100100
"nextRunTime": "2024-04-01T12:34:56.123456Z",
101-
"startTime": "2024-01-03T12:34:56.123456Z",
101+
"startTime": "2024-04-01T12:34:56.123456Z",
102102
"state": "ACTIVE"
103103
}
104104
]
@@ -179,13 +179,13 @@ X-Xss-Protection: 0
179179
},
180180
"parent": "projects/${projectId}/locations/us-central1"
181181
},
182-
"createTime": "2024-01-01T12:34:56.123456Z",
182+
"createTime": "2024-04-01T12:34:56.123456Z",
183183
"cron": "* * * * *",
184184
"displayName": "test-${uniqueId}",
185185
"maxConcurrentRunCount": "1",
186186
"name": "projects/${projectNumber}/locations/us-central1/schedules/test-${uniqueId}",
187187
"nextRunTime": "2024-04-01T12:34:56.123456Z",
188-
"startTime": "2024-01-03T12:34:56.123456Z",
188+
"startTime": "2024-04-01T12:34:56.123456Z",
189189
"state": "ACTIVE"
190190
}
191191
]

tests/e2e/normalize.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ func normalizeHTTPResponses(t *testing.T, normalizer mockgcpregistry.Normalizer,
941941
{
942942
visitor.ReplacePath(".updateTime", "2024-04-01T12:34:56.123456Z")
943943
visitor.ReplacePath(".nextRunTime", "2024-04-01T12:34:56.123456Z")
944+
visitor.ReplacePath(".expirationTime", "2024-09-01T12:34:56.123456Z")
944945
visitor.ReplacePath(".schedules[].createTime", "2024-04-01T12:34:56.123456Z")
945946
visitor.ReplacePath(".schedules[].nextRunTime", "2024-04-01T12:34:56.123456Z")
946947
visitor.ReplacePath(".schedules[].startTime", "2024-04-01T12:34:56.123456Z")

0 commit comments

Comments
 (0)