Skip to content

Commit

Permalink
[MIG] storage_backend_s3: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Piernas Andrés committed Aug 9, 2023
1 parent 64708c0 commit bb18dab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions storage_backend_s3/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
{
"name": "Storage Backend S3",
"summary": "Implement amazon S3 Storage",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"category": "Storage",
"website": "https://github.com/OCA/storage",
"author": " Akretion, Odoo Community Association (OCA)",
"license": "LGPL-3",
"installable": True,
"external_dependencies": {"python": ["boto3<=1.15.18"]},
"external_dependencies": {"python": ["boto3<=1.15.18", "vcr_unittest"]},
"depends": ["storage_backend"],
"data": ["views/backend_storage_view.xml"],
}
23 changes: 12 additions & 11 deletions storage_backend_s3/tests/test_amazon_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@


class AmazonS3Case(VCRMixin, CommonCase, BackendStorageTestMixin):
def _get_vcr_kwargs(self, **kwargs):
return {
"record_mode": "once",
"match_on": ["method", "path", "query", "body"],
"filter_headers": ["Authorization"],
"decode_compressed_response": True,
}

def setUp(self):
super(AmazonS3Case, self).setUp()
self.backend.write(
@classmethod
def setUpClass(cls):
super(AmazonS3Case, cls).setUpClass()
cls.backend = cls.env["storage.backend"].create(
{
"backend_type": "amazon_s3",
"aws_bucket": os.environ.get("AWS_BUCKET", "test-storage-backend"),
Expand All @@ -37,6 +30,14 @@ def setUp(self):
}
)

def _get_vcr_kwargs(self, **kwargs):
return {
"record_mode": "once",
"match_on": ["method", "path", "query", "body"],
"filter_headers": ["Authorization"],
"decode_compressed_response": True,
}

def test_setting_and_getting_data_from_root(self):
self._test_setting_and_getting_data_from_root()

Expand Down

0 comments on commit bb18dab

Please sign in to comment.