-
Notifications
You must be signed in to change notification settings - Fork 2
Properly handle permissions #31
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
de7489d
add permissions tests (should fail)
BioWilko 1fca027
add definitions json
BioWilko e62decd
use real definitions json
BioWilko 61ac67b
initialise exchange with local admin account
BioWilko cba5b5c
purge queue during setup
BioWilko 460cf8c
handle pre-existing exchanges better
BioWilko b217e0d
re-open channel after 404 on exchange declare
BioWilko 3cfc44e
dump config to file properly
BioWilko c876bc3
fix fake varys config again
BioWilko f112c61
update perms
BioWilko a5bd3f2
fix perms typo in definition
BioWilko bbc7f18
fix missing queue in teardown purge
BioWilko 00e380d
add more tests
BioWilko b723d27
fix logger checks
BioWilko 3f28206
remove exception assertion
BioWilko ff7475e
properly raise exceptions after logging
BioWilko 35afe12
try to raise exception outside of catch
BioWilko 73b501d
specifically test for 403
BioWilko 6b10da6
text for exception presence inside logfile instead
BioWilko 44530e7
use caplog properly
BioWilko b5051df
print caplog text
BioWilko 5ca3ffa
try using unittest logging func instead
BioWilko 0c753bf
read the logfile manually like a caveman
BioWilko 97dc8dc
add egg-info to gitirgnore
BioWilko 6b33301
Bump version tag
BioWilko 446c3be
recommended changes
BioWilko 72d9d96
update package description
BioWilko 03b6c8f
update logger closed check
BioWilko 4298ef3
Add catch for stopped connection in producer
BioWilko 766377b
no need to re-declare exchanges which should always exist at this point
BioWilko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,5 @@ varys/__pycache__* | |
| tests/__pycache__* | ||
| tests/test.log | ||
| varys.egg-info/* | ||
| varys_client.egg-info/* | ||
| .pytest_cache* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| { | ||
| "permissions": [ | ||
| { | ||
| "configure": ".*", | ||
| "read": ".*", | ||
| "user": "guest", | ||
| "vhost": "/", | ||
| "write": ".*" | ||
| }, | ||
| { | ||
| "configure": "test-exchange\\.\\w*|test-exchange-3\\.\\w*|test-exchange-3", | ||
| "read": "test-exchange|test-exchange\\.\\w.*|test-exchange-3|test-exchange-3\\.\\w.*", | ||
| "user": "guest2", | ||
| "vhost": "/", | ||
| "write": "test-exchange|test-exchange\\.\\w.*|test-exchange-3|test-exchange-3\\.\\w.*" | ||
|
BioWilko marked this conversation as resolved.
|
||
| } | ||
| ], | ||
| "bindings": [], | ||
| "queues": [], | ||
| "parameters": [], | ||
| "policies": [], | ||
| "rabbitmq_version": "4.2.1", | ||
| "rabbit_version": "4.2.1", | ||
| "exchanges": [], | ||
| "vhosts": [ | ||
| { | ||
| "limits": [], | ||
| "metadata": { | ||
| "description": "Default virtual host", | ||
| "tags": [], | ||
| "default_queue_type": "classic" | ||
| }, | ||
| "name": "/" | ||
| } | ||
| ], | ||
| "users": [ | ||
| { | ||
| "hashing_algorithm": "rabbit_password_hashing_sha256", | ||
| "limits": {}, | ||
| "name": "guest", | ||
| "password_hash": "LzA8uEF2TYeMtmxczECa40VAIOdZmg08i6R+L4XEeg9b62Br", | ||
| "tags": [ | ||
| "administrator" | ||
| ] | ||
| }, | ||
| { | ||
| "hashing_algorithm": "rabbit_password_hashing_sha256", | ||
| "limits": {}, | ||
| "name": "guest2", | ||
| "password_hash": "nV8dlnyFAnteKsCYrrHUPmuNo7rmxLEgOkKXf8WHNW4Nt0GS", | ||
| "tags": [] | ||
| } | ||
| ], | ||
| "global_parameters": [ | ||
| { | ||
| "name": "cluster_tags", | ||
| "value": [] | ||
| } | ||
| ], | ||
| "topic_permissions": [] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.