Test magic dns with the correct urls
This commit is contained in:
parent
4a9d3bedf9
commit
77ceeaf5fd
2 changed files with 42 additions and 6 deletions
|
@ -636,11 +636,13 @@ func (s *IntegrationTestSuite) TestPingAllPeersByHostname() {
|
|||
}
|
||||
|
||||
func (s *IntegrationTestSuite) TestMagicDNS() {
|
||||
for namespace, scales := range s.namespaces {
|
||||
ips, err := getIPs(scales.tailscales)
|
||||
assert.Nil(s.T(), err)
|
||||
hostnames, err := getMagicFQDN(&s.headscale)
|
||||
assert.Nil(s.T(), err)
|
||||
|
||||
hostnames, err := getDNSNames(&s.headscale)
|
||||
log.Printf("Resolved hostnames: %#v", hostnames)
|
||||
|
||||
for _, scales := range s.namespaces {
|
||||
ips, err := getIPs(scales.tailscales)
|
||||
assert.Nil(s.T(), err)
|
||||
|
||||
for hostname, tailscale := range scales.tailscales {
|
||||
|
@ -648,10 +650,10 @@ func (s *IntegrationTestSuite) TestMagicDNS() {
|
|||
if strings.Contains(peername, hostname) {
|
||||
continue
|
||||
}
|
||||
|
||||
s.T().Run(fmt.Sprintf("%s-%s", hostname, peername), func(t *testing.T) {
|
||||
command := []string{
|
||||
"tailscale", "ip",
|
||||
fmt.Sprintf("%s.%s.headscale.net", peername, namespace),
|
||||
"tailscale", "ip", peername,
|
||||
}
|
||||
|
||||
log.Printf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue