New fixture for s3 client init #91

Merged
d.zayakin merged 2 commits from d.zayakin/frostfs-testcases:change-split-brain into master 2023-09-19 08:35:29 +00:00
Member

Signed-off-by: Dmitriy Zayakin d.zayakin@yadro.com

Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
d.zayakin requested review from qa-committers 2023-09-14 04:49:01 +00:00
d.zayakin requested review from qa-developers 2023-09-14 04:49:02 +00:00
d.zayakin force-pushed change-split-brain from db62357be2 to edeeba5205 2023-09-14 04:50:09 +00:00 Compare
d.zayakin changed title from Add new argument for init s3 function to New fixture for s3 client init 2023-09-14 04:50:42 +00:00
JuliaKovshova approved these changes 2023-09-14 07:35:37 +00:00
ylukoyan approved these changes 2023-09-14 09:00:20 +00:00
d.zayakin force-pushed change-split-brain from edeeba5205 to 8a6c9f158c 2023-09-18 10:32:59 +00:00 Compare
abereziny reviewed 2023-09-18 10:57:17 +00:00
@ -41,1 +42,3 @@
metafunc.parametrize("s3_client", [AwsCliClient], ids=["aws"], indirect=True)
metafunc.parametrize(
"s3_client, container_placement_policy",
[(AwsCliClient, "")],
Member

What is the actual intention here?
If we don't use the container_placement_policy we can skip mentioning it.

Edit:
I've got it...

Change this

[(AwsCliClient, "")],

to

[(AwsCliClient, "REP $REP_NODE_COUNT$")],
What is the actual intention here? If we don't use the `container_placement_policy` we can skip mentioning it. Edit: I've got it... Change this ``` [(AwsCliClient, "")], ``` to ``` [(AwsCliClient, "REP $REP_NODE_COUNT$")], ```
Author
Member

done

done
abereziny marked this conversation as resolved
@ -297,7 +305,7 @@ class TestFailoverSplitBrain(ClusterTestBase):
with allure.step("Tick 1 epoch and wait 2 block"):
Member

So wait for 10 blocks now?

So wait for 10 blocks now?
Author
Member

done

done
abereziny marked this conversation as resolved
abereziny reviewed 2023-09-18 11:06:04 +00:00
@ -276,0 +284,4 @@
cluster: Cluster, default_wallet: str, request: pytest.FixtureRequest
):
container_placement_policy = None
if "param" in request.__dict__:
Member
placeholders = {
   "$REP_NODE_COUNT$": 4 if len(cluster.cluster_nodes) < 8 else 8,
   "$NODE_COUNT$": len(cluster.cluster_nodes)
}

if "param" in request.__dict__:
   for key, value in placeholders.items():
         container_placement_policy = container_placement_policy.replace(key, value)
``` placeholders = { "$REP_NODE_COUNT$": 4 if len(cluster.cluster_nodes) < 8 else 8, "$NODE_COUNT$": len(cluster.cluster_nodes) } if "param" in request.__dict__: for key, value in placeholders.items(): container_placement_policy = container_placement_policy.replace(key, value) ```
Author
Member

done

done
abereziny marked this conversation as resolved
d.zayakin force-pushed change-split-brain from 8a6c9f158c to 9776cb383c 2023-09-18 17:15:41 +00:00 Compare
d.zayakin force-pushed change-split-brain from 9776cb383c to d0d5bf24ba 2023-09-18 17:19:48 +00:00 Compare
d.zayakin force-pushed change-split-brain from d0d5bf24ba to 6310ab0862 2023-09-18 18:01:18 +00:00 Compare
abereziny approved these changes 2023-09-19 07:11:07 +00:00
anikeev-yadro approved these changes 2023-09-19 08:31:38 +00:00
d.zayakin merged commit 2a1d40680a into master 2023-09-19 08:35:29 +00:00
d.zayakin deleted branch change-split-brain 2023-09-19 08:35:29 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-testcases#91
No description provided.