()
| 17 | var SSHTestEnv SSHExecutorTestEnv |
| 18 | |
| 19 | func createExecutor() SSHExecutor { |
| 20 | SSHTestEnv = SSHExecutorTestEnv{ |
| 21 | Host: os.Getenv("COMMANDER_TEST_SSH_HOST"), |
| 22 | Pass: os.Getenv("COMMANDER_TEST_SSH_PASS"), |
| 23 | User: os.Getenv("COMMANDER_TEST_SSH_USER"), |
| 24 | IdentityFile: os.Getenv("COMMANDER_TEST_SSH_IDENTITY_FILE"), |
| 25 | } |
| 26 | |
| 27 | s := SSHExecutor{ |
| 28 | Host: SSHTestEnv.Host, |
| 29 | User: SSHTestEnv.User, |
| 30 | Password: SSHTestEnv.Pass, |
| 31 | IdentityFile: SSHTestEnv.IdentityFile, |
| 32 | } |
| 33 | return s |
| 34 | } |
| 35 | |
| 36 | func Test_SSHExecutor(t *testing.T) { |
| 37 | if !isSSHTestsEnabled() { |
no outgoing calls
no test coverage detected