Skip to content

Commit caf1cac

Browse files
chore(tests): replace RunnerUtils with TestRunnerUtils for Kestra 1.1.x compatibility (#38)
* refactor(tests): replace RunnerUtils with TestRunnerUtils for Kestra 1.1.0 compatibility * fix(build): move kestraVersion to gradle.properties and revert plugin version to 1.0.0 * chore(version): update kestraversion --------- Co-authored-by: Malay Dewangan <malaydewangan310@gmail.com>
1 parent 5320490 commit caf1cac

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version=1.1.1-SNAPSHOT
2-
kestraVersion=1.0.0
2+
kestraVersion=1.1.0

src/test/java/io/kestra/plugin/jira/issues/CreateCommentTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import io.kestra.core.models.executions.Execution;
66
import io.kestra.core.queues.QueueException;
77
import io.kestra.core.repositories.LocalFlowRepositoryLoader;
8-
import io.kestra.core.runners.RunnerUtils;
8+
import io.kestra.core.runners.TestRunnerUtils;
99
import io.kestra.core.runners.TestRunner;
1010
import io.kestra.core.tenant.TenantService;
1111
import io.micronaut.context.ApplicationContext;
@@ -32,7 +32,7 @@ class CreateCommentTest {
3232
protected TestRunner runner;
3333

3434
@Inject
35-
protected RunnerUtils runnerUtils;
35+
protected TestRunnerUtils runnerUtils;
3636

3737
@Inject
3838
protected LocalFlowRepositoryLoader repositoryLoader;

src/test/java/io/kestra/plugin/jira/issues/CreateTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import io.kestra.core.models.executions.Execution;
66
import io.kestra.core.queues.QueueException;
77
import io.kestra.core.repositories.LocalFlowRepositoryLoader;
8-
import io.kestra.core.runners.RunnerUtils;
8+
//import io.kestra.core.runners.RunnerUtils;
9+
import io.kestra.core.runners.TestRunnerUtils;
910
import io.kestra.core.runners.TestRunner;
1011
import io.kestra.core.tenant.TenantService;
1112
import io.micronaut.context.ApplicationContext;
@@ -32,7 +33,7 @@ class CreateTest {
3233
protected TestRunner runner;
3334

3435
@Inject
35-
protected RunnerUtils runnerUtils;
36+
protected TestRunnerUtils runnerUtils;
3637

3738
@Inject
3839
protected LocalFlowRepositoryLoader repositoryLoader;

src/test/java/io/kestra/plugin/jira/issues/UpdateFieldsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.kestra.core.queues.QueueException;
77
import io.kestra.core.repositories.LocalFlowRepositoryLoader;
88
import io.kestra.core.runners.RunContextFactory;
9-
import io.kestra.core.runners.RunnerUtils;
9+
import io.kestra.core.runners.TestRunnerUtils;
1010
import io.kestra.core.runners.TestRunner;
1111
import io.kestra.core.tenant.TenantService;
1212
import io.micronaut.context.ApplicationContext;
@@ -33,7 +33,7 @@ public class UpdateFieldsTest {
3333
protected TestRunner runner;
3434

3535
@Inject
36-
protected RunnerUtils runnerUtils;
36+
protected TestRunnerUtils runnerUtils;
3737

3838
@Inject
3939
protected LocalFlowRepositoryLoader repositoryLoader;

0 commit comments

Comments
 (0)