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

Function TestCryptoJWKCreateRSACommand

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

Source from the content-addressed store, hash-verified

40}
41
42func TestCryptoJWKCreateRSACommand(t *testing.T) {
43 testscript.Run(t, testscript.Params{
44 Files: []string{"testdata/crypto/jwk-create-rsa.txtar"}, // RSA generation
45 Setup: func(e *testscript.Env) error {
46 return os.WriteFile(filepath.Join(e.Cd, "password.txt"), []byte("password"), 0600)
47 },
48 Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){
49 "check_jwk": checkKeyPair,
50 "check_jwk_without_password": checkKeyPairWithoutPassword,
51 },
52 })
53}
54
55func TestCryptoJWKCreateECCommand(t *testing.T) {
56 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…