-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate package plugin.core.state to dynamic properties
- Loading branch information
Showing
7 changed files
with
63 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package io.kestra.plugin.core.state; | ||
|
||
import io.kestra.core.models.property.Property; | ||
import io.kestra.core.models.tasks.Task; | ||
import io.kestra.core.runners.RunContext; | ||
import io.kestra.core.runners.RunContextFactory; | ||
|
@@ -32,18 +33,18 @@ void run() throws Exception { | |
Set set = Set.builder() | ||
.id(IdUtils.create()) | ||
.type(Set.class.toString()) | ||
.namespace(true) | ||
.data(Map.of( | ||
.namespace(Property.of(true)) | ||
.data(Property.of(Map.of( | ||
"john", "doe" | ||
)) | ||
))) | ||
.build(); | ||
Set.Output setOutput = set.run(runContextFlow1(set)); | ||
Check failure on line 41 in core/src/test/java/io/kestra/plugin/core/state/StateNamespaceTest.java GitHub Actions / JUnit Test ReportStateNamespaceTest.run()
Raw output
|
||
assertThat(setOutput.getCount(), is(1)); | ||
|
||
Get get = Get.builder() | ||
.id(IdUtils.create()) | ||
.type(Get.class.toString()) | ||
.namespace(true) | ||
.namespace(Property.of(true)) | ||
.build(); | ||
Get.Output getOutput = get.run(runContextFlow2(get)); | ||
assertThat(getOutput.getCount(), is(1)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters