diff --git a/tests/dragonfly/acl_family_test.py b/tests/dragonfly/acl_family_test.py index 0e92c0877c14..9a2e76694b7e 100644 --- a/tests/dragonfly/acl_family_test.py +++ b/tests/dragonfly/acl_family_test.py @@ -457,6 +457,23 @@ async def test_require_pass(df_factory): await client.close() +@pytest.mark.asyncio +@dfly_args({"port": 1111, "requirepass": "temp"}) +async def test_require_pass_with_acl_file_order(df_factory, tmp_dir): + acl = create_temp_file( + "USER default ON >jordan ~* +@all", + tmp_dir, + ) + + df = df_factory.create(aclfile=acl) + df.start() + + client = aioredis.Redis(username="default", password="jordan", port=df.port) + + assert await client.set("foo", "bar") + await client.close() + + @pytest.mark.asyncio async def test_set_acl_file(async_client: aioredis.Redis, tmp_dir): acl_file_content = "USER roy ON #ea71c25a7a602246b4c39824b855678894a96f43bb9b71319c39700a1e045222 +@string +@fast +hset\nUSER john on nopass +@string"