File tree 2 files changed +9
-2
lines changed
modules/flowable-cmmn-rest/src/test/java/org/flowable/cmmn/rest/service/api/runtime
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 20
20
fail-fast : false
21
21
matrix :
22
22
mssql : [2017-latest-ubuntu, 2019-latest]
23
+ include :
24
+ - mssql : 2017-latest-ubuntu
25
+ healthRunnable : /opt/mssql-tools/bin/sqlcmd
26
+ - mssql : 2019-latest
27
+ healthRunnable : /opt/mssql-tools18/bin/sqlcmd -C
23
28
services :
24
29
mssql :
25
30
image : mcr.microsoft.com/mssql/server:${{ matrix.mssql }}
30
35
- 1433/tcp
31
36
# needed because the mssql container does not provide a health check
32
37
options : >-
33
- --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P flowableStr0ngPassword -l 30 -Q \"SELECT 1\" || exit 1"
38
+ --health-cmd="${{ matrix.healthRunnable }} -S localhost -U sa -P flowableStr0ngPassword -l 30 -Q \"SELECT 1\" || exit 1"
34
39
--health-start-period 10s
35
40
--health-interval 10s
36
41
--health-timeout 5s
Original file line number Diff line number Diff line change 18
18
19
19
import java .io .IOException ;
20
20
import java .io .Serializable ;
21
- import java .sql .Date ;
22
21
import java .time .Instant ;
23
22
import java .time .temporal .ChronoUnit ;
23
+ import java .util .Date ;
24
24
25
25
import org .apache .http .HttpStatus ;
26
26
import org .apache .http .client .methods .CloseableHttpResponse ;
@@ -57,6 +57,8 @@ public class CaseInstanceResourceTest extends BaseSpringRestTestCase {
57
57
@ CmmnDeployment (resources = { "org/flowable/cmmn/rest/service/api/repository/oneHumanTaskCase.cmmn" })
58
58
public void testGetCaseInstance () throws Exception {
59
59
Authentication .setAuthenticatedUserId ("getCaseUser" );
60
+ cmmnEngineConfiguration .getClock ()
61
+ .setCurrentTime (Date .from (Instant .now ().truncatedTo (ChronoUnit .SECONDS )));
60
62
CaseInstance caseInstance = runtimeService .createCaseInstanceBuilder ()
61
63
.caseDefinitionKey ("oneHumanTaskCase" )
62
64
.businessKey ("myBusinessKey" )
You can’t perform that action at this time.
0 commit comments