run manually to generate the encrypted audit log used in TestDecrypt
(t *testing.T)
| 74 | |
| 75 | // run manually to generate the encrypted audit log used in TestDecrypt |
| 76 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…