From 16f017dfedebf8bf85ff8be9d48c05d088d21d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Wed, 24 Feb 2021 16:09:25 +0800 Subject: [PATCH] ci: avoid requesting IPv6 address as GitHub Action doesn't support it (#3656) --- t/node/route-domain-with-local-dns.t | 4 ++-- t/node/route-domain.t | 4 ++-- t/plugin/key-auth-upstream-domain-node.t | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/t/node/route-domain-with-local-dns.t b/t/node/route-domain-with-local-dns.t index ecc8c3a127fb..d79dc2e0e28e 100644 --- a/t/node/route-domain-with-local-dns.t +++ b/t/node/route-domain-with-local-dns.t @@ -43,7 +43,7 @@ __DATA__ "upstream": { "nodes": { "127.0.0.1:1980": 1, - "github.com:80": 0 + "www.apiseven.com:80": 0 }, "type": "roundrobin" }, @@ -89,4 +89,4 @@ hello world --- no_error_log [error] --- error_log eval -qr/dns resolver domain: github.com to \d+.\d+.\d+.\d+/ +qr/dns resolver domain: www.apiseven.com to \d+.\d+.\d+.\d+/ diff --git a/t/node/route-domain.t b/t/node/route-domain.t index 180402704b6e..266a692957bc 100644 --- a/t/node/route-domain.t +++ b/t/node/route-domain.t @@ -37,7 +37,7 @@ __DATA__ "upstream": { "nodes": { "127.0.0.1:1980": 1, - "github.com:80": 0 + "www.apiseven.com:80": 0 }, "type": "roundrobin" }, @@ -79,7 +79,7 @@ hello world --- no_error_log [error] --- error_log eval -qr/dns resolver domain: github.com to \d+.\d+.\d+.\d+/ +qr/dns resolver domain: www.apiseven.com to \d+.\d+.\d+.\d+/ diff --git a/t/plugin/key-auth-upstream-domain-node.t b/t/plugin/key-auth-upstream-domain-node.t index f2f15897c821..2cc50da360c4 100644 --- a/t/plugin/key-auth-upstream-domain-node.t +++ b/t/plugin/key-auth-upstream-domain-node.t @@ -98,7 +98,7 @@ passed }, "upstream": { "nodes": { - "www.apple.com:80": 1 + "www.apiseven.com:80": 1 }, "pass_host": "node", "type": "roundrobin" @@ -148,7 +148,7 @@ location /t { --- request GET /t --- response_body -return: 301 +return: 302 return: 503 return: 503 --- no_error_log @@ -166,7 +166,7 @@ return: 503 ngx.HTTP_PUT, [[{ "nodes": { - "www.apple.com:80": 1 + "www.apiseven.com:80": 1 }, "pass_host": "node", "type": "roundrobin" @@ -250,7 +250,7 @@ location /t { --- request GET /t --- response_body -return: 301 +return: 302 return: 503 return: 503 --- no_error_log