You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... due to simultaneous access to shared resources.
Due to a Gradle or Library update it seems that the
debug and release tests are executed using multiple
threads, which might lead to one thread starting the
corresponding Databroker Container, while the other
closes it. This might lead to timeouts and therefore
failing tests. Fixed it, by creating a container for
each test class. Previously only one container was
created for each testset (testRelease / testDebug)
Copy file name to clipboardexpand all lines: kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/connectivity/authentication/DataBrokerConnectorAuthenticationTest.kt
+4
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ class DataBrokerConnectorAuthenticationTest : BehaviorSpec({
72
72
val jwtFile = JwtType.READ_WRITE_ALL
73
73
74
74
val dataBrokerConnector = dataBrokerConnectorProvider.createSecure(
75
+
port = databrokerContainer!!.port,
75
76
jwtFileStream = jwtFile.asInputStream(),
76
77
)
77
78
@@ -104,6 +105,7 @@ class DataBrokerConnectorAuthenticationTest : BehaviorSpec({
104
105
and("a secure DataBrokerConnector with a READ_ALLJWT") {
105
106
val jwtFile = JwtType.READ_ALL
106
107
val dataBrokerConnector = dataBrokerConnectorProvider.createSecure(
108
+
port = databrokerContainer!!.port,
107
109
jwtFileStream = jwtFile.asInputStream(),
108
110
)
109
111
@@ -135,6 +137,7 @@ class DataBrokerConnectorAuthenticationTest : BehaviorSpec({
135
137
and("a secure DataBrokerConnector with a READ_WRITE_ALL_VALUES_ONLYJWT") {
136
138
val jwtFile = JwtType.READ_WRITE_ALL_VALUES_ONLY
137
139
val dataBrokerConnector = dataBrokerConnectorProvider.createSecure(
140
+
port = databrokerContainer!!.port,
138
141
jwtFileStream = jwtFile.asInputStream(),
139
142
)
140
143
@@ -189,6 +192,7 @@ class DataBrokerConnectorAuthenticationTest : BehaviorSpec({
189
192
190
193
and("a secure DataBrokerConnector with no JWT") {
191
194
val dataBrokerConnector = dataBrokerConnectorProvider.createSecure(
Copy file name to clipboardexpand all lines: kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/connectivity/databroker/docker/InsecureDataBrokerDockerContainer.kt
+3-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2023 - 2024 Contributors to the Eclipse Foundation
2
+
* Copyright (c) 2023 - 2025 Contributors to the Eclipse Foundation
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardexpand all lines: kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/connectivity/databroker/docker/SecureDataBrokerDockerContainer.kt
0 commit comments