File tree 5 files changed +12
-1
lines changed
src/test/java/io/dapr/it/testcontainers
5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,12 @@ jobs:
117
117
118
118
- name : Install jars
119
119
run : ./mvnw install -q -B -DskipTests
120
+ - name : Integration tests with testcontainers using spring boot version ${{ matrix.spring-boot-version }}
121
+ id : integration_tests_testcontainers
122
+ run : PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -f sdk-tests/pom.xml verify -Dtest.groups=testcontainers
120
123
- name : Integration tests using spring boot version ${{ matrix.spring-boot-version }}
121
124
id : integration_tests
122
- run : PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -f sdk-tests/pom.xml verify
125
+ run : PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -f sdk-tests/pom.xml verify -Dtest.excluded.groups=testcontainers
123
126
- name : Upload test report for sdk
124
127
uses : actions/upload-artifact@v4
125
128
with :
Original file line number Diff line number Diff line change 346
346
<configuration >
347
347
<!-- suppress UnresolvedMavenProperty -->
348
348
<skip >${skipITs} </skip >
349
+ <groups >${test.groups} </groups >
350
+ <excludedGroups >${test.excluded.groups} </excludedGroups >
349
351
</configuration >
350
352
</execution >
351
353
</executions >
Original file line number Diff line number Diff line change 25
25
import okhttp3 .Request ;
26
26
import okhttp3 .Response ;
27
27
import org .junit .jupiter .api .BeforeEach ;
28
+ import org .junit .jupiter .api .Tag ;
28
29
import org .junit .jupiter .api .Test ;
29
30
import org .testcontainers .junit .jupiter .Container ;
30
31
import org .testcontainers .junit .jupiter .Testcontainers ;
48
49
49
50
@ Testcontainers
50
51
@ WireMockTest (httpPort = 8081 )
52
+ @ Tag ("testcontainers" )
51
53
public class DaprContainerTest {
52
54
53
55
// Time-to-live for messages published.
Original file line number Diff line number Diff line change 19
19
import io .dapr .workflows .runtime .WorkflowRuntime ;
20
20
import io .dapr .workflows .runtime .WorkflowRuntimeBuilder ;
21
21
import org .junit .jupiter .api .BeforeEach ;
22
+ import org .junit .jupiter .api .Tag ;
22
23
import org .junit .jupiter .api .Test ;
23
24
import org .springframework .beans .factory .annotation .Autowired ;
24
25
import org .springframework .boot .test .context .SpringBootTest ;
33
34
34
35
@ SpringBootTest (classes = MyTestWithWorkflowsApplication .class , webEnvironment = WebEnvironment .RANDOM_PORT )
35
36
@ Testcontainers
37
+ @ Tag ("testcontainers" )
36
38
public class DaprModuleTests {
37
39
38
40
@ Autowired
Original file line number Diff line number Diff line change 14
14
package io .dapr .it .testcontainers ;
15
15
16
16
import io .dapr .testcontainers .DaprPlacementContainer ;
17
+ import org .junit .jupiter .api .Tag ;
17
18
import org .junit .jupiter .api .Test ;
18
19
import org .testcontainers .junit .jupiter .Container ;
19
20
import org .testcontainers .junit .jupiter .Testcontainers ;
20
21
21
22
import static org .junit .jupiter .api .Assertions .assertEquals ;
22
23
23
24
@ Testcontainers
25
+ @ Tag ("testcontainers" )
24
26
public class DaprPlacementContainerTest {
25
27
26
28
@ Container
You can’t perform that action at this time.
0 commit comments