(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestCryptoJWKCreateOctCommand(t *testing.T) { |
| 82 | testscript.Run(t, testscript.Params{ |
| 83 | Files: []string{"testdata/crypto/jwk-create-oct.txtar"}, // oct generation |
| 84 | Setup: func(e *testscript.Env) error { |
| 85 | return os.WriteFile(filepath.Join(e.Cd, "password.txt"), []byte("password"), 0600) |
| 86 | }, |
| 87 | Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){ |
| 88 | "check_jwk": checkKeyPair, |
| 89 | "check_jwk_without_password": checkKeyPairWithoutPassword, |
| 90 | }, |
| 91 | }) |
| 92 | } |
| 93 | |
| 94 | func TestCryptoJWTCommand(t *testing.T) { |
| 95 | p256JWK, p256Bytes := readKey(t, "./testdata/p256.pem") // TODO(hs): can/must we get rid of these, and generate them on start of test? |
nothing calls this directly
no test coverage detected
searching dependent graphs…