Noah Eisen
da22274401
Add sleep(1) to Python negative http2 client
...
client now conforms to spec. See
https://github.com/grpc/grpc/blob/master/doc/negative-http2-interop-test-descriptions.md
8 years ago
Nathaniel Manista
fc39593a08
Add missing unittest.main call
...
This should have been included in 48226a2f1f
.
8 years ago
Ken Payson
fd6cc7de7b
Bump version to v1.1.3
8 years ago
Ken Payson
6193f23f94
Use unique namespace for each python protoc test
...
Using the same namespace results in errors when using the c-extension
version of protobuf due to name collisions
8 years ago
Ken Payson
dbf571ea07
Use unique namespace for each python protoc test
...
Using the same namespace results in errors when using the c-extension
version of protobuf due to name collisions
8 years ago
thinkerou
2b43481ff3
fix undefined name
8 years ago
Paul Marks
3a5bba0a20
Connect to "localhost" from interop clients.
...
This is for compatibility with IPv6-only environments; see the Google
bug b/32531998.
Note that InteropClient.cs and http2_client.cc don't appear to be tested
by our internal branch, but I've included them for consistency.
8 years ago
Nathaniel Manista
9e61e08065
User-Agent "Python-gRPC-" → "grpc-python/"
...
This brings gRPC Python into conformance with the recommendation in
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md .
8 years ago
murgatroid99
2b3e12ceee
Update version to 1.1.2
8 years ago
Ken Payson
0f5e3a87c2
Ran Yapf code, pinned version
8 years ago
Ken Payson
2fa5f2f978
Re-run yapf code, and pin version
8 years ago
murgatroid99
e15b5a42af
Bump version to 1.1.1
8 years ago
murgatroid99
ba7c059c64
Run yapf_code on v1.1.x
8 years ago
Craig Tiller
5cad46e218
Bump master version numbers
8 years ago
Nicolas "Pixel" Noble
4dcb7862bf
Flagging version 1.1.0.
8 years ago
David Garcia Quintas
4a1fa69d2d
ran yapf
8 years ago
Nicolas "Pixel" Noble
da83b376eb
Changing versions from -dev to -pre1 on the release branch.
8 years ago
Masood Malekghassemi
6b890d1dd3
Run yapf over Python code
8 years ago
Masood Malekghassemi
a66dad5db6
Add __richcmp__ to cygrpc.Timespec
8 years ago
Nathaniel Manista
7d561a6328
Fix grpc._server._Context.time_remaining
...
A weak test is included; proper test coverage will come later.
8 years ago
ncteisen
af2c01e73e
Expect INTERNAL in Python negative interop client
...
The test now expects to receive StatusCode.INTERNAL when it receives a
RST_STREAM from the server in order to comply with
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
Also added wait for ready behavior on the client channel.
8 years ago
Nathaniel Manista
5aa2bcfd4d
Pass an iterator rather than an iterable
...
This should have been included in dd52a31337
but was missed because it falsely passes almost all of the time.
8 years ago
Masood Malekghassemi
cc793703bf
Run Python formatting
8 years ago
ncteisen
d70c8bb871
Implement wait-for-ready behavior in Python stress and qps client
...
The clients now block until the channel is in the READY state. This
fixes some test flakiness issues we have had.
8 years ago
Nathaniel Manista
2fab0e78b0
Rename interop-as-a-unit-test "intraop"
...
It's been confusing that these tests have been called "interop" but
are not actually tests of interoperation.
8 years ago
siddharthshukla
48226a2f1f
Add _invocation_defects_test.InvocationDefectsTest
...
Added tests for detecting invocation time defects arising out of the
runtime.
8 years ago
siddharthshukla
dd52a31337
Replace Python unit test iterables by iterators
...
Cast iterables into iterators for stream based compression, empty
message, and metadata tests.
8 years ago
ncteisen
02a7d4272a
Add python client to test negative http2 conditions
...
Documentation for the new tests can be found https://github.com/grpc/grpc/blob/master/doc/negative-http2-interop-test-descriptions.md
8 years ago
siddharthshukla
c336268a40
Fix invalid tests.json
...
Add a comma delimiter for "_invalid_metadata_test.InvalidMetadataTest".
8 years ago
Nathaniel Manista
6aedd44fb6
Drop use of Exception.message in metadata test
...
Apparently Exception.message was introduced in Python 2.5 and
deprecated almost immediately afterward in Python 2.6.
9 years ago
ncteisen
61b8c89206
Add check on return value from start_client_batch
9 years ago
Masood Malekghassemi
9fb054a537
Upversion Python
9 years ago
Nathaniel Manista
1de3914d69
Style fix: pass keyword arguments by keyword
9 years ago
Nathaniel Manista
91764921bc
Use LONG_TIMEOUT for calls that do not time out
9 years ago
Masood Malekghassemi
e136c1a773
Up-version Python
9 years ago
Masood Malekghassemi
7ba3527ffe
Un-namespace Python packages
...
Setuptools was updated and our hacky namespace-package-chickens came
back to roost. This removes the unsupported namespace package hacks.
9 years ago
Masood Malekghassemi
fb261bf748
Un-namespace Python packages
...
Setuptools was updated and our hacky namespace-package-chickens came
back to roost. This removes the unsupported namespace package hacks.
9 years ago
Nathaniel Manista
e1fd78f110
Drop unnecessary sleep in interop test
9 years ago
Nathaniel Manista
8b223e2986
Correct Python cancel_after_begin interop test
...
It was a mistake that requests might be sent; the test specification
calls for no requests to be sent. It was a mistake that the response
future's cancelled() method was called; the cancelled() method returns
something more like "was this object's cancel() method called earlier?"
than "did the RPC terminate with status code CANCELLED?". Since it's
something that we'd well enough like to work I've retained the
cancelled() call with a different failure message.
9 years ago
Ken Payson
65feb6ae3d
Add ServiceRpcHandler to exported names
9 years ago
Masood Malekghassemi
6ba93f2612
Up-version Python for backports
9 years ago
Ken Payson
83decd64e0
Revert "Add configurable exit grace periods and shutdown handlers"
...
This reverts commit 3045a379aa
.
9 years ago
Masood Malekghassemi
53360f2d1c
Backport Python features to 1.0.x
...
Backports per-object grpc_init/deinit and separated-file grpc protoc
codegen (#7538 , #8246 , #8920 ).
9 years ago
Masood Malekghassemi
561dce4525
Switch to command-arg for Python split-codegen
...
Almost fixes #8753 (which still needs a test).
9 years ago
Ken Payson
3045a379aa
Add configurable exit grace periods and shutdown handlers
...
The server cleanup method is untested.
The join() function that exposes it is only called by the internals of threading.py, and we don't hold a reference to the server thread to explicitly join() it, and I'm not sure we should add a reference just for this purpose.
Moreover, the threading.py only calls join(None), the code path in question isn't even exercised by the internals of threading.py. Its just there to make sure we properly follow the join(timeout) semantics.
9 years ago
Noah Eisen
24804d25b4
Add new flags to Python stress client
...
Add use_tls, use_test_ca, and server_host_override flags to Python
stress client. These are needed to run the stress client against a local
server that is using tls.
9 years ago
Noah Eisen
91f24b9ccf
Add default arguments to python interop client
9 years ago
Masood Malekghassemi
d6ddb0e37c
Explicitly stop the server on tear-down
9 years ago
Masood Malekghassemi
d953959e2b
Enable split code generation
...
To support magical internal build processes, the pb2 files need to be
split into pure-proto and gRPC parts. This performs that split and
further fixes bad module names in the test harness that interfered with
the intended test implementation.
An unfortunate side effect, due to limitations of protoc and holdover
behavior we must support in major version 1.x, is that trash files are
generated in split generation. This shouldn't be a problem in normal
protoc plugin use.
9 years ago
Masood Malekghassemi
81cdf1e34e
Fix Python tests' module loading behavior
9 years ago