Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit 0091a43

Browse files
committed
Soto 5.0.0 & list test
1 parent 7661c86 commit 0091a43

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
dependencies: [
1313
.package(url: "https://github.com/binarybirds/liquid-kit.git", from: "1.2.0-beta"),
1414
.package(url: "https://github.com/vapor/vapor.git", from: "4.34.0"),
15-
.package(url: "https://github.com/soto-project/soto.git", from: "5.0.0-rc")
15+
.package(url: "https://github.com/soto-project/soto.git", from: "5.0.0")
1616
],
1717
targets: [
1818
.target(name: "LiquidAwsS3Driver", dependencies: [

Tests/LiquidAwsS3DriverTests/LiquidAwsS3DriverTests.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ final class LiquidAwsS3DriverTests: XCTestCase {
116116
let exists2 = try fs.exists(key: key2).wait()
117117
XCTAssertTrue(exists2)
118118
}
119+
120+
func testListFile() throws {
121+
let fs = try createTestStorage()
122+
123+
let key2 = "dir04/test-01.txt"
124+
let data = Data("test".utf8)
125+
_ = try fs.upload(key: key2, data: data).wait()
126+
127+
let res = try fs.list(key: key2).wait()
128+
print(res)
129+
XCTAssertEqual(res, [])
130+
}
119131

120132
/*
121133
func testUploadWithCustomEndpoint() throws {

0 commit comments

Comments
 (0)