Skip to content
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

Merged
merged 11 commits into from
Dec 2, 2020

Conversation

idbeta
Copy link
Contributor

@idbeta idbeta commented Nov 27, 2020

Please answer these questions before submitting a pull request

@codecov-io
Copy link

codecov-io commented Nov 27, 2020

Codecov Report

Merging #897 (644bb3b) into master (95f2612) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
api/internal/core/store/store.go 78.57% <0.00%> (-0.65%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95f2612...644bb3b. Read the comment docs.

Copy link
Member

@membphis membphis left a 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 Show resolved Hide resolved
@idbeta idbeta changed the title test: add cHash upstream (E2E) test: e2e test cHash upstream with key (remote_addr) Dec 1, 2020
@idbeta idbeta mentioned this pull request Dec 1, 2020
2 tasks
@membphis membphis changed the title test: e2e test cHash upstream with key (remote_addr) test: e2e test chash upstream with key (remote_addr) Dec 1, 2020
}
resp.Body.Close()
}
assert.Equal(t, 18, res["1980"]+res["1981"]+res["1982"])
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@membphis
Copy link
Member

membphis commented Dec 2, 2020

@nic-chen @moonming @gxthrj @ShiningRush please review this PR if you have time

@nic-chen
Copy link
Member

nic-chen commented Dec 2, 2020

LGTM Except for some code format issues.

@membphis membphis merged commit 3739e27 into apache:master Dec 2, 2020
@idbeta idbeta deleted the e2e-test-upstream branch December 9, 2020 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants