mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Enable SSH for tests
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
							parent
							
								
									5038761eca
								
							
						
					
					
						commit
						1297616a65
					
				| @ -78,6 +78,9 @@ func TestSSHOneNamespaceAllToAll(t *testing.T) { | ||||
| 				}, | ||||
| 			}, | ||||
| 		), | ||||
| 		hsic.WithConfigEnv(map[string]string{ | ||||
| 			"HEADSCALE_FEATURE_SSH": "1", | ||||
| 		}), | ||||
| 	) | ||||
| 	if err != nil { | ||||
| 		t.Errorf("failed to create headscale environment: %s", err) | ||||
| @ -152,6 +155,9 @@ func TestSSHMultipleNamespacesAllToAll(t *testing.T) { | ||||
| 				}, | ||||
| 			}, | ||||
| 		), | ||||
| 		hsic.WithConfigEnv(map[string]string{ | ||||
| 			"HEADSCALE_FEATURE_SSH": "1", | ||||
| 		}), | ||||
| 	) | ||||
| 	if err != nil { | ||||
| 		t.Errorf("failed to create headscale environment: %s", err) | ||||
| @ -225,6 +231,9 @@ func TestSSHNoSSHConfigured(t *testing.T) { | ||||
| 			}, | ||||
| 		), | ||||
| 		hsic.WithTestName("sshnoneconfigured"), | ||||
| 		hsic.WithConfigEnv(map[string]string{ | ||||
| 			"HEADSCALE_FEATURE_SSH": "1", | ||||
| 		}), | ||||
| 	) | ||||
| 	if err != nil { | ||||
| 		t.Errorf("failed to create headscale environment: %s", err) | ||||
| @ -299,6 +308,9 @@ func TestSSHIsBlockedInACL(t *testing.T) { | ||||
| 			}, | ||||
| 		), | ||||
| 		hsic.WithTestName("sshisblockedinacl"), | ||||
| 		hsic.WithConfigEnv(map[string]string{ | ||||
| 			"HEADSCALE_FEATURE_SSH": "1", | ||||
| 		}), | ||||
| 	) | ||||
| 	if err != nil { | ||||
| 		t.Errorf("failed to create headscale environment: %s", err) | ||||
| @ -381,6 +393,9 @@ func TestSSNamespaceOnlyIsolation(t *testing.T) { | ||||
| 			}, | ||||
| 		), | ||||
| 		hsic.WithTestName("sshtwonamespaceaclblock"), | ||||
| 		hsic.WithConfigEnv(map[string]string{ | ||||
| 			"HEADSCALE_FEATURE_SSH": "1", | ||||
| 		}), | ||||
| 	) | ||||
| 	if err != nil { | ||||
| 		t.Errorf("failed to create headscale environment: %s", err) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user