Skip to content

Commit 96b0d3e

Browse files
update TestAPI
Signed-off-by: Tim Vaillancourt <[email protected]>
1 parent 0d55c73 commit 96b0d3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go/vt/vtctld/api_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func TestAPI(t *testing.T) {
253253
"durability_policy":"semi_sync",
254254
"throttler_config": null,
255255
"sidecar_db_name":"_vt_sidecar_ks1",
256-
"vtorc_config": {
256+
"vtorc": {
257257
"disable_emergency_reparent": true
258258
}
259259
}`, http.StatusOK},
@@ -277,7 +277,7 @@ func TestAPI(t *testing.T) {
277277
"source_shards": [],
278278
"tablet_controls": [],
279279
"is_primary_serving": true,
280-
"vtorc_config": null
280+
"vtorc": null
281281
}`, http.StatusOK},
282282
{"GET", "shards/ks1/-DEAD", "", "404 page not found", http.StatusNotFound},
283283
{"POST", "shards/ks1/-80?action=TestShardAction", "", `{
@@ -337,11 +337,11 @@ func TestAPI(t *testing.T) {
337337
// vtctl RunCommand
338338
{"POST", "vtctl/", `["GetKeyspace","ks1"]`, `{
339339
"Error": "",
340-
"Output": "{\n \"keyspace_type\": 0,\n \"base_keyspace\": \"\",\n \"snapshot_time\": null,\n \"durability_policy\": \"semi_sync\",\n \"throttler_config\": null,\n \"sidecar_db_name\": \"_vt_sidecar_ks1\",\n \"vtorc_config\": {\n \"disable_emergency_reparent\": true\n }\n}\n\n"
340+
"Output": "{\n \"keyspace_type\": 0,\n \"base_keyspace\": \"\",\n \"snapshot_time\": null,\n \"durability_policy\": \"semi_sync\",\n \"throttler_config\": null,\n \"sidecar_db_name\": \"_vt_sidecar_ks1\",\n \"vtorc\": {\n \"disable_emergency_reparent\": true\n }\n}\n\n"
341341
}`, http.StatusOK},
342342
{"POST", "vtctl/", `["GetKeyspace","ks3"]`, `{
343343
"Error": "",
344-
"Output": "{\n \"keyspace_type\": 1,\n \"base_keyspace\": \"ks1\",\n \"snapshot_time\": {\n \"seconds\": \"1136214245\",\n \"nanoseconds\": 0\n },\n \"durability_policy\": \"none\",\n \"throttler_config\": null,\n \"sidecar_db_name\": \"_vt\",\n \"vtorc_config\": {\n \"disable_emergency_reparent\": false\n }\n}\n\n"
344+
"Output": "{\n \"keyspace_type\": 1,\n \"base_keyspace\": \"ks1\",\n \"snapshot_time\": {\n \"seconds\": \"1136214245\",\n \"nanoseconds\": 0\n },\n \"durability_policy\": \"none\",\n \"throttler_config\": null,\n \"sidecar_db_name\": \"_vt\",\n \"vtorc\": {\n \"disable_emergency_reparent\": false\n }\n}\n\n"
345345
}`, http.StatusOK},
346346
{"POST", "vtctl/", `["GetVSchema","ks3"]`, `{
347347
"Error": "",

0 commit comments

Comments
 (0)