MCPcopy
hub / github.com/smallstep/cli / TestCryptoJWKCreateOctCommand

Function TestCryptoJWKCreateOctCommand

integration/crypto_test.go:81–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func 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
94func 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?

Callers

nothing calls this directly

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…