mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +00:00
tailcfg,ipn/ipnlocal: add hostinfo field to replace service entry
Updates tailscale/corp#15437 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:

committed by
James Tucker

parent
1f4a38ed49
commit
0b6636295e
@@ -1263,6 +1263,9 @@ func TestReconfigureAppConnector(t *testing.T) {
|
||||
if !foundAppConnectorService {
|
||||
t.Fatalf("expected app connector service")
|
||||
}
|
||||
if v, _ := b.hostinfo.AppConnector.Get(); !v {
|
||||
t.Fatalf("expected app connector service")
|
||||
}
|
||||
|
||||
// disable the connector in order to assert that the service is removed
|
||||
b.EditPrefs(&ipn.MaskedPrefs{
|
||||
@@ -1288,6 +1291,9 @@ func TestReconfigureAppConnector(t *testing.T) {
|
||||
if foundAppConnectorService {
|
||||
t.Fatalf("expected no app connector service")
|
||||
}
|
||||
if v, _ := b.hostinfo.AppConnector.Get(); v {
|
||||
t.Fatalf("expected no app connector service")
|
||||
}
|
||||
}
|
||||
|
||||
func hasAppConnectorService(b *LocalBackend) bool {
|
||||
|
Reference in New Issue
Block a user