| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, a secure server is configured with SSL credentials during
initialization, and those credentials will be used for the lifetime of
the server. If the user wants the server to use new credentials, the
user has to restart the server, resulting in server downtime. This
change enables the user to optionally configure the server with a
"certificiate config fetcher," such that on every new client
connection, the server will call the config fetcher before performing
the handshake, allowing the user application to optionally specify new
certificate configuration for the server to use (the fetcher can
return a "no change" and the server continues to use its current
certificate configuration).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Move it out of the "unit" package, as it's not itself a unit test.
- Suffix the test class with "Test" as we do with every other subclass
of unittest.TestCase.
- Add a larger-than-we'll-need-any-time-soon maxDiff so that failures
are fully described.
- Relax the assertion from assertListEqual to assertSequenceEqual
since we don't actually care whether or not the sequences being
compared are list instances.
- Change the order of the assertions arguments to match the
"<expected>, <actual>" convention used in our assert*Equal calls
elsewhere throughout the test corpus.
- Internal implementation simplifications.
|
|
|
|
|
|
| |
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. :-)
|
| |
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
| |
If the server is already serving max requests, return RESOURCE_EXHAUSTED
|
|\
| |
| | |
Increase epsilon in thread cleanup test
|
| | |
|
| |
| |
| |
| | |
This should have been included in 48226a2f1f14b555505e39c322141e74aed9.
|
| |
| |
| |
| |
| | |
This brings gRPC Python into conformance with the recommendation in
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md.
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
soltanmm-google/if-you-rely-only-on-yourself-fewer-things-might-go-wrong-but-fewer-things-might-go-right
Don't leak Py exceptions without calling gRPC core
|
| | |
|
|\ \
| |/
|/|
| |
| | |
soltanmm-google/as-filthy-rich-as-our-cabinet-secretaries
Add __richcmp__ to cygrpc.Timespec
|
|\ \
| | |
| | | |
Fix grpc._server._Context.time_remaining.
|
| |/
|/| |
|
| |
| |
| |
| | |
A weak test is included; proper test coverage will come later.
|
|/
|
|
|
| |
This should have been included in dd52a31337616fe935f79debfe5d56c6d73a
but was missed because it falsely passes almost all of the time.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| | |
Added tests for detecting invocation time defects arising out of the
runtime.
|
| |
| |
| |
| |
| | |
Cast iterables into iterators for stream based compression, empty
message, and metadata tests.
|
| |
| |
| |
| |
| | |
Apparently Exception.message was introduced in Python 2.5 and
deprecated almost immediately afterward in Python 2.6.
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\
| | |
| | | |
Add check on return value from start_client_batch
|
| | | |
|
|\ \ \
| | | |
| | | | |
Revert "Add configurable exit grace periods and shutdown handlers"
|
| | | | |
|
| | |/ |
|
| | | |
|
|/ /
| |
| |
| | |
This reverts commit 3045a379aa76ce9ee930f427daa4ee799b0162aa.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
This allows for testing other implementations of grpc.Server.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
remove skipIfStatement from
TypeSmokeTest.testCallCredentialsFromPluginUpDown since the test passes
on PyPy variants 5.3.0 and newer since these variants have improved
compatibility support for the C-Extensions
|
|\ \
| | |
| | | |
skip test run if pypy
|
| | |
| | |
| | |
| | |
| | | |
don't run cygrpc_test.TypeSmokeTest.testCallCredentialsFromPluginUpdown
if the interpreter is PyPy
|
|/ /
| |
| |
| |
| |
| | |
Add a RecordingThreadPool that inherits from Executor, contains a
ThreadPoolExecutor and has an extra method 'was_used' to indicate if
submit method was ever called i.e. if the thread pool was ever used.
|
|\| |
|
| | |
|
| | |
|