TestCleanupSSHConfigNonExistentFile verifies that cleanupSSHConfig handles non-existent SSH config files gracefully without errors.
(t *testing.T)
| 38 | // TestCleanupSSHConfigNonExistentFile verifies that cleanupSSHConfig handles |
| 39 | // non-existent SSH config files gracefully without errors. |
| 40 | func TestCleanupSSHConfigNonExistentFile(t *testing.T) { |
| 41 | env := testutils.SetupTestEnvironment(t) |
| 42 | defer env.Cleanup() |
| 43 | |
| 44 | instanceID := "nonexistent-instance" |
| 45 | err := cleanupSSHConfig(instanceID, "192.168.1.100") |
| 46 | require.NoError(t, err) |
| 47 | } |
| 48 | |
| 49 | // TestRemoveSSHHostEntry verifies that the removeSSHHostEntry function correctly |
| 50 | // removes specific SSH host entries from the config file while preserving others. |
nothing calls this directly
no test coverage detected