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

Function TestCryptoJWKCommand

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

Source from the content-addressed store, hash-verified

28)
29
30func TestCryptoJWKCommand(t *testing.T) {
31 testscript.Run(t, testscript.Params{
32 Files: []string{"testdata/crypto/jwk-create.txtar"}, // defaults and generic failures
33 Setup: func(e *testscript.Env) error {
34 return os.WriteFile(filepath.Join(e.Cd, "password.txt"), []byte("password"), 0600)
35 },
36 Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){
37 "check_jwk": checkKeyPair,
38 },
39 })
40}
41
42func TestCryptoJWKCreateRSACommand(t *testing.T) {
43 testscript.Run(t, testscript.Params{

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…