From c7cfc669a5872831e816d9f9c6fec06bc638222b Mon Sep 17 00:00:00 2001 From: David Jones Date: Fri, 25 Jan 2019 11:41:34 +0000 Subject: [PATCH 1/2] Add test file --- Tests/SwiftyRequestTests/test_file.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Tests/SwiftyRequestTests/test_file.json diff --git a/Tests/SwiftyRequestTests/test_file.json b/Tests/SwiftyRequestTests/test_file.json new file mode 100644 index 0000000..42dbbb4 --- /dev/null +++ b/Tests/SwiftyRequestTests/test_file.json @@ -0,0 +1,4 @@ +{ + "name" : "Test Document", + "description" : "Test file for SwiftyRequestTests.testFileDownload()" +} From 0be4ab8b6eb215110d5f269196bac1d3ea536a7e Mon Sep 17 00:00:00 2001 From: David Jones Date: Fri, 25 Jan 2019 11:42:17 +0000 Subject: [PATCH 2/2] Update URL for download test --- Tests/SwiftyRequestTests/SwiftyRequestTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/SwiftyRequestTests/SwiftyRequestTests.swift b/Tests/SwiftyRequestTests/SwiftyRequestTests.swift index 850eb5e..887157b 100644 --- a/Tests/SwiftyRequestTests/SwiftyRequestTests.swift +++ b/Tests/SwiftyRequestTests/SwiftyRequestTests.swift @@ -392,7 +392,7 @@ class SwiftyRequestTests: XCTestCase { let expectation = self.expectation(description: "download file SwiftyRequest test") - let url = "https://raw.githubusercontent.com/watson-developer-cloud/swift-sdk/master/Tests/DiscoveryV1Tests/metadata.json" + let url = "https://raw.githubusercontent.com/IBM-Swift/SwiftyRequest/c7cfc669a5872831e816d9f9c6fec06bc638222b/Tests/SwiftyRequestTests/test_file.json" let request = RestRequest(url: url) request.credentials = .apiKey