Skip to content

Commit 117f2ce

Browse files
committed
remove iam
1 parent b98d0f9 commit 117f2ce

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/integration/container/tortoise/test_tortoise_failover.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,13 @@ async def setup_tortoise_with_failover(self, conn_utils, request):
172172
# Add reader strategy if multiple plugins
173173
if "fastest_response_strategy" in plugins:
174174
kwargs["reader_host_selector_strategy"] = "fastest_response"
175-
user = conn_utils.iam_user
176-
kwargs.pop("use_pure")
177-
else:
178-
user = None
179175

180-
async for result in setup_tortoise(conn_utils, plugins=plugins, user=user, **kwargs):
176+
async for result in setup_tortoise(conn_utils, plugins=plugins, **kwargs):
181177
yield result
182178

183179
@pytest.mark.parametrize("setup_tortoise_with_failover", [
184180
"failover",
185-
"failover,aurora_connection_tracker,fastest_response_strategy,iam"
181+
"failover,aurora_connection_tracker,fastest_response_strategy"
186182
], indirect=True)
187183
@pytest.mark.asyncio
188184
async def test_basic_operations_with_failover(
@@ -192,7 +188,7 @@ async def test_basic_operations_with_failover(
192188

193189
@pytest.mark.parametrize("setup_tortoise_with_failover", [
194190
"failover",
195-
"failover,aurora_connection_tracker,fastest_response_strategy,iam"
191+
"failover,aurora_connection_tracker,fastest_response_strategy"
196192
], indirect=True)
197193
@pytest.mark.asyncio
198194
async def test_transaction_with_failover(self, setup_tortoise_with_failover, sleep_trigger_setup, aurora_utility):
@@ -236,7 +232,7 @@ async def failover_task():
236232

237233
@pytest.mark.parametrize("setup_tortoise_with_failover", [
238234
"failover",
239-
"failover,aurora_connection_tracker,fastest_response_strategy,iam"
235+
"failover,aurora_connection_tracker,fastest_response_strategy"
240236
], indirect=True)
241237
@pytest.mark.asyncio
242238
async def test_concurrent_queries_with_failover(self, setup_tortoise_with_failover, sleep_trigger_setup, aurora_utility):
@@ -245,7 +241,7 @@ async def test_concurrent_queries_with_failover(self, setup_tortoise_with_failov
245241

246242
@pytest.mark.parametrize("setup_tortoise_with_failover", [
247243
"failover",
248-
"failover,aurora_connection_tracker,fastest_response_strategy,iam"
244+
"failover,aurora_connection_tracker,fastest_response_strategy"
249245
], indirect=True)
250246
@pytest.mark.asyncio
251247
async def test_multiple_concurrent_inserts_with_failover(self, setup_tortoise_with_failover, sleep_trigger_setup, aurora_utility):

0 commit comments

Comments
 (0)