forked from red-hat-storage/ocs-ci
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the option to create Azure NSS buckets using the new logs-e…
…nabled storage account (red-hat-storage#8707) * Add azure-with-logs nss support for factory Signed-off-by: Sagi Hirshfeld <[email protected]>
- Loading branch information
1 parent
0114bae
commit 63d9468
Showing
7 changed files
with
169 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,26 @@ | ||
from ocs_ci.ocs import constants | ||
from ocs_ci.framework.pytest_customization.marks import libtest | ||
from ocs_ci.ocs.resources.mcg_replication_policy import AzureLogBasedReplicationPolicy | ||
from ocs_ci.ocs.bucket_utils import bucket_read_api | ||
|
||
|
||
@libtest | ||
def test_azure_logs_based_repli_setup(bucket_factory, mcg_obj_session): | ||
target_bucket = bucket_factory()[0].name | ||
bucketclass_dict = { | ||
"interface": "OC", | ||
"namespace_policy_dict": { | ||
"type": "Single", | ||
"namespacestore_dict": {constants.AZURE_WITH_LOGS_PLATFORM: [(1, None)]}, | ||
}, | ||
} | ||
replication_policy = AzureLogBasedReplicationPolicy( | ||
destination_bucket=target_bucket, | ||
sync_deletions=True, | ||
) | ||
source_bucket = bucket_factory( | ||
bucketclass=bucketclass_dict, replication_policy=replication_policy | ||
)[0].name | ||
|
||
response = bucket_read_api(mcg_obj_session, source_bucket) | ||
assert "replication_policy_id" in response |
This file contains 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