aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit
Commit message (Collapse)AuthorAge
...
* Add Python support for server SSL cert reloadingGravatar Giang Nguyen2017-11-20
| | | | | | | | | | | | | | 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).
* "resopnse" typo correctionGravatar Nathaniel Manista2017-09-28
|
* Tweak Python sanity testGravatar Nathaniel Manista2017-09-16
| | | | | | | | | | | | | | | | | | | | - 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.
* Add more Cython-layer testsGravatar Nathaniel Manista2017-09-11
| | | | | | 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. :-)
* fix remaining license noticesGravatar Jan Tattermusch2017-06-08
|
* auto-fix most of licensesGravatar Jan Tattermusch2017-06-08
|
* Merge remote-tracking branch 'upstream/v1.3.x' into master_1.3.x_upmergeGravatar murgatroid992017-05-25
|\
| * Reconnect disconnected channels automaticallyGravatar Ken Payson2017-05-22
| |
* | Expose Auth Context in PythonGravatar Ken Payson2017-05-11
|/
* Add max_requests argument to serverGravatar Ken Payson2017-03-17
| | | | If the server is already serving max requests, return RESOURCE_EXHAUSTED
* Merge pull request #9938 from kpayson64/increase_epsilonGravatar kpayson642017-03-01
|\ | | | | Increase epsilon in thread cleanup test
| * Increase epsilon in thread cleanup testGravatar kpayson642017-03-01
| |
* | Add missing unittest.main callGravatar Nathaniel Manista2017-02-28
| | | | | | | | This should have been included in 48226a2f1f14b555505e39c322141e74aed9.
* | User-Agent "Python-gRPC-" → "grpc-python/"Gravatar Nathaniel Manista2017-02-07
| | | | | | | | | | This brings gRPC Python into conformance with the recommendation in https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md.
* | Ran Yapf code, pinned versionGravatar Ken Payson2017-02-06
| |
| * Re-run yapf code, and pin versionGravatar Ken Payson2017-02-06
| |
* | Run yapf_code on v1.1.xGravatar murgatroid992017-01-31
| |
| * ran yapfGravatar David Garcia Quintas2017-01-30
|/
* Merge pull request #9127 from ↵Gravatar Masood Malekghassemi2017-01-23
|\ | | | | | | | | 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
| * Run yapf over Python codeGravatar Masood Malekghassemi2017-01-23
| |
* | Merge pull request #9422 from ↵Gravatar Masood Malekghassemi2017-01-23
|\ \ | |/ |/| | | | | soltanmm-google/as-filthy-rich-as-our-cabinet-secretaries Add __richcmp__ to cygrpc.Timespec
* | Merge pull request #9420 from nathanielmanistaatgoogle/time_remainingGravatar Nathaniel Manista2017-01-20
|\ \ | | | | | | Fix grpc._server._Context.time_remaining.
| | * Add __richcmp__ to cygrpc.TimespecGravatar Masood Malekghassemi2017-01-20
| |/ |/|
| * Fix grpc._server._Context.time_remainingGravatar Nathaniel Manista2017-01-20
| | | | | | | | A weak test is included; proper test coverage will come later.
* | Pass an iterator rather than an iterableGravatar Nathaniel Manista2017-01-17
|/ | | | | This should have been included in dd52a31337616fe935f79debfe5d56c6d73a but was missed because it falsely passes almost all of the time.
* Run Python formattingGravatar Masood Malekghassemi2017-01-17
|
* v1.0.x → master upmergeGravatar Nathaniel Manista2017-01-06
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Add _invocation_defects_test.InvocationDefectsTestGravatar siddharthshukla2016-12-22
| | | | | | | | | | Added tests for detecting invocation time defects arising out of the runtime.
| * Replace Python unit test iterables by iteratorsGravatar siddharthshukla2016-12-20
| | | | | | | | | | Cast iterables into iterators for stream based compression, empty message, and metadata tests.
| * Drop use of Exception.message in metadata testGravatar Nathaniel Manista2016-12-17
| | | | | | | | | | Apparently Exception.message was introduced in Python 2.5 and deprecated almost immediately afterward in Python 2.6.
* | v1.0.x → master upmergeGravatar Nathaniel Manista2016-12-16
|\| | | | | | | | | | | | | | | | | | | 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
| * Merge pull request #8995 from ncteisen/python_call_batchGravatar Noah Eisen2016-12-15
| |\ | | | | | | Add check on return value from start_client_batch
| | * Add check on return value from start_client_batchGravatar ncteisen2016-12-15
| | |
* | | Merge pull request #9006 from kpayson64/revert_bizarre_apiGravatar kpayson642016-12-13
|\ \ \ | | | | | | | | Revert "Add configurable exit grace periods and shutdown handlers"
| | * | Style fix: pass keyword arguments by keywordGravatar Nathaniel Manista2016-12-13
| | | |
| | * | Use LONG_TIMEOUT for calls that do not time outGravatar Nathaniel Manista2016-12-13
| | |/
* | | Add ServiceRpcHandler to exported namesGravatar Ken Payson2016-12-09
| | |
| * | Revert "Add configurable exit grace periods and shutdown handlers"Gravatar Ken Payson2016-12-08
|/ / | | | | | | This reverts commit 3045a379aa76ce9ee930f427daa4ee799b0162aa.
* | Add configurable exit grace periods and shutdown handlersGravatar Ken Payson2016-12-01
| | | | | | | | | | | | | | | | 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.
* | Explicitly stop the server on tear-downGravatar Masood Malekghassemi2016-11-03
| |
* | Change channel tests to use public APIGravatar Ken Payson2016-10-18
| | | | | | | | This allows for testing other implementations of grpc.Server.
* | Allow pointer channel args pythonGravatar Ken Payson2016-10-13
| |
* | Add parameter for server optionsGravatar Ken Payson2016-09-19
| |
* | remove skipIf from TypeSmokeTest (issue 7672)Gravatar siddharthshukla2016-08-23
| | | | | | | | | | | | | | 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
* | Merge pull request #7668 from thunderboltsid/skip-test-for-pypyGravatar kpayson642016-08-15
|\ \ | | | | | | skip test run if pypy
| * | skip test run if running with pypyGravatar siddharthshukla2016-08-09
| | | | | | | | | | | | | | | don't run cygrpc_test.TypeSmokeTest.testCallCredentialsFromPluginUpdown if the interpreter is PyPy
* | | Fix the ThreadPoolExecutor: max_workers can't be 0Gravatar siddharthshukla2016-08-03
|/ / | | | | | | | | | | 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.
* | Merge v1.0.x into masterGravatar murgatroid992016-07-22
|\|
| * Fix cygrpc testGravatar Ken Payson2016-07-21
| |
| * Fixed name syntax errorGravatar Ken Payson2016-07-18
| |