Skip to content

Commit 542d6e0

Browse files
committed
Added tests
Signed-off-by: munishchouhan <[email protected]>
1 parent cc71482 commit 542d6e0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/test/groovy/io/seqera/wave/util/ContainerHelperTest.groovy

+30
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,26 @@ class ContainerHelperTest extends Specification {
494494
- pandas==2.2.2
495495
- numpy=1.0
496496
'''.stripIndent(true)
497+
@Shared def GIT1 = '''\
498+
channels:
499+
- bioconda
500+
- conda-forge
501+
dependencies:
502+
- pip
503+
- pip:
504+
- "https://github.com/seqeralabs/seqera-kit/archive/dev.zip"
505+
'''.stripIndent(true)
506+
@Shared def GIT2 = '''\
507+
channels:
508+
- bioconda
509+
- conda-forge
510+
dependencies:
511+
- pip
512+
- pip:
513+
- "https://github.com/seqeralabs/seqera-kit/archive/dev.zip"
514+
- "https://github.com/seqeralabs/seqera-kit/archive/dev2.zip"
515+
- "https://github.com/seqeralabs/seqera-kit/archive/dev3.zip"
516+
'''.stripIndent(true)
497517

498518
@Unroll
499519
def 'should make request target with name strategy' () {
@@ -546,6 +566,16 @@ class ContainerHelperTest extends Specification {
546566
'DOCKER' | 'foo.com/build' | '123' | PIP2 | 'tagPrefix' | 'foo.com/build:pip_pandas-2.2.2_numpy-1.0--123'
547567
'DOCKER' | 'foo.com/build' | '123' | PIP2 | 'imageSuffix' | 'foo.com/build/pip_pandas_numpy:123'
548568
'DOCKER' | 'foo.com/build' | '123' | PIP2 | 'none' | 'foo.com/build:123'
569+
and:
570+
'DOCKER' | 'foo.com/build' | '123' | GIT1 | null | 'foo.com/build:pip_seqeralabs_seqera-kit_archive_dev_zip--123'
571+
'DOCKER' | 'foo.com/build' | '123' | GIT1 | 'tagPrefix' | 'foo.com/build:pip_seqeralabs_seqera-kit_archive_dev_zip--123'
572+
'DOCKER' | 'foo.com/build' | '123' | GIT1 | 'imageSuffix' | 'foo.com/build/pip_seqeralabs_seqera-kit_archive_dev_zip:123'
573+
'DOCKER' | 'foo.com/build' | '123' | GIT1 | 'none' | 'foo.com/build:123'
574+
and:
575+
'DOCKER' | 'foo.com/build' | '123' | GIT2 | null | 'foo.com/build:pip_seqeralabs_seqera-kit_archive_dev_zip_seqeralabs_seqera-kit_archive_dev2_zip--123'
576+
'DOCKER' | 'foo.com/build' | '123' | GIT2 | 'tagPrefix' | 'foo.com/build:pip_seqeralabs_seqera-kit_archive_dev_zip_seqeralabs_seqera-kit_archive_dev2_zip--123'
577+
'DOCKER' | 'foo.com/build' | '123' | GIT2 | 'imageSuffix' | 'foo.com/build/pip_seqeralabs_seqera-kit_archive_dev_zip_seqeralabs_seqera-kit_archive_dev2_zip_seqeralabs_seqera-kit_archive_dev3_zip:123'
578+
'DOCKER' | 'foo.com/build' | '123' | GIT2 | 'none' | 'foo.com/build:123'
549579

550580
}
551581

0 commit comments

Comments
 (0)