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

Function TestGenerateAuditForTestDecrypt

testutil/testaudit/audit.go:76–94  ·  view source on GitHub ↗

run manually to generate the encrypted audit log used in TestDecrypt

(t *testing.T)

Source from the content-addressed store, hash-verified

74
75// run manually to generate the encrypted audit log used in TestDecrypt
76func TestGenerateAuditForTestDecrypt(t *testing.T) {
77 // to generate audit logs, uncomment and run ./t --test=TestGenerateAuditForTestDecrypt
78 t.Skip()
79 zeroCmd := map[string][]string{
80 "/removeNode": {`--location`, "--request", "GET", "--ipv4",
81 fmt.Sprintf("%s/removeNode?id=3&group=1", testutil.GetSockAddrZeroHttp())},
82 "/assign": {"--location", "--request", "GET", "--ipv4",
83 fmt.Sprintf("%s/assign?what=uids&num=100", testutil.GetSockAddrZeroHttp())},
84 "/moveTablet": {"--location", "--request", "GET", "--ipv4",
85 fmt.Sprintf("%s/moveTablet?tablet=name&group=2", testutil.GetSockAddrZeroHttp())}}
86
87 for _, c := range zeroCmd {
88 cmd := exec.Command("curl", c...)
89 if out, err := cmd.CombinedOutput(); err != nil {
90 fmt.Println(string(out))
91 t.Fatal(err)
92 }
93 }
94}

Callers

nothing calls this directly

Calls 3

GetSockAddrZeroHttpFunction · 0.92
FatalMethod · 0.80
SkipMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…