Skip to content

Commit

Permalink
restore Windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Sep 5, 2024
1 parent e37984a commit 3dba394
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import java.nio.file.LinkOption
import java.nio.file.NoSuchFileException
import java.nio.file.OpenOption
import java.nio.file.Path
import java.nio.file.Paths
import java.nio.file.StandardOpenOption
import java.nio.file.attribute.BasicFileAttributeView
import java.nio.file.attribute.BasicFileAttributes
Expand Down Expand Up @@ -309,7 +310,7 @@ class QuiltFileSystemProvider extends FileSystemProvider implements FileSystemTr
}

void checkRoot(Path path) {
if (path.toString() == '/') {
if (path == Paths.get('/')) {
throw new UnsupportedOperationException("Operation 'checkRoot' not supported on root path")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class QuiltObserverTest extends QuiltSpecification {
where:
s3_uri | quilt_uri
's3://bucket/prefix/suffix' | 'quilt+s3://bucket#package=prefix%2fsuffix'
's3://bucket/prefix' | 'quilt+s3://bucket#package=prefix%2fdefault_suffix'
's3://bucket' | 'quilt+s3://bucket#package=default_prefix%2fdefault_suffix'
// 's3://bucket/folder/prefix/suffix' | 'quilt+s3://bucket#package=prefix%2fsuffix&dest=folder/prefix/suffix'
}

void 'should findOutputParams'() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import java.nio.file.CopyOption
import java.nio.file.StandardCopyOption
import java.nio.file.DirectoryStream
import groovy.util.logging.Slf4j
import spock.lang.IgnoreIf


/**
*
Expand Down Expand Up @@ -105,7 +103,6 @@ class QuiltFileSystemProviderTest extends QuiltSpecification {
thrown java.nio.file.FileAlreadyExistsException
}

@IgnoreIf({ System.getProperty('os.name').toLowerCase().contains('windows') })
void 'should throw error when checkRoot is root'() {
given:
QuiltFileSystemProvider provider = new QuiltFileSystemProvider()
Expand Down

0 comments on commit 3dba394

Please sign in to comment.