(t *testing.T)
| 107 | } |
| 108 | |
| 109 | func TestCertificateFingerprintCommand(t *testing.T) { |
| 110 | b, err := os.ReadFile("./testdata/intermediate_ca.crt") |
| 111 | require.NoError(t, err) |
| 112 | |
| 113 | testscript.Run(t, testscript.Params{ |
| 114 | Files: []string{"testdata/certificate/fingerprint.txtar"}, |
| 115 | Setup: func(e *testscript.Env) error { |
| 116 | err := os.WriteFile(filepath.Join(e.Cd, "intermediate_ca.crt"), b, 0600) |
| 117 | require.NoError(t, err) |
| 118 | |
| 119 | return nil |
| 120 | }, |
| 121 | }) |
| 122 | } |
| 123 | |
| 124 | func checkCertificate(ts *testscript.TestScript, neg bool, args []string) { |
| 125 | contents := ts.ReadFile("stdout") // directly reads from stdout of the previously executed command |
nothing calls this directly
no test coverage detected
searching dependent graphs…