|
|
|
@ -51,7 +51,7 @@ func TestNetworkMapConcise(t *testing.T) {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
want: "netmap: self: [AQEBA] auth=machine-unknown []\n [AgICA] D2 : 192.168.0.100:12 192.168.0.100:12354\n [AwMDA] D4 : 10.2.0.100:12 10.1.0.100:12345\n",
|
|
|
|
|
want: "netmap: self: [AQEBA] auth=machine-unknown u=? []\n [AgICA] D2 : 192.168.0.100:12 192.168.0.100:12354\n [AwMDA] D4 : 10.2.0.100:12 10.1.0.100:12345\n",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "debug_non_nil",
|
|
|
|
@ -59,7 +59,7 @@ func TestNetworkMapConcise(t *testing.T) {
|
|
|
|
|
NodeKey: testNodeKey(1),
|
|
|
|
|
Debug: &tailcfg.Debug{},
|
|
|
|
|
},
|
|
|
|
|
want: "netmap: self: [AQEBA] auth=machine-unknown debug={} []\n",
|
|
|
|
|
want: "netmap: self: [AQEBA] auth=machine-unknown u=? debug={} []\n",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "debug_values",
|
|
|
|
@ -67,7 +67,7 @@ func TestNetworkMapConcise(t *testing.T) {
|
|
|
|
|
NodeKey: testNodeKey(1),
|
|
|
|
|
Debug: &tailcfg.Debug{LogHeapPprof: true},
|
|
|
|
|
},
|
|
|
|
|
want: "netmap: self: [AQEBA] auth=machine-unknown debug={\"LogHeapPprof\":true} []\n",
|
|
|
|
|
want: "netmap: self: [AQEBA] auth=machine-unknown u=? debug={\"LogHeapPprof\":true} []\n",
|
|
|
|
|
},
|
|
|
|
|
} {
|
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|
@ -135,7 +135,7 @@ func TestConciseDiffFrom(t *testing.T) {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
want: "-netmap: self: [AQEBA] auth=machine-unknown []\n+netmap: self: [AgICA] auth=machine-unknown []\n",
|
|
|
|
|
want: "-netmap: self: [AQEBA] auth=machine-unknown u=? []\n+netmap: self: [AgICA] auth=machine-unknown u=? []\n",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "peer_add",
|
|
|
|
|