Skip to content

Commit

Permalink
fix: Fix retention policy integration test (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Feb 15, 2024
1 parent 94dcbcd commit 8e0d640
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions setup.py
Expand Up @@ -68,10 +68,11 @@ def main():
'bottle',
'jsonpatch>1.14',
'sqlalchemy<1.4.0',
'pytest',
'pytest-timeout',
'pytest-cov',
'pytest-lazy-fixture',
# pytest 8.0.0 is not compatible, so we need to use the latest version of pytest 7.x
'pytest<8.0.0',
'pytest-timeout<3.0.0',
'pytest-cov<5.0.0',
'pytest-lazy-fixture<1.0.0',
'pytz',
'urllib3<2'
]
Expand Down
Expand Up @@ -6,7 +6,7 @@

class BoxRetentionPolicy:

DEFAULT_RETENTION_POLICY_NAME = "modifiable_retention_policy_for_integration_tests"
DEFAULT_RETENTION_POLICY_NAME = "modifiable_retention_policy_for_integration_tests_extendable_by_owner"

def __init__(
self,
Expand All @@ -26,6 +26,7 @@ def __init__(
policy_name=name,
disposition_action=disposition_action,
retention_length=retention_length,
can_owner_extend_retention=True,
retention_type='modifiable'
)

Expand Down

0 comments on commit 8e0d640

Please sign in to comment.