Skip to content

Commit

Permalink
form pkgKey tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Sep 8, 2024
1 parent 5b2f126 commit 823546f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class QuiltObserverTest extends QuiltSpecification {
Path testPath = QuiltPathFactory.parse(testURI)
Path specPath = QuiltPathFactory.parse(SpecURI())
expect:
QuiltObserver.pkgKey(testPath) == TEST_KEY
QuiltObserver.pkgKey(specPath) == SPEC_KEY
QuiltObserver.pkgKey(testPath) == QuiltPackage.osConvert(TEST_KEY)
QuiltObserver.pkgKey(specPath) == QuiltPackage.osConvert(SPEC_KEY)
}

void 'should extract quiltURIfromS3'() {
Expand Down Expand Up @@ -98,9 +98,10 @@ class QuiltObserverTest extends QuiltSpecification {
void 'should findOutputParams'() {
given:
QuiltObserver observer = makeObserver()
String targetKey = QuiltPackage.osConvert('bucket/prefix/suffix')
expect:
observer.outputURIs
!observer.outputURIs.containsKey('bucket/prefix/suffix')
!observer.outputURIs.containsKey(targetKey)
observer.outputURIs.size() == 2

observer.outputURIs.containsKey(key)
Expand Down

0 comments on commit 823546f

Please sign in to comment.