-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add azureblockblob_base_path
config
#6669
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
Conversation
- Allow for a basepath such as 'FolderName/' within the Azure container
Codecov Report
@@ Coverage Diff @@
## master #6669 +/- ##
=======================================
Coverage 70.46% 70.47%
=======================================
Files 138 138
Lines 16495 16494 -1
Branches 2073 2073
=======================================
Hits 11624 11624
+ Misses 4669 4668 -1
Partials 202 202
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -43,6 +43,8 @@ def __init__(self, | |||
container_name or | |||
conf["azureblockblob_container_name"]) | |||
|
|||
self.base_path = conf.get('azureblockblob_base_path', '') |
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.
changes suggested needs unit tests coverage
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.
Added unit tests however I do this by setting .base_path
, not by using conf
. Happy to use the latter but I'd just need to redesign the tests in t/unit/backends/test_azureblockblob.py
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.
I've added more tests to cover using conf
This pull request introduces 1 alert when merging 7655909 into 1ff7059 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 5b6daff into 1ff7059 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging af8d1e6 into 1ff7059 - view on LGTM.com new alerts:
|
@auvipy back to you. I can't see how the codecov job can be fixed to be honest... Clearly L46 is covered by tests now. |
use a fstring Co-authored-by: Omer Katz <omer.drow@gmail.com>
use a fstring Co-authored-by: Omer Katz <omer.drow@gmail.com>
use a fstring Co-authored-by: Omer Katz <omer.drow@gmail.com>
Co-authored-by: Omer Katz <omer.drow@gmail.com>
* Add `azureblockblob_base_path` config - Allow for a basepath such as 'FolderName/' within the Azure container * Docs for `azureblockblob_base_path` * Add Azure basepath to defaults * Add unit tests of Azure base path * Update Contributors * Add `versionadded` to docs of Azure basepath * Fix example path * Add tests for base_path conf * Update celery/backends/azureblockblob.py use a fstring Co-authored-by: Omer Katz <omer.drow@gmail.com> * Update celery/backends/azureblockblob.py use a fstring Co-authored-by: Omer Katz <omer.drow@gmail.com> * Update celery/backends/azureblockblob.py use a fstring Co-authored-by: Omer Katz <omer.drow@gmail.com> * Update docs/userguide/configuration.rst Co-authored-by: Omer Katz <omer.drow@gmail.com> Co-authored-by: Asif Saif Uddin <auvipy@gmail.com> Co-authored-by: Omer Katz <omer.drow@gmail.com>
Description
S3Backend