@@ -100,7 +100,7 @@ final class DocUploadBundleTests: XCTestCase {
100
100
. init( bucket: " spi-prod-docs " , path: " owner/name/feature-2.0.0 " ) )
101
101
}
102
102
103
- func test_issue_3069_swift_metrics ( ) async throws {
103
+ func test_issue_3069 ( ) async throws {
104
104
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3069
105
105
try await withTempDir { tempDir in
106
106
let url = fixtureUrl ( for: " prod-apple-swift-metrics-main-e6a00d36.zip " )
@@ -130,34 +130,4 @@ final class DocUploadBundleTests: XCTestCase {
130
130
}
131
131
}
132
132
133
- func test_issue_3069_swift_dependencies( ) async throws {
134
- // https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3069
135
- try await withTempDir { tempDir in
136
- let url = fixtureUrl ( for: " dev-pointfreeco-swift-dependencies-1b9fc8fc0d7177b39d5f60ba86f70295b56d0589-cafecafe.zip " )
137
- XCTAssertNoThrow (
138
- try DocUploadBundle . unzip ( bundle: url. path ( ) , outputPath: tempDir)
139
- )
140
- for pathComponent in [ " metadata.json " ,
141
- " 1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index.html " ,
142
- " 1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index/index.json " ] {
143
- let path = tempDir + " / " + pathComponent
144
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: path) , " does not exist: \( path) " )
145
- }
146
- // test roundtrip, to ensure the zip library can zip/unzip its own product
147
- // zip
148
- let urls = [ tempDir + " /metadata.json " ,
149
- tempDir + " /1b9fc8fc0d7177b39d5f60ba86f70295b56d0589 " ] . map ( URL . init ( fileURLWithPath: ) )
150
- let zipped = URL ( fileURLWithPath: tempDir + " /out.zip " )
151
- try Zipper . zip ( paths: urls, to: zipped)
152
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: zipped. path ( ) ) )
153
- // unzip
154
- let out = URL ( fileURLWithPath: tempDir + " /out " )
155
- try Zipper . unzip ( from: zipped, to: out)
156
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. path ( ) ) )
157
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " metadata.json " ) . path ( ) ) )
158
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " 1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index.html " ) . path ( ) ) )
159
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " 1b9fc8fc0d7177b39d5f60ba86f70295b56d0589/index/index.json " ) . path ( ) ) )
160
- }
161
- }
162
-
163
133
}
0 commit comments