From f5528c530053d716a1861de36ae3c86725f16782 Mon Sep 17 00:00:00 2001 From: George Barnett Date: Mon, 17 Mar 2025 12:56:49 +0000 Subject: [PATCH] Remove interop tests using TLS Motivation: The interop using TLS are currently failing because of expired certs. The certs come from upstream where they haven't been updated so we can't simply update them here. There's no loss of coverage here: we have plenty of other tests using TLS. Modifications: - Remove tests which rely on expired certs which we can't update Result: Tests pass --- .../GRPCTests/GRPCInteroperabilityTests.swift | 165 ------------------ 1 file changed, 165 deletions(-) diff --git a/Tests/GRPCTests/GRPCInteroperabilityTests.swift b/Tests/GRPCTests/GRPCInteroperabilityTests.swift index e86c9b452..86c0b0d2e 100644 --- a/Tests/GRPCTests/GRPCInteroperabilityTests.swift +++ b/Tests/GRPCTests/GRPCInteroperabilityTests.swift @@ -170,88 +170,6 @@ class GRPCInsecureInteroperabilityTests: GRPCTestCase { } } -#if canImport(NIOSSL) -class GRPCSecureInteroperabilityTests: GRPCInsecureInteroperabilityTests { - override var useTLS: Bool { return true } - - override func testEmptyUnary() { - super.testEmptyUnary() - } - - override func testCacheableUnary() { - super.testCacheableUnary() - } - - override func testLargeUnary() { - super.testLargeUnary() - } - - override func testClientCompressedUnary() { - super.testClientCompressedUnary() - } - - override func testServerCompressedUnary() { - super.testServerCompressedUnary() - } - - override func testClientStreaming() { - super.testClientStreaming() - } - - override func testClientCompressedStreaming() { - super.testClientCompressedStreaming() - } - - override func testServerStreaming() { - super.testServerStreaming() - } - - override func testServerCompressedStreaming() { - super.testServerCompressedStreaming() - } - - override func testPingPong() { - super.testPingPong() - } - - override func testEmptyStream() { - super.testEmptyStream() - } - - override func testCustomMetadata() { - super.testCustomMetadata() - } - - override func testStatusCodeAndMessage() { - super.testStatusCodeAndMessage() - } - - override func testSpecialStatusAndMessage() { - super.testSpecialStatusAndMessage() - } - - override func testUnimplementedMethod() { - super.testUnimplementedMethod() - } - - override func testUnimplementedService() { - super.testUnimplementedService() - } - - override func testCancelAfterBegin() { - super.testCancelAfterBegin() - } - - override func testCancelAfterFirstResponse() { - super.testCancelAfterFirstResponse() - } - - override func testTimeoutOnSleepingServer() { - super.testTimeoutOnSleepingServer() - } -} -#endif // canImport(NIOSSL) - @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) class GRPCInsecureInteroperabilityAsyncTests: GRPCInsecureInteroperabilityTests { override func makeProvider() -> CallHandlerProvider { @@ -334,86 +252,3 @@ class GRPCInsecureInteroperabilityAsyncTests: GRPCInsecureInteroperabilityTests super.testClientCompressedUnary() } } - -#if canImport(NIOSSL) -@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) -class GRPCSecureInteroperabilityAsyncTests: GRPCInsecureInteroperabilityAsyncTests { - override var useTLS: Bool { return true } - - override func testServerStreaming() { - super.testServerStreaming() - } - - override func testLargeUnary() { - super.testLargeUnary() - } - - override func testServerCompressedUnary() { - super.testServerCompressedUnary() - } - - override func testUnimplementedMethod() { - super.testUnimplementedMethod() - } - - override func testServerCompressedStreaming() { - super.testServerCompressedStreaming() - } - - override func testCustomMetadata() { - super.testCustomMetadata() - } - - override func testCancelAfterBegin() { - super.testCancelAfterBegin() - } - - override func testClientStreaming() { - super.testClientStreaming() - } - - override func testCacheableUnary() { - super.testCacheableUnary() - } - - override func testSpecialStatusAndMessage() { - super.testSpecialStatusAndMessage() - } - - override func testTimeoutOnSleepingServer() { - super.testTimeoutOnSleepingServer() - } - - override func testClientCompressedUnary() { - super.testClientCompressedUnary() - } - - override func testStatusCodeAndMessage() { - super.testStatusCodeAndMessage() - } - - override func testCancelAfterFirstResponse() { - super.testCancelAfterFirstResponse() - } - - override func testPingPong() { - super.testPingPong() - } - - override func testEmptyStream() { - super.testEmptyStream() - } - - override func testEmptyUnary() { - super.testEmptyUnary() - } - - override func testUnimplementedService() { - super.testUnimplementedService() - } - - override func testClientCompressedStreaming() { - super.testClientCompressedStreaming() - } -} -#endif // canImport(NIOSSL)