-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Fusion ARM64 client [ci fast]
Signed-off-by: Paolo Di Tommaso <[email protected]>
- Loading branch information
1 parent
c619eb8
commit d073c53
Showing
4 changed files
with
35 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,8 @@ import org.apache.commons.compress.archivers.tar.TarArchiveInputStream | |
import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream | ||
import spock.lang.Shared | ||
import spock.lang.Specification | ||
import spock.lang.Unroll | ||
|
||
/** | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
|
@@ -715,4 +717,22 @@ class WaveClientTest extends Specification { | |
| CONFIG_RESP.get('combined') | ||
} | ||
|
||
@Unroll | ||
def 'should get fusion default url' () { | ||
given: | ||
def config = CONFIG | ||
def sess = Mock(Session) {getConfig() >> config } | ||
and: | ||
def wave = Spy(new WaveClient(sess)) | ||
|
||
expect: | ||
wave.defaultFusionUrl().toURI().toString() == EXPECTED | ||
|
||
where: | ||
CONFIG | EXPECTED | ||
[:] | 'https://fusionfs.seqera.io/releases/v0.6.0-amd64.json' | ||
[wave:[containerPlatform: 'arm64']] | 'https://fusionfs.seqera.io/releases/v0.6.0-arm64.json' | ||
[wave:[containerPlatform: 'linux/arm64']] | 'https://fusionfs.seqera.io/releases/v0.6.0-arm64.json' | ||
[wave:[containerPlatform: 'linux/arm64/v8']] | 'https://fusionfs.seqera.io/releases/v0.6.0-arm64.json' | ||
} | ||
} |