Skip to content

Add Kotlin SDK ITs, simplifications #2308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025
Merged

Conversation

afranken
Copy link
Member

@afranken afranken commented Apr 3, 2025

Description

Use new Kotlin SDK for ITs
Use simplified Kotlin builder syntax in tests

Related Issue

N/A

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken requested a review from Copilot April 3, 2025 12:57
Copilot

This comment was marked as outdated.

Use new Kotlin SDK for ITs
Use simplified Kotlin builder syntax in tests
@afranken afranken force-pushed the integration-tests-kotlin-sdk branch from bb419a7 to b1d7916 Compare April 3, 2025 12:58
@afranken afranken requested a review from Copilot April 3, 2025 13:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the integration tests to use the new Kotlin SDK and simplified Kotlin builder syntax for S3 operations. Key changes include:

  • Updating all S3 client and request builder invocations to use Kotlin DSL lambda style.
  • Renaming credential variables consistently to s3AccessKeyId and s3SecretAccessKey.
  • Introducing a new createS3ClientKotlin function for the Kotlin SDK and adding a new IT file.

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

File Description
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/S3TestBase.kt Refactor of S3 client creation and request builders using Kotlin DSL, plus variable renaming.
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/KotlinSDKIT.kt New integration test using the new Kotlin SDK.
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/AclITV2.kt Updated bucket and ACL operations to leverage Kotlin DSL.
Files not reviewed (2)
  • integration-tests/pom.xml: Language not supported
  • pom.xml: Language not supported
Comments suppressed due to low confidence (1)

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/S3TestBase.kt:288

  • [nitpick] The nested let chain used for constructing 'normalizedName' may reduce readability. Consider refactoring this block by introducing intermediary variables to improve clarity.
val normalizedName = testInfo.testMethod.get().name.let {

@afranken afranken self-assigned this Apr 3, 2025
@afranken afranken merged commit ce5b0d0 into main Apr 3, 2025
6 checks passed
@afranken afranken deleted the integration-tests-kotlin-sdk branch April 3, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant