MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestPutDbConfigChangeName

Function TestPutDbConfigChangeName

rest/adminapitest/admin_api_test.go:2907–2912  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2905}
2906
2907func TestPutDbConfigChangeName(t *testing.T) {
2908 rt := rest.NewRestTesterPersistentConfig(t)
2909 defer rt.Close()
2910
2911 rest.RequireStatus(t, rt.SendAdminRequest(http.MethodPut, "/db/_config", `{"name": "test"}`), http.StatusBadRequest)
2912}
2913
2914func TestSwitchDbConfigCollectionName(t *testing.T) {
2915 base.TestRequiresCollections(t)

Callers

nothing calls this directly

Calls 4

RequireStatusFunction · 0.92
SendAdminRequestMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected