aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-06-08 14:31:21 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-06-08 14:31:21 -0700
commit9065c8b1df3a106947eab71db678e2506aa4af5d (patch)
treefc7227649aadd1046f4d9bebdb5dc239f2a08d0e /doc
parent485cf40ab7d68b2624a5ab3be3842444f5835f14 (diff)
more changes after offline chat with ejona
Diffstat (limited to 'doc')
-rw-r--r--doc/interop-test-descriptions.md85
1 files changed, 20 insertions, 65 deletions
diff --git a/doc/interop-test-descriptions.md b/doc/interop-test-descriptions.md
index 6a76acd3a8..63b0022c3f 100644
--- a/doc/interop-test-descriptions.md
+++ b/doc/interop-test-descriptions.md
@@ -90,11 +90,11 @@ Client asserts:
* clients are free to assert that the response payload body contents are zero
and comparing the entire response message against a golden response
-### large_compressed_unary
+### server_compressed_unary
-This test verifies compressed unary calls succeed in sending messages. It
-sends one unary request for every payload type, with and without requesting a
-compressed response from the server.
+This test verifies compressed server-only unary calls succeed in sending
+messages. It sends one unary request for every payload type, with and without
+requesting a compressed response from the server.
In all scenarios, whether compression was actually performed is determined by
the compression bit in the response's message flags.
@@ -103,7 +103,6 @@ the compression bit in the response's message flags.
Server features:
* [UnaryCall][]
* [Compressable Payload][]
-* [Uncompressable Payload][]
Procedure:
1. Client calls UnaryCall with:
@@ -130,26 +129,6 @@ Procedure:
zero and comparing the entire response message against a golden response
- 2. Client calls UnaryCall with:
- ```
- {
- request_compressed_response: bool
- response_type: UNCOMPRESSABLE
- response_size: 314159
- payload:{
- body: 271828 bytes of zeros
- }
- }
- ```
- Client asserts:
- * call was successful
- * response payload type is UNCOMPRESSABLE
- * the response MAY have the compressed message flag set. Some
- implementations will choose to compress the payload even when the output
- size if larger than the input.
- * response payload body is 314159 bytes in size
-
-
### client_streaming
This test verifies that client-only streaming succeeds.
@@ -250,7 +229,6 @@ This test verifies that server-only compressed streaming succeeds.
Server features:
* [StreamingOutputCall][]
* [Compressable Payload][]
-* [Uncompressable Payload][]
Procedure:
@@ -258,46 +236,26 @@ Procedure:
```
{
- request_compressed_response: bool
+ request_compressed_response: true
response_type:COMPRESSABLE
response_parameters:{
- size: 31424
+ size: 31415
}
response_parameters:{
- size: 61632
+ size: 58979
}
}
```
- Note that the `response_parameters` sizes are the sum of the usual streaming
- response sizes (31415, 9, 2653, 58979) taken in successive pairs. This way,
- we only keep a single list of sizes while making sure the individual message
- sizes are large enough to trigger compression in all implementations.
-
- Client asserts:
- * call was successful
- * exactly four responses
- * response payloads are COMPRESSABLE
- * if `request_compressed_response` is false, the response's messages MUST
- NOT have the compressed message flag set.
- * if `request_compressed_response` is true, the response's messages MUST
- have the compressed message flag set.
- * response payload bodies are sized (in order): 31424, 61632
- * clients are free to assert that the response payload body contents are
- zero and comparing the entire response messages against golden responses
-
-
- 2. Client calls StreamingOutputCall with:
-
```
{
- request_compressed_response: bool
- response_type:UNCOMPRESSABLE
+ request_compressed_response: false
+ response_type:COMPRESSABLE
response_parameters:{
- size: 31424
+ size: 31415
}
response_parameters:{
- size: 61632
+ size: 58979
}
}
```
@@ -305,11 +263,15 @@ Procedure:
Client asserts:
* call was successful
* exactly four responses
- * response payloads are UNCOMPRESSABLE
- * the response MAY have the compressed message flag set. Some
- implementations will choose to compress the payload even when the output
- size if larger than the input.
- * response payload bodies are sized (in order): 31424, 61632
+ * response payloads are COMPRESSABLE
+ * if `request_compressed_response` is false, the response's messages MUST
+ NOT have the compressed message flag set.
+ * if `request_compressed_response` is true, the response's messages MUST
+ have the compressed message flag set.
+ * response payload bodies are sized (in order): 31415, 58979
+ * clients are free to assert that the response payload body contents are
+ zero and comparing the entire response messages against golden responses
+
### ping_pong
@@ -910,13 +872,6 @@ When the client requests COMPRESSABLE payload, the response includes a payload
of the size requested containing all zeros and the payload type is
COMPRESSABLE.
-### Uncompressable Payload
-[Uncompressable Payload]: #uncompressable-payload
-
-When the client requests UNCOMPRESSABLE payload, the response includes a payload
-of the size requested containing uncompressable data and the payload type is
-UNCOMPRESSABLE.
-
### Echo Status
[Echo Status]: #echo-status
When the client sends a response_status in the request payload, the server closes