sevensolutions commented on PR #10278:
URL: https://github.com/apache/apisix/pull/10278#issuecomment-1752050098
> please fix the failing tests
I'am trying but i've no clue yet why they're failing...
What is needed to run `t/control/discovery.t` locally?
I've tried
```
sudo make ci-env-up project_compose_ci=ci/pod/docker-compose.common.yml
sudo make ci-env-up project_compose_ci=ci/pod/docker-compose.first.yml
TEST_NGINX_BINARY=/usr/bin/openresty prove -It/test-nginx/lib -I./ -r
t/control/discovery.t
```
But i always get:
```
# Failed test 't/control/discovery.t TEST 6: dump consul_kv services -
status code ok'
# at /usr/local/share/perl/5.34.0/Test/Nginx/Socket.pm line 936.
# got: '500'
# expected: '200'
# Failed test 't/control/discovery.t TEST 6: dump consul_kv services -
response_body - response is expected (repeated req 0, req 0)'
# at /usr/local/share/perl/5.34.0/Test/Nginx/Socket.pm line 1660.
# got: '<html>
# <head><title>500 Internal Server Error</title></head>
# <body>
# <center><h1>500 Internal Server Error</h1></center>
# <hr><center>openresty/1.21.4.2</center>
# </body>
# </html>
# '
# expected:
'{"http://127.0.0.1:8500/v1/kv/upstreams/webpages/":[{"host":"127.0.0.1","port":30511,"weight":1},{"host":"127.0.0.1","port":30512,"weight":1}],"http://127.0.0.1:8600/v1/kv/upstreams/webpages/":[{"host":"127.0.0.1","port":30513,"weight":1},{"host":"127.0.0.1","port":30514,"weight":1}]}
# '
# Failed test 't/control/discovery.t TEST 6: dump consul_kv services -
pattern "[error]" should not match any line in error.log but matches line
"2023/10/08 15:05:26 [error] 2546684#2546684: *3 lua entry thread aborted:
runtime error: content_by_lua(nginx.conf:184):2: module 'toolkit.json' not
found:" (req 0)
# no field package.preload['toolkit.json']
# no file '/home/daniel/apisix/toolkit/json.lua'
# no file '/home/daniel/apisix/toolkit/json/init.lua'
# no file
'/home/daniel/apisix/deps/share/lua/5.1/toolkit/json/init.lua'
# no file '/home/daniel/apisix/deps/share/lua/5.1/toolkit/json.lua'
# no file '/home/daniel/apisix/apisix/toolkit/json.lua'
# no file '/home/daniel/apisix/t/toolkit/json.lua'
# no file '/home/daniel/apisix/t/xrpc/toolkit/json.lua'
# no file '/home/daniel/apisix/t/xrpc/toolkit/json/init.lua'
# '
# at /usr/local/share/perl/5.34.0/Test/Nginx/Socket.pm line 1351.
t/control/discovery.t .. 37/? # Looks like you failed 7 tests of 37.
t/control/discovery.t .. Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/37 subtests
```
even on the main branch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]