Skip to content

Commit cc9ffec

Browse files
authored
fix style and import tests in reconfig_state_storage_workload (#19338)
1 parent f8de314 commit cc9ffec

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ydb/tests/stress/reconfig_state_storage_workload/workload/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,20 @@ def _loop(self):
237237
for i in range(len(newRingGroup)):
238238
newRingGroup[i]["WriteOnly"] = True
239239
logger.info(self.do_request({"ReconfigStateStorage": {f"{self.config_name}Config": {
240-
"RingGroups": defaultRingGroup + newRingGroup}}}))
240+
"RingGroups": defaultRingGroup + newRingGroup}}}))
241241
time.sleep(3)
242242
for i in range(len(newRingGroup)):
243243
newRingGroup[i]["WriteOnly"] = False
244244
logger.info(self.do_request({"ReconfigStateStorage": {f"{self.config_name}Config": {
245-
"RingGroups": defaultRingGroup + newRingGroup}}}))
245+
"RingGroups": defaultRingGroup + newRingGroup}}}))
246246
time.sleep(3)
247247
for i in range(len(defaultRingGroup)):
248248
defaultRingGroup[i]["WriteOnly"] = True
249249
logger.info(self.do_request({"ReconfigStateStorage": {f"{self.config_name}Config": {
250-
"RingGroups": newRingGroup + defaultRingGroup}}}))
250+
"RingGroups": newRingGroup + defaultRingGroup}}}))
251251
time.sleep(3)
252252
logger.info(self.do_request({"ReconfigStateStorage": {f"{self.config_name}Config": {
253-
"RingGroups": newRingGroup}}}))
253+
"RingGroups": newRingGroup}}}))
254254
time.sleep(3)
255255
curConfig = self.do_request_config()[f"{self.config_name}Config"]
256256
expectedConfig = {"Ring": newRingGroup[0]} if len(newRingGroup) == 1 else {"RingGroups": newRingGroup}

ydb/tests/stress/reconfig_state_storage_workload/workload/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PY_SRCS(
55
)
66

77
PEERDIR(
8+
contrib/python/requests
89
ydb/public/sdk/python
910
ydb/public/sdk/python/enable_v3_new_behavior
1011
ydb/tests/stress/common

0 commit comments

Comments
 (0)