This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 6451dd6e9 test(openwhisk): ensure the request sent to a wrong host
(#7507)
6451dd6e9 is described below
commit 6451dd6e9fc2e5161bd8d701cfa51016d73ccabe
Author: 罗泽轩 <[email protected]>
AuthorDate: Thu Jul 21 09:00:04 2022 +0800
test(openwhisk): ensure the request sent to a wrong host (#7507)
Avoid test failures:
Failed test 't/plugin/openwhisk.t TEST 12: hit route (with wrong api_host) -
pattern "failed to process openwhisk action, err:" should match a line
in error.log
happened in CentOS 7 test.
Look like 127.0.0.0 is connectable in some environment.
Signed-off-by: spacewander <[email protected]>
---
t/plugin/openwhisk.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/plugin/openwhisk.t b/t/plugin/openwhisk.t
index 4d89bbe57..0d7e73a96 100644
--- a/t/plugin/openwhisk.t
+++ b/t/plugin/openwhisk.t
@@ -244,7 +244,7 @@ qr/"error":"The requested resource does not exist."/
[[{
"plugins": {
"openwhisk": {
- "api_host": "http://127.0.0.0:3233",
+ "api_host": "http://127.0.0.1:1979",
"service_token":
"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP",
"namespace": "guest",
"action": "non-existent"