-
Notifications
You must be signed in to change notification settings - Fork 528
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
change: remove ID of consumer #1745
Conversation
# Conflicts: # api/test/docker/docker-compose.yaml
Deploy preview for apisix-dashboard ready! Built with commit 15d1ce5 |
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.
It seems we don't modify E2E test.
Do we need?
// sleep for process log | ||
time.Sleep(1500 * time.Millisecond) | ||
logContent := ReadAPISIXErrorLog(t) | ||
fmt.Println("logContent:", logContent) |
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.
This is debugging info?
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.
yes, removed.
api/test/docker/apisix_config.yaml
Outdated
@@ -22,7 +22,7 @@ etcd: | |||
- "http://172.16.238.10:2379" | |||
- "http://172.16.238.11:2379" | |||
- "http://172.16.238.12:2379" | |||
resync_delay: 0.1 # sync data from etcd quickly for e2e test | |||
resync_delay: 1 # sync data from etcd quickly for e2e test |
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.
Do we need to modify this?
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.
sure. APISIX allow only int for this configuration now.
assert.True(t, args.Bool(2)) | ||
}).Return(tc.giveRet, tc.giveErr) | ||
|
||
mStore.On("Get", mock.Anything).Run(func(args mock.Arguments) { | ||
}).Return(nil, nil) |
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.
We should test if the Get returns a consumer.
Codecov Report
@@ Coverage Diff @@
## master #1745 +/- ##
===========================================
- Coverage 72.45% 52.34% -20.11%
===========================================
Files 132 38 -94
Lines 5721 2661 -3060
Branches 649 0 -649
===========================================
- Hits 4145 1393 -2752
+ Misses 1334 1080 -254
+ Partials 242 188 -54
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@juzhiyuan @LiteSun |
This test failed due to |
test-rawDataEditor.spec.js.mp4@nic-chen I see what happened, the test failed due to Network error, does this PR changes some fields or? |
see |
remove ID of consumer. @juzhiyuan |
FE CI still failed, please have a look when you have time. thanks. @LiteSun |
@LiteSun You may need to take some changes with FE & API. |
Codecov Report
@@ Coverage Diff @@
## master #1745 +/- ##
=========================================
Coverage ? 71.69%
=========================================
Files ? 172
Lines ? 6049
Branches ? 699
=========================================
Hits ? 4337
Misses ? 1468
Partials ? 244
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
APISIX has removed the consumer id in version 2.5, see: apache/apisix#3868.
Dashboard also needs to remove the consumer id before it can be used with APISIX 2.5 and above.
What changes will this PR take into?
Related issues
close #1742
Checklist: