You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/22 01:48:50 UTC
[GitHub] [apisix] liangliang4ward opened a new issue #6408: request help: how to run test case at my machine
liangliang4ward opened a new issue #6408:
URL: https://github.com/apache/apisix/issues/6408
### Issue description
I execut cmd like this:
```shell
prove -I. -I../test-nginx/inc -I../test-nginx/lib -r t/node/upstream-status-all.t
```
error log like this:
```shell
# Failed test 'TEST 1: set route(id: 1) and available upstream and enable_all_upstream_status: true - status code ok'
# at /usr/local/share/perl5/Test/Nginx/Socket.pm line 948.
# got: '500'
# expected: '200'
```
how to run apisix instance at test and url like /hello
### Environment
- apisix version (cmd: `apisix version`): 2.12.1
- OS (cmd: `uname -a`): linux
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `luarocks --version`):
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Chever-John commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1048353485
> need to do this. https://github.com/api7/test-toolkit
Morning!
It's nice to see that you can work things out on your own.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] shenzhuangzhi1 commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
shenzhuangzhi1 commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047383024
Maybe a dosc is needed about how to run test. 👍
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047397627
You can refer to https://github.com/apache/apisix/blob/master/docs/en/latest/internal/testing-framework.md
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047363931
> Can you provide more info?
>
> > run apisix instance at test
> > What this means is, are you having problems running APISIX test cases?
>
> And executing `uname -a` will not return `linux`.
I use windows os and wsl run Centos7
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1062684829
> > when log "nginx: [emerg] unknown directive "lua_package_path" in /opt/workspace/apisix/t/servroot/conf/nginx.conf:30"
> > ref: #1232
>
> It seems you are not using OpenResty.
>
> BTW, Please open a new issue to track it.
I just record it.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Chever-John commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047366651
Can you provide more information so that we can reproduce the problem?
For example, you can provide your test files and the procedures for executing commands
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047735750
need to do this.
https://github.com/api7/test-toolkit
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Chever-John commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047358193
Can you provide us with more info?
And executing `uname -a` will not return `linux`.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047466015
> You can refer to https://github.com/apache/apisix/blob/master/docs/en/latest/internal/testing-framework.md
I know that..
but when test case like `add route` occur error; I don't know how to do ..
```shell
# Failed test 'TEST 1: set route(id: 1) and available upstream and show_upstream_status_in_response_header: true - status code ok'
# at /usr/local/share/perl5/Test/Nginx/Socket.pm line 948.
# got: '500'
# expected: '200'
# Failed test 'TEST 1: set route(id: 1) and available upstream and show_upstream_status_in_response_header: true - response_body - response is expected (repeated req 0, req 0)'
# at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.
# got: '<!DOCTYPE html>
# <html>
# <head>
# <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
# <meta content="utf-8" http-equiv="encoding">
# <title>500 Internal Server Error</title>
# <style>
# body {
# width: 35em;
# margin: 0 auto;
# font-family: Tahoma, Verdana, Arial, sans-serif;
# }
# </style>
# </head>
# <body>
# <h1>An error occurred.</h1>
# <p>You can report issue to <a href="https://github.com/apache/apisix/issues">APISIX</a></p>
# <p><em>Faithfully yours, <a href="https://apisix.apache.org/">APISIX</a>.</em></p>
# </body>
# </html>
# '
# expected: 'passed
# '
```
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Chever-John edited a comment on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
Chever-John edited a comment on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047358193
Can you provide more info?
> run apisix instance at test
What this means is, are you having problems running APISIX test cases?
And executing `uname -a` will not return `linux`.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047370638
test case :
https://github.com/liangliang4ward/apisix/blob/feature/resp-all-upstream-status/t/node/upstream-status-all.t
exe cmd :
```shell
prove -I. -I../test-nginx/inc -I../test-nginx/lib -r t/node/upstream-status-all.t
```
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward closed issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward closed issue #6408:
URL: https://github.com/apache/apisix/issues/6408
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Chever-John edited a comment on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
Chever-John edited a comment on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1048353485
> need to do this. https://github.com/api7/test-toolkit
Morning!
It's nice to see that you can work things out on your own.
And I've learned a few things from it. Thanks :)
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] leslie-tsang commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
leslie-tsang commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1062678293
> when log "nginx: [emerg] unknown directive "lua_package_path" in /opt/workspace/apisix/t/servroot/conf/nginx.conf:30"
>
> ref: #1232
It seems you are not using OpenResty.
BTW, Please open a new issue to track it.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6408: request help: how to run test case at my machine
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1062636000
when log "nginx: [emerg] unknown directive "lua_package_path" in /opt/workspace/apisix/t/servroot/conf/nginx.conf:30"
ref: https://github.com/apache/apisix/issues/1232
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org