(t *testing.T)
| 47 | const configWithPasswordsYAML = "main:\n ports: [\"22\"]\n users: [\"root\"]\n passwords: [\"secret1\", \"secret2\"]\n keys: []\nserverList:\n - ip: \"10.0.0.1\"\n port: \"22\"\n user: \"root\"\n password: \"secret3\"\n alias: \"\"\n" |
| 48 | |
| 49 | func TestNewEncryptCommand_Structure(t *testing.T) { |
| 50 | cmd := NewEncryptCommand() |
| 51 | assert.Equal(t, "encrypt", cmd.Use) |
| 52 | assert.Equal(t, "Encrypt passwords in the configuration file", cmd.Short) |
| 53 | assert.NotEmpty(t, cmd.Long) |
| 54 | } |
| 55 | |
| 56 | func TestNewEncryptCommand_Run(t *testing.T) { |
| 57 | defer resetMocks() |
nothing calls this directly
no test coverage detected