MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / GrootHttpLoginNamespace

Function GrootHttpLoginNamespace

testutil/client.go:571–580  ·  view source on GitHub ↗
(endpoint string, namespace uint64)

Source from the content-addressed store, hash-verified

569}
570
571func GrootHttpLoginNamespace(endpoint string, namespace uint64) *HttpToken {
572 token, err := HttpLogin(&LoginParams{
573 Endpoint: endpoint,
574 UserID: x.GrootId,
575 Passwd: "password",
576 Namespace: namespace,
577 })
578 x.Check(err)
579 return token
580}
581
582// CurlFailureConfig stores information about the expected failure of a curl test.
583type CurlFailureConfig struct {

Callers 8

GetJwtTokenAndHeaderFunction · 0.92
TestSchemaSubscribeFunction · 0.92
TestGraphQLResponseFunction · 0.92
TestAuthFunction · 0.92
TestCORSFunction · 0.92
testCORSFunction · 0.92
TestNamespacesQueryFieldFunction · 0.92
GrootHttpLoginFunction · 0.85

Calls 2

CheckFunction · 0.92
HttpLoginFunction · 0.85

Tested by 6

TestSchemaSubscribeFunction · 0.74
TestGraphQLResponseFunction · 0.74
TestAuthFunction · 0.74
TestCORSFunction · 0.74
testCORSFunction · 0.74
TestNamespacesQueryFieldFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…