@@ -36,7 +36,7 @@ private import struct Foundation.Data
3636/// Client asserts:
3737/// - call was successful
3838/// - response is non-null
39- @available ( gRPCSwiftExtras 1 . 0 , * )
39+ @available ( gRPCSwiftExtras 2 . 0 , * )
4040struct EmptyUnary : InteroperabilityTest {
4141 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
4242 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -70,7 +70,7 @@ struct EmptyUnary: InteroperabilityTest {
7070/// - response payload body is 314159 bytes in size
7171/// - clients are free to assert that the response payload body contents are zero and comparing
7272/// the entire response message against a golden response
73- @available ( gRPCSwiftExtras 1 . 0 , * )
73+ @available ( gRPCSwiftExtras 2 . 0 , * )
7474struct LargeUnary : InteroperabilityTest {
7575 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
7676 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -146,7 +146,7 @@ struct LargeUnary: InteroperabilityTest {
146146/// - Response payload body is 314159 bytes in size.
147147/// - Clients are free to assert that the response payload body contents are zeros and comparing the
148148/// entire response message against a golden response.
149- @available ( gRPCSwiftExtras 1 . 0 , * )
149+ @available ( gRPCSwiftExtras 2 . 0 , * )
150150class ClientCompressedUnary : InteroperabilityTest {
151151 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
152152 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -256,7 +256,7 @@ class ClientCompressedUnary: InteroperabilityTest {
256256/// - response payload body is 314159 bytes in size in both cases.
257257/// - clients are free to assert that the response payload body contents are zero and comparing the
258258/// entire response message against a golden response
259- @available ( gRPCSwiftExtras 1 . 0 , * )
259+ @available ( gRPCSwiftExtras 2 . 0 , * )
260260class ServerCompressedUnary : InteroperabilityTest {
261261 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
262262 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -346,7 +346,7 @@ class ServerCompressedUnary: InteroperabilityTest {
346346/// Client asserts:
347347/// - call was successful
348348/// - response aggregated_payload_size is 74922
349- @available ( gRPCSwiftExtras 1 . 0 , * )
349+ @available ( gRPCSwiftExtras 2 . 0 , * )
350350struct ClientStreaming : InteroperabilityTest {
351351 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
352352 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -397,7 +397,7 @@ struct ClientStreaming: InteroperabilityTest {
397397/// - response payload bodies are sized (in order): 31415, 9, 2653, 58979
398398/// - clients are free to assert that the response payload body contents are zero and
399399/// comparing the entire response messages against golden responses
400- @available ( gRPCSwiftExtras 1 . 0 , * )
400+ @available ( gRPCSwiftExtras 2 . 0 , * )
401401struct ServerStreaming : InteroperabilityTest {
402402 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
403403 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -473,7 +473,7 @@ struct ServerStreaming: InteroperabilityTest {
473473/// - response payload bodies are sized (in order): 31415, 92653
474474/// - clients are free to assert that the response payload body contents are zero and comparing the
475475/// entire response messages against golden responses
476- @available ( gRPCSwiftExtras 1 . 0 , * )
476+ @available ( gRPCSwiftExtras 2 . 0 , * )
477477class ServerCompressedStreaming : InteroperabilityTest {
478478 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
479479 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -586,7 +586,7 @@ class ServerCompressedStreaming: InteroperabilityTest {
586586/// - response payload bodies are sized (in order): 31415, 9, 2653, 58979
587587/// - clients are free to assert that the response payload body contents are zero and
588588/// comparing the entire response messages against golden responses
589- @available ( gRPCSwiftExtras 1 . 0 , * )
589+ @available ( gRPCSwiftExtras 2 . 0 , * )
590590struct PingPong : InteroperabilityTest {
591591 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
592592 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -653,7 +653,7 @@ struct PingPong: InteroperabilityTest {
653653/// Client asserts:
654654/// - call was successful
655655/// - exactly zero responses
656- @available ( gRPCSwiftExtras 1 . 0 , * )
656+ @available ( gRPCSwiftExtras 2 . 0 , * )
657657struct EmptyStream : InteroperabilityTest {
658658 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
659659 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -709,7 +709,7 @@ struct EmptyStream: InteroperabilityTest {
709709/// received in the initial metadata for calls in Procedure steps 1 and 2.
710710/// - metadata with key "x-grpc-test-echo-trailing-bin" and value 0xababab is received in the
711711/// trailing metadata for calls in Procedure steps 1 and 2.
712- @available ( gRPCSwiftExtras 1 . 0 , * )
712+ @available ( gRPCSwiftExtras 2 . 0 , * )
713713struct CustomMetadata : InteroperabilityTest {
714714 let initialMetadataName = " x-grpc-test-echo-initial "
715715 let initialMetadataValue = " test_initial_metadata_value "
@@ -830,7 +830,7 @@ struct CustomMetadata: InteroperabilityTest {
830830/// Client asserts:
831831/// - received status code is the same as the sent code for both Procedure steps 1 and 2
832832/// - received status message is the same as the sent message for both Procedure steps 1 and 2
833- @available ( gRPCSwiftExtras 1 . 0 , * )
833+ @available ( gRPCSwiftExtras 2 . 0 , * )
834834struct StatusCodeAndMessage : InteroperabilityTest {
835835 let expectedCode = 2
836836 let expectedMessage = " test status message "
@@ -908,7 +908,7 @@ struct StatusCodeAndMessage: InteroperabilityTest {
908908/// - received status code is the same as the sent code for Procedure step 1
909909/// - received status message is the same as the sent message for Procedure step 1, including all
910910/// whitespace characters
911- @available ( gRPCSwiftExtras 1 . 0 , * )
911+ @available ( gRPCSwiftExtras 2 . 0 , * )
912912struct SpecialStatusMessage : InteroperabilityTest {
913913 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
914914 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -951,7 +951,7 @@ struct SpecialStatusMessage: InteroperabilityTest {
951951///
952952/// Client asserts:
953953/// - received status code is 12 (UNIMPLEMENTED)
954- @available ( gRPCSwiftExtras 1 . 0 , * )
954+ @available ( gRPCSwiftExtras 2 . 0 , * )
955955struct UnimplementedMethod : InteroperabilityTest {
956956 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
957957 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -984,7 +984,7 @@ struct UnimplementedMethod: InteroperabilityTest {
984984///
985985/// Client asserts:
986986/// - received status code is 12 (UNIMPLEMENTED)
987- @available ( gRPCSwiftExtras 1 . 0 , * )
987+ @available ( gRPCSwiftExtras 2 . 0 , * )
988988struct UnimplementedService : InteroperabilityTest {
989989 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
990990 let unimplementedServiceClient = Grpc_Testing_UnimplementedService . Client ( wrapping: client)
0 commit comments