MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / TestRunCLI_InsecureFingerprintExclusive

Function TestRunCLI_InsecureFingerprintExclusive

internal/nodeenroll/cmd_test.go:68–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestRunCLI_InsecureFingerprintExclusive(t *testing.T) {
69 err := RunCLI([]string{
70 "--server", "https://x",
71 "--node-id", "n",
72 "--token", "t",
73 "--insecure",
74 "--server-fingerprint", "deadbeef",
75 })
76 if err == nil || !strings.Contains(err.Error(), "mutually exclusive") {
77 t.Fatalf("err = %v", err)
78 }
79}
80
81func TestReadToken_FromFile(t *testing.T) {
82 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

RunCLIFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected