-
Notifications
You must be signed in to change notification settings - Fork 534
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
test: e2e test chash upstream with key (remote_addr) #897
Conversation
Codecov Report
@@ Coverage Diff @@
## master #897 +/- ##
==========================================
- Coverage 43.10% 43.02% -0.08%
==========================================
Files 18 18
Lines 1290 1290
==========================================
- Hits 556 555 -1
- Misses 642 643 +1
Partials 92 92
Continue to review full report at Codecov.
|
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.
more test cases:
route contains upstream
service bind upstream object
service contains upstream
api/test/e2e/upstream_test.go
Outdated
} | ||
resp.Body.Close() | ||
} | ||
assert.Equal(t, 18, res["1980"]+res["1981"]+res["1982"]) |
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 way is meanless.
I think we can write more comments here or we change to a different way.
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.
fixed.
@nic-chen @moonming @gxthrj @ShiningRush please review this PR if you have time |
LGTM Except for some code format issues. |
Please answer these questions before submitting a pull request
Why submit this pull request?
E2E test
New feature provided
Improve performance
Related issues
related issue: enhance e2e test for upstream #908