Skip to content

Commit

Permalink
Ignore tests when smoke mode is enabled [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Feb 2, 2025
1 parent b582cb5 commit 3eb6efa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class HttpFilesTests extends Specification {
server?.stop(0)
}

@IgnoreIf({System.getenv('NXF_SMOKE')})
def 'read a http file ' () {
given:
def uri = new URI('http://www.nextflow.io/index.html')
Expand All @@ -116,6 +117,7 @@ class HttpFilesTests extends Specification {

}

@IgnoreIf({System.getenv('NXF_SMOKE')})
def 'should check file properties' () {
given:
SysEnv.push([NXF_HTTPFS_MAX_ATTEMPTS: '1'])
Expand Down Expand Up @@ -152,8 +154,8 @@ class HttpFilesTests extends Specification {
lines[1] == 'Disallow: /'
}

@IgnoreIf({System.getenv('NXF_SMOKE')})
def 'should read HTTPS file' () {

given:
def uri = new URI('https://www.nextflow.io/index.html')
when:
Expand All @@ -166,11 +168,10 @@ class HttpFilesTests extends Specification {
then:
lines.size()>0
lines[0].startsWith('<!DOCTYPE html><html lang="en">')

}

@IgnoreIf({System.getenv('NXF_SMOKE')})
def 'should copy a file' () {

given:
def uri = new URI('https://www.nextflow.io/index.html')
def source = Paths.get(uri)
Expand All @@ -184,7 +185,6 @@ class HttpFilesTests extends Specification {

cleanup:
target?.parent?.deleteDir()

}

@IgnoreIf({System.getenv('NXF_SMOKE')})
Expand All @@ -204,7 +204,6 @@ class HttpFilesTests extends Specification {
}

def 'should read with a newByteChannel' () {

given:
def wireMock = new WireMockGroovy(18080)
wireMock.stub {
Expand Down Expand Up @@ -237,10 +236,8 @@ class HttpFilesTests extends Specification {
then:
buffer.toString() == path.text
buffer.toString() == '01234567890123456789012345678901234567890123456789'

}


def 'should use basic auth' () {
given:
def RESP = 'Hello world'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ import java.nio.file.Path
import com.github.tomakehurst.wiremock.junit.WireMockRule
import com.github.tomjankes.wiremock.WireMockGroovy
import org.junit.Rule
import spock.lang.IgnoreIf
import spock.lang.Specification
import spock.lang.Unroll
/**
* Created by emilio on 08/11/16.
*/
class XFileSystemProviderTest extends Specification {


@IgnoreIf({System.getenv('NXF_SMOKE')})
def "should return input stream"() {
given:
def fsp = new HttpFileSystemProvider()
Expand Down Expand Up @@ -98,7 +99,7 @@ class XFileSystemProviderTest extends Specification {
Locale.setDefault(Locale.Category.FORMAT, defLocale)
}


@IgnoreIf({System.getenv('NXF_SMOKE')})
def "should read file attributes from HttpPath"() {
given:
def fsp = new HttpFileSystemProvider()
Expand All @@ -111,6 +112,7 @@ class XFileSystemProviderTest extends Specification {
attrs.size() > 0
}

@IgnoreIf({System.getenv('NXF_SMOKE')})
def "should read file attributes from FtpPath"() {
given:
def fsp = new FtpFileSystemProvider()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package nextflow.cloud.google.batch

import nextflow.cloud.google.batch.GoogleBatchMachineTypeSelector.MachineType
import nextflow.cloud.types.PriceModel
import nextflow.util.MemoryUnit
import spock.lang.IgnoreIf
import spock.lang.Specification

class GoogleBatchMachineTypeSelectorTest extends Specification {
Expand Down Expand Up @@ -63,6 +63,7 @@ class GoogleBatchMachineTypeSelectorTest extends Specification {

}

@IgnoreIf({System.getenv('NXF_SMOKE')})
def 'should parse Seqera cloud info API'() {
when:
GoogleBatchMachineTypeSelector.INSTANCE.getAvailableMachineTypes("europe-west2", true)
Expand Down

0 comments on commit 3eb6efa

Please sign in to comment.