(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func Test_SSHExecutor(t *testing.T) { |
| 37 | if !isSSHTestsEnabled() { |
| 38 | return |
| 39 | } |
| 40 | |
| 41 | s := createExecutor() |
| 42 | |
| 43 | test := TestCase{ |
| 44 | Command: CommandUnderTest{ |
| 45 | Cmd: "echo test", |
| 46 | }, |
| 47 | Expected: Expected{ |
| 48 | ExitCode: 0, |
| 49 | Stdout: ExpectedOut{Exactly: "test"}, |
| 50 | }, |
| 51 | } |
| 52 | got := s.Execute(test) |
| 53 | |
| 54 | assert.True(t, got.ValidationResult.Success) |
| 55 | assert.Equal(t, "test", got.TestCase.Result.Stdout) |
| 56 | } |
| 57 | |
| 58 | func Test_SSHExecutor_WithDir(t *testing.T) { |
| 59 | if !isSSHTestsEnabled() { |
nothing calls this directly
no test coverage detected