Skip to content

Commit

Permalink
chore: auto-fix lint and format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
octavia-squidington-iii committed Jan 9, 2025
1 parent e87dab7 commit 769a7b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ class S3DataLakeUtil(
)
}

private fun buildKeyBasedClientProperties(config: S3DataLakeConfiguration): Map<String, String> {
private fun buildKeyBasedClientProperties(
config: S3DataLakeConfiguration
): Map<String, String> {
val awsAccessKeyId =
requireNotNull(config.awsAccessKeyConfiguration.accessKeyId) {
"AWS Access Key ID is required for key-based authentication"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ object S3DataLakeTestUtil {
}

fun getConfig(spec: ConfigurationSpecification) =
S3DataLakeConfigurationFactory().makeWithoutExceptionHandling(spec as S3DataLakeSpecification)
S3DataLakeConfigurationFactory()
.makeWithoutExceptionHandling(spec as S3DataLakeSpecification)

fun getCatalog(config: S3DataLakeConfiguration, awsSystemCredentials: AWSSystemCredentials) =
S3DataLakeUtil(SimpleTableIdGenerator(), awsSystemCredentials).let { icebergUtil ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ internal class S3DataLakeUtilTest {
URI to "http://localhost:19120/api/v1",
WAREHOUSE_LOCATION to "s3://test/"
)
val catalog = s3DataLakeUtil.createCatalog(catalogName = catalogName, properties = properties)
val catalog =
s3DataLakeUtil.createCatalog(catalogName = catalogName, properties = properties)
assertNotNull(catalog)
assertEquals(catalogName, catalog.name())
assertEquals(NessieCatalog::class.java, catalog.javaClass)
Expand Down

0 comments on commit 769a7b6

Please sign in to comment.