mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-30 07:43:42 +00:00
WIP: debug DNS test
This commit is contained in:
parent
5c562116fc
commit
5de8f42c9c
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -39,7 +39,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
race-root-integration:
|
race-root-integration:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # don't abort the entire matrix if one element fails
|
fail-fast: false # don't abort the entire matrix if one element fails
|
||||||
matrix:
|
matrix:
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: build test wrapper
|
- name: build test wrapper
|
||||||
run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper
|
run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper
|
||||||
- name: integration tests as root
|
- name: integration tests as root
|
||||||
run: PATH=$PWD/tool:$PATH /tmp/testwrapper -exec "sudo -E" -race ./tstest/integration/
|
run: PATH=$PWD/tool:$PATH /tmp/testwrapper -exec "sudo -E" -race ./tstest/integration/ -verbose-tailscaled -verbose-tailscale
|
||||||
env:
|
env:
|
||||||
TS_TEST_SHARD: ${{ matrix.shard }}
|
TS_TEST_SHARD: ${{ matrix.shard }}
|
||||||
|
|
||||||
|
@ -1153,6 +1153,11 @@ func TestDNSOverTCPIntervalResolver(t *testing.T) {
|
|||||||
t.Fatalf("error converting self dns name to fqdn: %v", err)
|
t.Fatalf("error converting self dns name to fqdn: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out, err := n1.Tailscale("status").Output()
|
||||||
|
t.Logf("XXX: %s\n%s", err, string(out))
|
||||||
|
out, err = n1.Tailscale("dns", "status").Output()
|
||||||
|
t.Logf("XXX: %s\n%s", err, string(out))
|
||||||
|
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
network string
|
network string
|
||||||
serviceAddr netip.Addr
|
serviceAddr netip.Addr
|
||||||
@ -1170,6 +1175,7 @@ func TestDNSOverTCPIntervalResolver(t *testing.T) {
|
|||||||
err = tstest.WaitFor(time.Second*5, func() error {
|
err = tstest.WaitFor(time.Second*5, func() error {
|
||||||
m := new(dns.Msg)
|
m := new(dns.Msg)
|
||||||
m.SetQuestion(selfDNSName.WithTrailingDot(), dns.TypeA)
|
m.SetQuestion(selfDNSName.WithTrailingDot(), dns.TypeA)
|
||||||
|
t.Logf("XXX: dig %s @%s", selfDNSName.WithTrailingDot(), c.serviceAddr.String())
|
||||||
conn, err := net.DialTimeout(c.network, net.JoinHostPort(c.serviceAddr.String(), "53"), time.Second*1)
|
conn, err := net.DialTimeout(c.network, net.JoinHostPort(c.serviceAddr.String(), "53"), time.Second*1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user