Skip to content

Commit 881b2ce

Browse files
committed
Upgrades ongoing:
Upgrades: - com.redis.om:redis-om-spring from 0.9.7 to 1.1.1 - org.springdoc:springdoc-openapi-starter-webmvc-ui from 2.8.8 to 2.8.14 - io.swagger.parser.v3:swagger-parser-v3 from 2.1.31 to 2.1.36 - org.testcontainers:postgresql from 1.20.6 to 1.21.3 - org.testcontainers:localstack from 1.20.6 to 1.21.3 - io.awspring.cloud:spring-cloud-aws-dependencies from 3.3.0 to 3.4.2 - io.awspring.cloud:spring-cloud-aws-starter-s3 from 3.3.0 to 3.4.2 Misc: - replace BasicThreadFactory.Builder() by BasicThreadFactory.builder() - replace InputStream.nullInputStream() in tests by " ".toByteArray() to avoid errors - add constraint on com.redis.testcontainers:testcontainers-redis-junit to use com.redis:lettucemod:4.5.0 (compatibility)
1 parent ef9d522 commit 881b2ce

File tree

5 files changed

+20
-26
lines changed

5 files changed

+20
-26
lines changed

api/src/integrationTest/kotlin/com/cosmotech/api/home/dataset/DatasetControllerTests.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import com.cosmotech.dataset.domain.DatasetSecurity
4444
import com.cosmotech.dataset.domain.DatasetUpdateRequest
4545
import com.cosmotech.solution.domain.RunTemplateCreateRequest
4646
import com.cosmotech.solution.domain.RunTemplateResourceSizing
47-
import java.io.InputStream
4847
import kotlin.test.assertEquals
4948
import org.apache.commons.io.IOUtils
5049
import org.hamcrest.Matchers.empty
@@ -1063,7 +1062,7 @@ class DatasetControllerTests : ControllerTestBase() {
10631062
"file",
10641063
"test.csv",
10651064
MediaType.MULTIPART_FORM_DATA_VALUE,
1066-
InputStream.nullInputStream(),
1065+
" ".toByteArray(),
10671066
)
10681067

10691068
mvc.perform(

build.gradle.kts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ val springSecurityJwtVersion = "1.1.1.RELEASE"
6565
val springOauthAutoConfigureVersion = "2.6.8"
6666
val kotlinJvmTarget = 21
6767
val cosmotechApiCommonVersion = "2.1.1-SNAPSHOT"
68-
val redisOmSpringVersion = "0.9.7"
68+
val redisOmSpringVersion = "1.1.1"
6969
val kotlinCoroutinesVersion = "1.10.2"
7070
val oktaSpringBootVersion = "3.0.7"
71-
val springDocVersion = "2.8.8"
72-
val swaggerParserVersion = "2.1.31"
71+
val springDocVersion = "2.8.14"
72+
val swaggerParserVersion = "2.1.36"
7373
val commonsCsvVersion = "1.14.0"
7474
val apiValidationVersion = "3.0.2"
7575
val kubernetesClientVersion = "22.0.0"
7676
val orgJsonVersion = "20240303"
7777
val jacksonModuleKotlinVersion = "2.18.3"
7878
val testNgVersion = "7.8.0"
7979
val testContainersRedisVersion = "1.6.4"
80-
val testContainersPostgreSQLVersion = "1.20.6"
81-
val testContainersLocalStackVersion = "1.20.6"
80+
val testContainersPostgreSQLVersion = "1.21.3"
81+
val testContainersLocalStackVersion = "1.21.3"
8282
val commonCompressVersion = "1.27.1"
83-
val awsSpringVersion = "3.3.0"
83+
val awsSpringVersion = "3.4.2"
8484

8585
// Checks
8686
val detektVersion = "1.23.8"
@@ -132,7 +132,6 @@ allprojects {
132132
sourceCompatibility = JavaVersion.VERSION_21
133133
toolchain { languageVersion.set(JavaLanguageVersion.of(kotlinJvmTarget)) }
134134
}
135-
configurations { all { resolutionStrategy { force("com.redis.om:redis-om-spring:0.9.10") } } }
136135

137136
repositories {
138137
maven {
@@ -201,10 +200,13 @@ subprojects {
201200
val testWorkingDirPath = "${layout.buildDirectory.get()}/run"
202201

203202
sourceSets {
204-
create("integrationTest") {
205-
compileClasspath += sourceSets.main.get().output + sourceSets.test.get().output
206-
runtimeClasspath += sourceSets.main.get().output + sourceSets.test.get().output
207-
}
203+
create(
204+
"integrationTest",
205+
Action {
206+
compileClasspath += sourceSets.main.get().output + sourceSets.test.get().output
207+
runtimeClasspath += sourceSets.main.get().output + sourceSets.test.get().output
208+
},
209+
)
208210
if (openApiDefinitionFile.exists()) {
209211
main { java.srcDirs("$openApiServerSourcesGenerationDir/src/main/kotlin") }
210212
test { java.srcDirs("$openApiServerSourcesGenerationDir/src/test/kotlin") }

common/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ dependencies {
1717
implementation("org.hashids:hashids:${hashidsVersion}")
1818
implementation(
1919
"com.redis.testcontainers:testcontainers-redis-junit:${testContainersRedisVersion}"
20-
)
20+
) {
21+
constraints { implementation("com.redis:lettucemod:4.5.0") }
22+
}
2123
implementation("org.testcontainers:postgresql:${testContainersPostgreSQLVersion}")
2224
implementation("org.testcontainers:localstack:${testContainersLocalStackVersion}")
2325
implementation("org.apache.tika:tika-core:${tikaVersion}")

common/src/main/kotlin/com/cosmotech/common/config/CsmApiConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ open class CsmApiConfiguration {
3636
open fun inProcessEventHandlerExecutor(): Executor =
3737
// TODO A better strategy could be with a limited core pool size off an unbounded queue ?
3838
Executors.newCachedThreadPool(
39-
BasicThreadFactory.Builder().namingPattern("csm-event-handler-%d").build()
39+
BasicThreadFactory.builder().namingPattern("csm-event-handler-%d").build()
4040
)
4141

4242
@Bean open fun yamlHttpMessageConverter(): YamlMessageConverter = YamlMessageConverter()

dataset/src/integrationTest/kotlin/com/cosmotech/dataset/service/DatasetServiceIntegrationTest.kt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,15 +2533,15 @@ class DatasetServiceIntegrationTest() : CsmTestBase() {
25332533
"files",
25342534
CUSTOMER_SOURCE_FILE_NAME,
25352535
MediaType.MULTIPART_FORM_DATA_VALUE,
2536-
InputStream.nullInputStream(),
2536+
" ".toByteArray(),
25372537
)
25382538

25392539
val emptyInventoryMockMultipartFile =
25402540
MockMultipartFile(
25412541
"files",
25422542
INVENTORY_SOURCE_FILE_NAME,
25432543
MediaType.MULTIPART_FORM_DATA_VALUE,
2544-
InputStream.nullInputStream(),
2544+
" ".toByteArray(),
25452545
)
25462546

25472547
val createdDataset =
@@ -2908,15 +2908,6 @@ class DatasetServiceIntegrationTest() : CsmTestBase() {
29082908
val newDatasetDescription = "Dataset for shop"
29092909
val newDatasetTags = mutableListOf("dataset", "public", "shop")
29102910
val newDatasetAdditionalData = mutableMapOf<String, Any>("dataset" to "new data")
2911-
val newDatasetSecurity =
2912-
DatasetSecurity(
2913-
default = ROLE_NONE,
2914-
accessControlList =
2915-
mutableListOf(
2916-
DatasetAccessControl(CONNECTED_ADMIN_USER, ROLE_ADMIN),
2917-
DatasetAccessControl(CONNECTED_DEFAULT_USER, ROLE_EDITOR),
2918-
),
2919-
)
29202911
val datasetUpdateRequest =
29212912
DatasetUpdateRequest(
29222913
name = newDatasetName,

0 commit comments

Comments
 (0)