Skip to content

Commit 9818462

Browse files
committed
Fix S3 and IcebergRestS3 tests
1 parent 72e8147 commit 9818462

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

tests/test_integration/test_run_transfer/connection_fixtures/iceberg_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ async def iceberg_rest_s3_connection(
137137
s3_bucket=iceberg.s3_bucket,
138138
s3_region=iceberg.s3_region,
139139
s3_bucket_style=iceberg.s3_bucket_style,
140+
s3_additional_params=iceberg.s3_additional_params,
140141
),
141142
group_id=group.id,
142143
)

tests/test_integration/test_run_transfer/connection_fixtures/s3_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ async def s3_connection(
164164
bucket=s3.bucket,
165165
bucket_style=s3.bucket_style,
166166
protocol=s3.protocol,
167+
additional_params=s3.additional_params,
167168
),
168169
group_id=group.id,
169170
)

tests/test_unit/test_connections/test_db_connection/test_create_iceberg_connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ async def test_developer_plus_can_create_iceberg_rest_s3_connection(
8080
"s3_bucket": connection.data["s3_bucket"],
8181
"s3_region": connection.data["s3_region"],
8282
"s3_bucket_style": connection.data["s3_bucket_style"],
83+
"s3_additional_params": connection.data["s3_additional_params"],
8384
},
8485
"auth_data": {
8586
"type": decrypted["type"],

tests/test_unit/test_connections/test_db_connection/test_update_iceberg_connection.py

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

44
from tests.mocks import MockConnection, UserTestRoles
5-
from tests.test_unit.utils import fetch_connection_json
65

76
pytestmark = [pytest.mark.asyncio, pytest.mark.server, pytest.mark.iceberg]
87

@@ -39,13 +38,11 @@ async def test_developer_plus_can_update_iceberg_rest_s3_connection(
3938
role_developer_plus: UserTestRoles,
4039
):
4140
user = group_connection.owner_group.get_member_of_role(role_developer_plus)
42-
connection_json = await fetch_connection_json(client, user.token, group_connection)
4341

4442
result = await client.put(
4543
f"v1/connections/{group_connection.id}",
4644
headers={"Authorization": f"Bearer {user.token}"},
4745
json={
48-
**connection_json,
4946
"type": group_connection.type,
5047
"connection_data": {
5148
"metastore_url": "http://rest.domain.com:8000",
@@ -81,6 +78,7 @@ async def test_developer_plus_can_update_iceberg_rest_s3_connection(
8178
"s3_bucket": "new_bucket",
8279
"s3_region": "us-east-2",
8380
"s3_bucket_style": "domain",
81+
"s3_additional_params": {},
8482
},
8583
"auth_data": {
8684
"type": group_connection.credentials.value["type"],

0 commit comments

Comments
 (0)