Commit Graph

22 Commits

Author SHA1 Message Date
Nathaniel Manista c75ae78b08 Add more Cython-layer tests
I wrote these in the course of a bug hunt. I haven't yet caught and
fixed the bug, but that's no reason not to check in perfectly good
tests. :-)
2017-09-11 19:21:34 +00:00
Nathaniel Manista 7c85caeaa8 gRPC Python test infrastructure
(The server-related third part of it.)
2017-09-05 01:01:20 +00:00
Nathaniel Manista 2010985ab2 gRPC Python test infrastructure
(The channel-related second part of it.)
2017-08-03 22:38:40 +00:00
Nathaniel Manista 69b7231776 gRPC Python test infrastructure
(The time-related first part of it, anyway.)
2017-07-25 18:19:35 +00:00
murgatroid99 c18b9069cd Merge remote-tracking branch 'upstream/v1.3.x' into master_1.3.x_upmerge 2017-05-25 15:13:27 -07:00
Ken Payson 8f7bc54ff2 Reconnect disconnected channels automatically 2017-05-22 10:07:25 -07:00
Ken Payson 3ca8134514 Expose Auth Context in Python 2017-05-11 11:01:57 -07:00
Ken Payson 39a5932097 Add max_requests argument to server
If the server is already serving max requests, return RESOURCE_EXHAUSTED
2017-03-17 10:38:50 -07:00
Nathaniel Manista c6a0606080 v1.0.x → master upmerge
Manual resolution:

- New test added in src/python/grpcio_test/tests/tests.json

- Timeout-related edits resolved in tools/run_tests/run_tests.py

Manual changes:

- Pass request iterator rather than request sequence in
  _reflection_servicer_test.py
2017-01-06 16:06:26 +00:00
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.
2016-12-29 18:41:31 +00:00
siddharthshukla 48226a2f1f Add _invocation_defects_test.InvocationDefectsTest
Added tests for detecting invocation time defects arising out of the
runtime.
2016-12-22 02:50:12 +01:00
siddharthshukla c336268a40 Fix invalid tests.json
Add a comma delimiter for "_invalid_metadata_test.InvalidMetadataTest".
2016-12-17 03:49:06 +01:00
Nathaniel Manista 8f7b0b48bf v1.0.x → master upmerge
Manual changes:

 - Fixed use of Exception.message in _invalid_metadata_test.py

 - Fixed merge of one_failed_as_unavailable in rpc_server_spec.rb

 - Added "set -e" to generate_build_additions.sh
2016-12-16 23:48:52 +00:00
ncteisen 61b8c89206 Add check on return value from start_client_batch 2016-12-15 10:07:40 -08:00
Ken Payson 83decd64e0 Revert "Add configurable exit grace periods and shutdown handlers"
This reverts commit 3045a379aa.
2016-12-08 12:14:59 -08:00
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).
2016-12-07 14:42:31 -08:00
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.
2016-12-01 09:38:50 -08:00
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.
2016-10-28 14:53:10 -07:00
Masood Malekghassemi aff6936cf7 Partially implement gRPC Python server reflection
Some features relating to proto2 extension querying are missing due to
missing upstream features required to support them (see
https://github.com/google/protobuf/issues/2248).
2016-10-20 12:47:06 -07:00
Ken Payson 63d8af2b00 Add parameter for server options 2016-09-19 14:16:24 -07:00
Nathaniel Manista 22869a00fd Composition of arbitrarily many CallCredentials 2016-07-07 21:10:56 +00:00
Masood Malekghassemi 1ff429da2a Organize Python tests to use grpcio-tools directly
Moves all tests into a separate package. This does not change existing
supported means of running tests (e.g. through run_tests.py).
2016-07-01 10:18:45 -07:00