Skip to content

Commit

Permalink
fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Jul 23, 2024
1 parent 018e467 commit bb817d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/docker/config/delta-postgres.conf
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ plugins {
default-access-key = "MY_ACCESS_KEY"
default-secret-key = "CHUTCHUT"
default-bucket = "mydefaultbucket"
prefix = "myprefix"
prefix = "/myprefix"
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/src/test/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ storage {
s-3 {
access-key = "MY_ACCESS_KEY"
secret-key = "CHUTCHUT"
prefix = "myprefix"
prefix = "/myprefix"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class S3StorageSpec extends StorageSpec {

private def assertThereIsAFileInS3WithAtLocation(location: String): Assertion = {
s3Client
.listObjectsV2(ListObjectsV2Request.builder.bucket(bucket).prefix(s"myprefix/$projectRef/files").build)
.listObjectsV2(ListObjectsV2Request.builder.bucket(bucket).prefix(s"/myprefix/$projectRef/files").build)
.map(_.contents.asScala.map(_.key()))
.map(keys => keys should contain(location))
.accepted
Expand Down

0 comments on commit bb817d1

Please sign in to comment.