Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bugfix: key-auth plugin cannot run accurately in the case of multiple consumers(branch: master) #826

Merged
merged 2 commits into from
Nov 10, 2019

Conversation

Beckjiang
Copy link
Contributor

Summary

fix the logical error in apisix/consumer.lua and improve the test case.

Full changelog

  • updated apisix/consumer.lua:40-46
  • updated the test case [TEST 7: valid consumer] - t/plugin/key-auth.t

Issues resolved

The improved test case run in branch master.
image

Run in this branch.
image

GET /hello
GET /add_more_consumer
--- pipelined_requests eval
["GET /add_more_consumer", "GET /hello"]
--- more_headers
apikey: auth-one
Copy link
Member

Choose a reason for hiding this comment

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

apikey: auth-one -> apikey: auth-13, test the new code logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

YES,UPDATED

@membphis
Copy link
Member

@membphis membphis merged commit 7d33fb6 into apache:master Nov 10, 2019
@membphis
Copy link
Member

@Beckjiang Merged, many thanks.

moonming pushed a commit to moonming/apisix that referenced this pull request Nov 10, 2019
moonming pushed a commit that referenced this pull request Nov 10, 2019
@Beckjiang Beckjiang deleted the fix-consumer branch December 11, 2019 07:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants