Skip to content

Commit 0cea771

Browse files
committed
Fix S3 and IcebergRestS3 tests
1 parent d445281 commit 0cea771

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

syncmaster/dto/connections.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ class IcebergRESTCatalogS3ConnectionDTO(ConnectionDTO):
8585
s3_secret_key: str
8686
metastore_username: str
8787
metastore_password: str
88-
s3_port: int | None = None
89-
s3_protocol: str = "https"
88+
s3_port: int | None
89+
s3_protocol: str
90+
additional_params: dict
9091
type: ClassVar[str] = "iceberg_rest_s3"
9192

9293

syncmaster/schemas/v1/connections/iceberg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class CreateIcebergRESTCatalogS3ConnectionDataSchema(BaseModel):
2626
s3_bucket: str
2727
s3_region: str
2828
s3_bucket_style: Literal["domain", "path"] = "path"
29+
additional_params: dict = Field(default_factory=dict)
2930

3031

3132
class ReadIcebergRESTCatalogS3ConnectionDataSchema(BaseModel):
@@ -37,6 +38,7 @@ class ReadIcebergRESTCatalogS3ConnectionDataSchema(BaseModel):
3738
s3_bucket: str
3839
s3_region: str
3940
s3_bucket_style: Literal["domain", "path"] = "path"
41+
additional_params: dict = Field(default_factory=dict)
4042

4143

4244
class CreateIcebergConnectionSchema(CreateConnectionBaseSchema):

syncmaster/schemas/v1/connections/s3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class CreateS3ConnectionDataSchema(BaseModel):
2323
region: str | None = None
2424
protocol: Literal["http", "https"] = "https"
2525
bucket_style: Literal["domain", "path"] = "domain"
26+
additional_params: dict = Field(default_factory=dict)
2627

2728
@model_validator(mode="before")
2829
def validate_port(cls, values: dict) -> dict:
@@ -43,6 +44,7 @@ class ReadS3ConnectionDataSchema(BaseModel):
4344
region: str | None = None
4445
protocol: Literal["http", "https"] = "https"
4546
bucket_style: Literal["domain", "path"] = "domain"
47+
additional_params: dict = Field(default_factory=dict)
4648

4749

4850
class CreateS3ConnectionSchema(CreateConnectionBaseSchema):

0 commit comments

Comments
 (0)