-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
33 additions
and
35 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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -12,13 +12,12 @@ import org.pf4j.PluginDescriptorFinder | |
import spock.lang.Shared | ||
import spock.lang.Timeout | ||
import test.Dsl2Spec | ||
import software.amazon.awssdk.core.exception.SdkClientException | ||
|
||
import java.nio.file.Path | ||
|
||
|
||
/** | ||
* Unit test for Polly DSL | ||
* Unit test for Hello DSL | ||
* | ||
* @author : jorge <[email protected]> | ||
*/ | ||
|
@@ -71,7 +70,7 @@ class PollyDslTest extends Dsl2Spec{ | |
channel.reverse('hi!') | ||
''' | ||
and: | ||
def result = new MockScriptRunner([Polly:[prefix:'>>']]).setScript(SCRIPT).execute() | ||
def result = new MockScriptRunner([hello:[prefix:'>>']]).setScript(SCRIPT).execute() | ||
then: | ||
result.val == 'hi!'.reverse() | ||
result.val == Channel.STOP | ||
|
@@ -94,17 +93,17 @@ class PollyDslTest extends Dsl2Spec{ | |
} | ||
|
||
def 'can use an imported function' () { | ||
// when: | ||
when: | ||
def SCRIPT = ''' | ||
include {reportMetric} from 'plugin/nf-polly' | ||
channel | ||
.of( reportMetric("key","value") ) | ||
''' | ||
// and: | ||
// def result = new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
// then: | ||
// // result.val.size() == 20 | ||
// result.val == Channel.STOP | ||
and: | ||
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
then: | ||
result.val.size() == 20 | ||
result.val == Channel.STOP | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.