@@ -100,34 +100,4 @@ 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( ) async throws {
104
- // https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3069
105
- try await withTempDir { tempDir in
106
- let url = fixtureUrl ( for: " prod-apple-swift-metrics-main-e6a00d36.zip " )
107
- XCTAssertNoThrow (
108
- try DocUploadBundle . unzip ( bundle: url. path, outputPath: tempDir)
109
- )
110
- for pathComponent in [ " metadata.json " ,
111
- " main/index.html " ,
112
- " main/index/index.json " ] {
113
- let path = tempDir + " / " + pathComponent
114
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: path) , " does not exist: \( path) " )
115
- }
116
- // test roundtrip, to ensure the zip library can zip/unzip its own product
117
- // zip
118
- let urls = [ tempDir + " /metadata.json " ,
119
- tempDir + " /main " ] . map ( URL . init ( fileURLWithPath: ) )
120
- let zipped = URL ( fileURLWithPath: tempDir + " /out.zip " )
121
- try Zipper . zip ( paths: urls, to: zipped)
122
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: zipped. path) )
123
- // unzip
124
- let out = URL ( fileURLWithPath: tempDir + " /out " )
125
- try Zipper . unzip ( from: zipped, to: out)
126
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. path) )
127
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " metadata.json " ) . path) )
128
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " main/index.html " ) . path) )
129
- XCTAssertTrue ( FileManager . default. fileExists ( atPath: out. appendingPathComponent ( " main/index/index.json " ) . path) )
130
- }
131
- }
132
-
133
103
}
0 commit comments