MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / TestCleanupSSHConfigNonExistentFile

Function TestCleanupSSHConfigNonExistentFile

cmd/delete_test.go:40–47  ·  view source on GitHub ↗

TestCleanupSSHConfigNonExistentFile verifies that cleanupSSHConfig handles non-existent SSH config files gracefully without errors.

(t *testing.T)

Source from the content-addressed store, hash-verified

38// TestCleanupSSHConfigNonExistentFile verifies that cleanupSSHConfig handles
39// non-existent SSH config files gracefully without errors.
40func 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.

Callers

nothing calls this directly

Calls 2

SetupTestEnvironmentFunction · 0.92
cleanupSSHConfigFunction · 0.85

Tested by

no test coverage detected