MCPcopy
hub / github.com/dgraph-io/dgraph / TestLiveLoadJSONFile

Function TestLiveLoadJSONFile

dgraph/cmd/live/load-json/load_test.go:99–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

97}
98
99func TestLiveLoadJSONFile(t *testing.T) {
100 testutil.DropAll(t, dg)
101
102 pipeline := [][]string{
103 {testutil.DgraphBinaryPath(), "live",
104 "--schema", testDataDir + "/family.schema", "--files", testDataDir + "/family.json",
105 "--alpha", alphaService, "--creds", "user=groot;password=password;"},
106 }
107 _, err := testutil.Pipeline(pipeline)
108 require.NoError(t, err, "live loading JSON file exited with error")
109
110 checkLoadedData(t)
111}
112
113func TestLiveLoadCanUseAlphaForAssigningUids(t *testing.T) {
114 testutil.DropAll(t, dg)

Callers

nothing calls this directly

Calls 4

DropAllFunction · 0.92
DgraphBinaryPathFunction · 0.92
PipelineFunction · 0.92
checkLoadedDataFunction · 0.70

Tested by

no test coverage detected