A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/github/vulcanizer/commit/309cd67e5d55c7ef23df325df245fdb4f6815615 below:

added additional test to see if map[string]bool works correctly · github/vulcanizer@309cd67 · GitHub

This repository was archived by the owner on Apr 15, 2025. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+23

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+23

-0

lines changed Original file line number Diff line number Diff line change

@@ -1407,6 +1407,29 @@ func TestSnapshotAllIndicesWithAdditionalParameters(t *testing.T) {

1407 1407

}

1408 1408

}

1409 1409 1410 +

func TestSnapshotAllIndicesWithAdditionalParametersIncludeGlobalState(t *testing.T) {

1411 +

testSetup := &ServerSetup{

1412 +

Method: "PUT",

1413 +

Path: "/_snapshot/backup-repo/snapshot1",

1414 +

Body: `{"include_global_state":true}`,

1415 +

Response: `{"acknowledged": true }`,

1416 +

}

1417 + 1418 +

host, port, ts := setupTestServers(t, []*ServerSetup{testSetup})

1419 +

defer ts.Close()

1420 +

client := NewClient(host, port)

1421 + 1422 +

bodyParams := map[string]interface{}{

1423 +

"include_global_state": true,

1424 +

}

1425 + 1426 +

err := client.SnapshotAllIndicesWithBodyParams("backup-repo", "snapshot1", bodyParams)

1427 + 1428 +

if err != nil {

1429 +

t.Fatalf("Got error taking snapshot: %s", err)

1430 +

}

1431 +

}

1432 + 1410 1433

func TestSnapshotAllIndicesWithAdditionalParametersErr(t *testing.T) {

1411 1434

testSetup := &ServerSetup{

1412 1435

Method: "PUT",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4