Open tokers opened 3 years ago
Great Job ~
Great Job ~
I'd like to write e2e test cases for plugin "key-auth".
I'd like to write e2e test cases for plugin "key-auth".
any update?
I'd like to write e2e test cases for plugin "key-auth".
any update?
Currently, there is no configuration that supports the consumer object. I need to wait for the consumer configuration to be supported before submitting this test.
I'd like to write e2e test cases for plugin "referer-restriction".
I'd like to write e2e test cases for plugin "server-info".
Help needed: is there any way to run test cases for just one plugin? I want to run test cases I wrote for plugin "server-info". Modifying ginkgo command under PHONY e2e-test
in Makefile
seems to have no effect, ginkgo still runs all test cases.
Help needed: is there any way to run test cases for just one plugin? I want to run test cases I wrote for plugin "server-info". Modifying ginkgo command under PHONY
e2e-test
inMakefile
seems to have no effect, ginkgo still runs all test cases.
Yep, please read the issue description.
Thanks for your reply!
Help needed: is there any way to run test cases for just one plugin? I want to run test cases I wrote for plugin "server-info". Modifying ginkgo command under PHONY
e2e-test
inMakefile
seems to have no effect, ginkgo still runs all test cases.Yep, please read the issue description.
Thanks! It's done by changing Describe
to FDescribe
. Sorry for not examining the issue description carefully. Just went through a hard time configuring the environment.
Thanks for your reply!
Help needed: is there any way to run test cases for just one plugin? I want to run test cases I wrote for plugin "server-info". Modifying ginkgo command under PHONY
e2e-test
inMakefile
seems to have no effect, ginkgo still runs all test cases.Yep, please read the issue description.
Thanks! It's done by changing
Describe
toFDescribe
. Sorry for not examining the issue description carefully. Just went through a hard time configuring the environment.
Feel free to ask any questions here.
Now I have a workable version for "server-info" test cases. But as for implementation details and how the test is done I would like to raise some questions for discussion. Shall we create a dedicated issue for "server-info" plugin test cases or I just start a PR so we can discuss in that PR?
Now I have a workable version for "server-info" test cases. But as for implementation details and how the test is done I would like to
raise some questions for discussion. Shall we create a dedicated issue for "server-info" plugin test cases or I just start a PR so we can discuss in that PR?
I think so, you can go ahead and create it.
Now I have a workable version for "server-info" test cases. But as for implementation details and how the test is done I would like to raise some questions for discussion. Shall we create a dedicated issue for "server-info" plugin test cases or I just start a PR so we can discuss in that PR?
Merged #406 , thanks!
I'd like to write e2e test cases for plugin "prometheus"
@Belyenochi Thanks! We currently have it covered. But in the latest APISIX the Prometheus plugin needs to be exposed using the public-api plugin, it would be great if you could modify this part.
@Belyenochi Thanks! We currently have it covered. But in the latest APISIX the Prometheus plugin needs to be exposed using the public-api plugin, it would be great if you could modify this part.
OK, I'm willing to help and I'll check the documentation of the public-api plugin.
@Belyenochi Thanks! We currently have it covered. But in the latest APISIX the Prometheus plugin needs to be exposed using the public-api plugin, it would be great if you could modify this part.
OK, I'm willing to help and I'll check the documentation of the public-api plugin.
FYI https://github.com/apache/apisix/issues/6276#issuecomment-1034431045
@Belyenochi Thanks! We currently have it covered. But in the latest APISIX the Prometheus plugin needs to be exposed using the public-api plugin, it would be great if you could modify this part.
OK, I'm willing to help and I'll check the documentation of the public-api plugin.
hi @tao12345666333, on which branch should I find the currently code for prometheus e2e tests?
@Belyenochi you can just use master branch
Kind reminder, is there anything I can help you @Belyenochi
Hi, I want to continue this issues about adding test cases for prometheus plug-in. If you(@Belyenochi ) are still in this issues or finish it a while, please tell me in time. I plan to finish it next week. @tao12345666333
Hi, I want to continue this issues about adding test cases for prometheus plug-in.
If you(@Belyenochi ) are still in this issues or finish it a while, please tell me in time.
I plan to finish this next week. @tao12345666333
👌 thanks
Hi, I want to continue this issues about adding test cases for prometheus plug-in. If you(@Belyenochi ) are still in this issues or finish it a while, please tell me in time. I plan to finish it next week. @tao12345666333
Thanks, please continue, sorry for not updating the status in time.
@Belyenochi Don't worry, thanks for your continued contributions
This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
Issue description
We don't cover plugins in e2e test suites, although we support them already. Here I want to initiate a plan to add test cases for most of all plugins in Apache APISIX.
If you're interested in writing some test cases for several plugins, please writing comments like:
Then, I'll create a dedicated issue and assign it to you. After the PR is merged, the checkbox in this description will be clicked.
Test case samples are here:
You may have to learn some usages about ginkgo.
A test case should be a complete e2e case, it contains the configuration create/update/delete on "control plane" (in our case is applying k8s resources like ApisixRoute, ApisixUpstream to Kubernetes), then waiting for it to be effective, and sending requests to "data plane" (APISIX), asserting the response is valid.
When you want to run these cases on your local environment, be sure a Kubernetes cluster is installed, you can create a kubernetes cluster with minikube or kind.
You may try to push images in advance or your cases might be timed out when first run. Related images are:
You can change the
Describe
orIt
block in your case toFDescribe
orFIt
so only these cases will be run when you executingmake e2e-test
directive. By defaultmake e2e-test
will build apisix-ingress-controller from scratch, you can addE2E_SKIP_BUILD=1
to skip this step, and usingE2E_CONCURRENCY
to control the concurrency of cases.