-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support etcd prefix as apisix does #1477
Conversation
Hi, I see there have 3 checks failed:
|
Can you write some test cases at "/api/test/shell/cli_test.sh" to test this? |
Hi, please sync your codes with the master branch to fix the CI failure. |
Codecov Report
@@ Coverage Diff @@
## master #1477 +/- ##
===========================================
- Coverage 68.95% 51.63% -17.33%
===========================================
Files 48 39 -9
Lines 3038 2597 -441
===========================================
- Hits 2095 1341 -754
- Misses 705 1082 +377
+ Partials 238 174 -64
Continue to review full report at Codecov.
|
@liuyang211 need some test cases. please refer to https://github.com/apache/apisix-dashboard/blob/master/api/test/shell/cli_test.sh#L300-L327 |
api/internal/conf/conf.go
Outdated
@@ -225,10 +226,16 @@ func initEtcdConfig(conf Etcd) { | |||
endpoints = conf.Endpoints | |||
} | |||
|
|||
var prefix = "/apisix" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use short assignment is better:
prefix := "/apisix"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll change it this way.
I run these cmds to test it locally, cd apisix-dashboard/api
./test/shell/cli_test.sh but fail at Do I miss something? BTW
|
@liuyang211 If there is something not good, you could fix it. thanks. |
Hi, the testcase runs OK in my local machine, but fails in the github workflow, could you review my testcase and give some advice? Thanks. |
cc @nic-chen to take a look |
@liuyang211 |
Thanks, the testcase is OK now. |
@liuyang211 |
Thank you for your help! |
@liuyang211 |
Please answer these questions before submitting a pull request
Fixes feat: support etcd prefix as apisix does #1456
New feature or improvement
support etcd prefix as apisix does
Please add the corresponding test cases if necessary.
Backport patches
Why need to backport?
Source branch
Related commits and pull requests
Target branch