Skip to content

Commit 9d2124b

Browse files
committed
Fix S3 and IcebergRestS3 tests
1 parent 9818462 commit 9d2124b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_unit/test_connections/test_db_connection/test_update_iceberg_connection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from httpx import AsyncClient
33

44
from tests.mocks import MockConnection, UserTestRoles
5+
from tests.test_unit.utils import fetch_connection_json
56

67
pytestmark = [pytest.mark.asyncio, pytest.mark.server, pytest.mark.iceberg]
78

@@ -38,11 +39,13 @@ async def test_developer_plus_can_update_iceberg_rest_s3_connection(
3839
role_developer_plus: UserTestRoles,
3940
):
4041
user = group_connection.owner_group.get_member_of_role(role_developer_plus)
42+
connection_json = await fetch_connection_json(client, user.token, group_connection)
4143

4244
result = await client.put(
4345
f"v1/connections/{group_connection.id}",
4446
headers={"Authorization": f"Bearer {user.token}"},
4547
json={
48+
**connection_json,
4649
"type": group_connection.type,
4750
"connection_data": {
4851
"metastore_url": "http://rest.domain.com:8000",

0 commit comments

Comments
 (0)