Skip to content

Commit

Permalink
Added AWS Java SDK v2 based tests (#375)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
  • Loading branch information
shtripat authored Jan 23, 2024
1 parent 554d02c commit 5772d8c
Show file tree
Hide file tree
Showing 16 changed files with 1,371 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/shellsheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
SHFMT_OPTS: -s # arguments to shfmt.
with:
sh_checker_comment: true

sh_checker_exclude: gradlew
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Mint is a testing framework for Minio object server, available as a podman image
- awscli
- aws-sdk-go
- aws-sdk-java
- aws-sdk-java-v2
- aws-sdk-php
- aws-sdk-ruby
- healthcheck
Expand Down
9 changes: 9 additions & 0 deletions build/aws-sdk-java-v2/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

6 changes: 6 additions & 0 deletions build/aws-sdk-java-v2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore Gradle project-specific cache directory
.gradle
.idea

# Ignore Gradle build output directory
app/build
44 changes: 44 additions & 0 deletions build/aws-sdk-java-v2/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.5/userguide/building_java_projects.html in the Gradle documentation.
*/
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
// Apply the application plugin to add support for building a CLI application in Java.
application
id("com.github.johnrengelman.shadow") version "8.1.1"
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

dependencies {
// AWS SDK dependencies
implementation(platform("software.amazon.awssdk:bom:2.21.36"))
implementation("software.amazon.awssdk:s3")
implementation("software.amazon.awssdk:netty-nio-client")

// jackson dependency
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.+")
}

tasks.withType<ShadowJar> {
archiveFileName.set("FunctionalTests.jar")
}

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

application {
// Define the main class for the application.
mainClass.set("io.minio.awssdk.v2.tests.FunctionalTests")
}
Loading

0 comments on commit 5772d8c

Please sign in to comment.