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

Commit c1a05e8

Browse files
committed
Replace test names from Secure to more specific TLS with CA or TLS with SelfSigned
1 parent 55dbca4 commit c1a05e8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Tests/HTTPTests/TLSServerTests.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ import ServerSecurity
1414

1515
class TLSServerTests: XCTestCase {
1616

17-
func testOkEndToEndCASecure() {
17+
func testOkEndToEndTLSwithCA() {
1818
let config = createCASignedTLSConfig()
1919
testOkEndToEndInternal(tlsParams: TLSParams(config: config, selfsigned: false))
2020
}
2121

22-
func testOkEndToEndSelfSignedSecure() {
22+
func testOkEndToEndTLSwithSelfSigned() {
2323
let config = createSelfSignedTLSConfig()
2424
testOkEndToEndInternal(tlsParams: TLSParams(config: config, selfsigned: true))
2525
}
@@ -78,12 +78,12 @@ class TLSServerTests: XCTestCase {
7878
}
7979
}
8080

81-
func testHelloEndToEndCASecure() {
81+
func testHelloEndToEndTLSwithCA() {
8282
let config = createCASignedTLSConfig()
8383
testHelloEndToEndInternal(tlsParams: TLSParams(config: config, selfsigned: false))
8484
}
8585

86-
func testHelloEndToEndSelfSignedSecure() {
86+
func testHelloEndToEndTLSwithSelfSigned() {
8787
let config = createSelfSignedTLSConfig()
8888
testHelloEndToEndInternal(tlsParams: TLSParams(config: config, selfsigned: true))
8989
}
@@ -144,7 +144,7 @@ class TLSServerTests: XCTestCase {
144144
}
145145
}
146146

147-
func testSimpleHelloEndToEndCASecure() {
147+
func testSimpleHelloEndToEndTLSwithCA() {
148148
let config = createCASignedTLSConfig()
149149
let receivedExpectation = self.expectation(description: "Received web response \(#function)")
150150
let session: URLSession
@@ -188,7 +188,7 @@ class TLSServerTests: XCTestCase {
188188
}
189189
}
190190

191-
func testRequestEchoEndToEndCASecure() {
191+
func testRequestEchoEndToEndTLSwithCA() {
192192
let config = createCASignedTLSConfig()
193193
let receivedExpectation = self.expectation(description: "Received web response \(#function)")
194194
let session: URLSession
@@ -227,7 +227,7 @@ class TLSServerTests: XCTestCase {
227227
}
228228
}
229229

230-
func testRequestKeepAliveEchoEndToEndCASecure() {
230+
func testRequestKeepAliveEchoEndToEndTLSwithCA() {
231231
let config = createCASignedTLSConfig()
232232
let receivedExpectation1 = self.expectation(description: "Received web response 1: \(#function)")
233233
let receivedExpectation2 = self.expectation(description: "Received web response 2: \(#function)")
@@ -311,7 +311,7 @@ class TLSServerTests: XCTestCase {
311311
}
312312
}
313313

314-
func testMultipleRequestWithoutKeepAliveEchoEndToEndCASecure() {
314+
func testMultipleRequestWithoutKeepAliveEchoEndToEndTLSwithCA() {
315315
let config = createCASignedTLSConfig()
316316
let receivedExpectation1 = self.expectation(description: "Received web response 1: \(#function)")
317317
let receivedExpectation2 = self.expectation(description: "Received web response 2: \(#function)")
@@ -406,7 +406,7 @@ class TLSServerTests: XCTestCase {
406406
}
407407
}
408408

409-
func testRequestLargeEchoEndToEndCASecure() {
409+
func testRequestLargeEchoEndToEndTLSwithCA() {
410410
let config = createCASignedTLSConfig()
411411
let receivedExpectation = self.expectation(description: "Received web response \(#function)")
412412
let session: URLSession
@@ -466,7 +466,7 @@ class TLSServerTests: XCTestCase {
466466
}
467467
}
468468

469-
func testRequestLargePostHelloWorldCASecure() {
469+
func testRequestLargePostHelloWorldTLSwithCA() {
470470
let config = createCASignedTLSConfig()
471471
let receivedExpectation = self.expectation(description: "Received web response \(#function)")
472472
let session: URLSession
@@ -566,14 +566,14 @@ class TLSServerTests: XCTestCase {
566566
}
567567

568568
static var allTests = [
569-
("testOkEndToEndCASecure", testOkEndToEndCASecure),
570-
("testHelloEndToEndCASecure", testHelloEndToEndCASecure),
571-
("testSimpleHelloEndToEndCASecure", testSimpleHelloEndToEndCASecure),
572-
("testRequestEchoEndToEndCASecure", testRequestEchoEndToEndCASecure),
573-
("testRequestKeepAliveEchoEndToEndCASecure", testRequestKeepAliveEchoEndToEndCASecure),
574-
("testRequestLargeEchoEndToEndCASecure", testRequestLargeEchoEndToEndCASecure),
575-
("testMultipleRequestWithoutKeepAliveEchoEndToEndCASecure", testMultipleRequestWithoutKeepAliveEchoEndToEndCASecure),
576-
("testRequestLargePostHelloWorldCASecure", testRequestLargePostHelloWorldCASecure),
569+
("testOkEndToEndTLSwithCA", testOkEndToEndTLSwithCA),
570+
("testHelloEndToEndTLSwithCA", testHelloEndToEndTLSwithCA),
571+
("testSimpleHelloEndToEndTLSwithCA", testSimpleHelloEndToEndTLSwithCA),
572+
("testRequestEchoEndToEndTLSwithCA", testRequestEchoEndToEndTLSwithCA),
573+
("testRequestKeepAliveEchoEndToEndTLSwithCA", testRequestKeepAliveEchoEndToEndTLSwithCA),
574+
("testRequestLargeEchoEndToEndTLSwithCA", testRequestLargeEchoEndToEndTLSwithCA),
575+
("testMultipleRequestWithoutKeepAliveEchoEndToEndTLSwithCA", testMultipleRequestWithoutKeepAliveEchoEndToEndTLSwithCA),
576+
("testRequestLargePostHelloWorldTLSwithCA", testRequestLargePostHelloWorldTLSwithCA),
577577
]
578578
}
579579

0 commit comments

Comments
 (0)