From 3f999976ca213dff3dc9ce35b5b0cc179d4f0150 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 4 Nov 2018 11:54:27 +0100 Subject: [PATCH] Drop superseded migration test Migration code was removed. --- .../ConnectionServiceTests.swift | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/PassepartoutTests-iOS/ConnectionServiceTests.swift b/PassepartoutTests-iOS/ConnectionServiceTests.swift index 3aa4d4df..aefc43fb 100644 --- a/PassepartoutTests-iOS/ConnectionServiceTests.swift +++ b/PassepartoutTests-iOS/ConnectionServiceTests.swift @@ -43,22 +43,6 @@ class ConnectionServiceTests: XCTestCase { XCTAssertNoThrow(try JSONSerialization.jsonObject(with: jsonData, options: [])) } - func testMigrate() { - let migrated = try! ConnectionService.migrateJSON(at: url) - let json = String(data: migrated, encoding: .utf8)! - print(json) - let service = try! JSONDecoder().decode(ConnectionService.self, from: migrated) - - guard let activeProfile = service.activeProfile as? HostConnectionProfile else { - XCTFail() - return - } - XCTAssert(activeProfile.id == "host.edu") - XCTAssert(activeProfile.hostname == "1.2.4.5") - XCTAssert(activeProfile.parameters.sessionConfiguration.cipher == .aes256cbc) - XCTAssert(activeProfile.parameters.sessionConfiguration.ca.pem == "bogus+ca") - } - func testPathExtension() { XCTAssertTrue(privateTestPathExtension("file:///foo/bar/johndoe.json")) XCTAssertFalse(privateTestPathExtension("file:///foo/bar/break.json.johndoe.json"))