Commit Graph

529 Commits

Author SHA1 Message Date
David Garcia Quintas 6dd49a5c8f Added some methods to context inspector. Also minor tweak to server context IsCancelled() method 2015-07-15 14:58:32 -07:00
David Garcia Quintas e410986635 clang-format'd. 2015-07-15 14:10:48 -07:00
yang-g 8c31ee2751 update according to spec change 2015-07-15 13:36:27 -07:00
yang-g 5bf510bba1 add per_rpc_creds test case in interop test 2015-07-14 10:54:29 -07:00
David Garcia Quintas 8d9f830168 Introduced InteropContextInspector to be able to peek into server contexts during interop testing. 2015-07-13 16:18:19 -07:00
yang-g be5f059219 Add oauth2_auth_token test case in interop test 2015-07-13 11:11:50 -07:00
yang-g 69563b9124 Add timeout interop test case 2015-07-10 15:32:11 -07:00
Yang Gao c1a2c314fb Update the Status API 2015-06-16 10:59:46 -07:00
Masood Malekghassemi 701af6031f Expose gpr_asprintf and gpr_strdup 2015-06-03 15:24:24 -07:00
Xudong Ma a5861f3414 Correct the test request/response size, to be consistent with the test spec:https://github.com/grpc/grpc/blob/master/doc/interop-test-descriptions.md 2015-05-26 15:24:11 -07:00
Yang Gao a89389283f support per call credentials in c++ 2015-05-14 11:51:07 -07:00
Craig Tiller c8667056d5 Merge pull request #1367 from yang-g/interop
Add two scenarios in interop test
2015-04-28 17:09:56 -07:00
Yang Gao 68d615737b Add two scenarios in interop test 2015-04-24 14:42:42 -07:00
Nicolas "Pixel" Noble fd2bf675f7 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	include/grpc++/completion_queue.h
2015-04-24 23:24:44 +02:00
Yang Gao c4b6ffb1b6 Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free. 2015-04-24 13:09:40 -07:00
Nicolas "Pixel" Noble 23be280366 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	src/cpp/client/channel.cc
	vsprojects/vs2010/grpc++.vcxproj
	vsprojects/vs2013/grpc++.vcxproj.filters
2015-04-24 00:38:19 +02:00
Abhishek Kumar 60572d422b Move .proto files up for reuse 2015-04-16 20:45:25 -07:00
Abhishek Kumar 1b3e3cd75b Moving test.proto to an outer directory so others can depend on it. 2015-04-16 20:10:29 -07:00
Nicolas Noble d35b7107f8 Merge pull request #1291 from yang-g/headers
Wrap ParseCommandLineFlags in InitTest
2015-04-16 15:50:58 -07:00
Yang Gao 103837ee6b Wrap ParseCommandLineFlags in InitTest 2015-04-15 15:23:54 -07:00
Yang Gao eaccf90aef Return 1 when test_case is not supported in interop test 2015-04-15 14:05:07 -07:00
Nicolas "Pixel" Noble b7c2035e83 Merge branch 'master' of https://github.com/grpc/grpc into the-purge-2
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
	test/cpp/interop/client.cc
2015-04-11 01:53:09 +02:00
Yang Gao a40020788f Split interop client and server into components 2015-04-09 23:25:21 -07:00
Nicolas "Pixel" Noble 0caebbfcfe Splitting gRPC service class codegen into its own set of files. 2015-04-09 23:08:51 +02:00
Nicolas "Pixel" Noble a05b8b7b25 Removing a few more references to #include <chrono> 2015-04-08 09:07:20 +02:00
Nicolas Noble 89219162dd Refactoring std::chrono out. 2015-04-08 05:42:08 +02:00
vjpai 6130809a8b Work around a compiler limitation caused by inability to properly handle
vectors created from initializer list
2015-03-26 17:12:17 -04:00
Jan Tattermusch 5e36d0d474 Merge pull request #1093 from nicolasnoble/windows
Various Windows fixes.
2015-03-19 10:29:47 -07:00
Yang Gao 1fc046902c sync to head and run clang-format again 2015-03-19 07:23:08 -07:00
Nicolas Noble cfd6073a66 Various Windows fixes.
-) using dupenv_s instead of getenv_s and calling strdup ourselves.
-) few impossible-to-obtain if checks.
-) various signed/unsigned casting.
-) using time_t instead of time32_t
-) checking output of FormatMessage for failures.
-) don't redefine _WIN32_WINNT without undefining it first.
-) fixed msvc's interlocked casting.
-) renamed AddPort to AddListeningPort.
-) added protobuf's third_party includes to search path.
-) added a missing definition for inet_ntop in mingw32.
-) removed useless declarations.
2015-03-19 04:21:22 +01:00
Yang Gao 3c220dfc32 Print out status when it is not ok in interop tests 2015-03-17 11:47:54 -07:00
Yang Gao 6baa9b67ad clang-format c++ code 2015-03-17 10:49:39 -07:00
Yang Gao 7d6b184f57 add a jwt test case for interop test 2015-03-11 14:51:50 -07:00
Yang Gao f859510340 Merge branch 'master' into jwt 2015-03-11 14:31:00 -07:00
Craig Tiller 61691f92c3 Merge github.com:grpc/grpc into credit 2015-03-02 08:51:52 -08:00
Yang Gao 25770b02d6 add jwt token creds test_case 2015-02-27 15:30:58 -08:00
Craig Tiller cf133f41f8 Make it possible to compile with gcc4.6 2015-02-26 14:27:05 -08:00
Craig Tiller 29f1314282 Merge github.com:grpc/grpc into credit 2015-02-26 11:23:01 -08:00
Julien Boeuf 597a4f2273 Verifying the peer name on the X509 Certs correctly.
- The SANs take precedence over the CN.
- The CN is only checked if there are no SANs.
- Fixing the tests as the test cert did not list *.test.google.com in
  the SANs. Will fix the test cert another time...
2015-02-23 16:41:26 -08:00
Craig Tiller 42bc87c097 Update C++ server with new core API
And reflects the C++ API in ServerBuilder.
2015-02-23 09:58:23 -08:00
Craig Tiller 47c83fdaf7 Credentials prototyping
- Remove CredentialsFactory as it's unnecessary
- Effectively make Credentials a channel factory, allowing different credential types to create different channel types - this gives us a hook so that InsecureCredentials can at runtime instantiate a different kind of channel as required - giving us a way of generating an openssl free version of grpc++.
- Server credentials not touched yet, but they'll need to be updated.
2015-02-23 09:58:22 -08:00
Craig Tiller fe8af4e2e9 Rename interop_test.c --> interop_test.cc
We have many assumptions about languages baked into the test system, and we want this test harness to trigger when testing C++ stuff, so it needs to be written in C++.
2015-02-21 07:04:49 -08:00
Michael Lumish 00bdbe64a0 Merge pull request #669 from yang-g/comments
clean up some internal path and names
2015-02-20 14:52:32 -08:00
Craig Tiller 2f3e2ec865 Make interop server respond to sigint
This will allow the test to shut down cleanly, and avoid failing.
2015-02-20 13:07:50 -08:00
Yang Gao bbd67c0499 clean up some internal path and names 2015-02-20 13:04:52 -08:00
Craig Tiller 16a6ea6bc0 Ensure interop tests are run as part of run_tests
I'm honestly a little shocked this wasn't done previously.
2015-02-20 09:08:54 -08:00
Nicolas "Pixel" Noble 7e80efcb3d Making the usage of gflags uniform across distributions. 2015-02-20 03:13:38 +01:00
Nicolas "Pixel" Noble ba6082080c Fixing gflags' include path. 2015-02-20 02:48:03 +01:00
Craig Tiller ce5021b0b9 Add missing new-lines at end of file 2015-02-18 09:25:21 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Craig Tiller f74ec4ee43 Merge github.com:grpc/grpc into copyright 2015-02-18 08:30:14 -08:00
Craig Tiller 347b83c222 Merge github.com:grpc/grpc into copyright
Conflicts:
	src/python/src/__init__.py
	src/python/src/_adapter/__init__.py
	src/python/src/_framework/__init__.py
	src/python/src/_framework/base/__init__.py
	src/python/src/_framework/base/packets/__init__.py
	src/python/src/_framework/common/__init__.py
	src/python/src/_framework/face/__init__.py
	src/python/src/_framework/face/testing/__init__.py
	src/python/src/_framework/foundation/__init__.py
	src/python/src/_junkdrawer/__init__.py
2015-02-17 20:28:40 -08:00
Craig Tiller 5e276e88c4 Merge github.com:grpc/grpc into c++api 2015-02-17 13:33:24 -08:00
Craig Tiller ad1fd3a49e Add proto copyrights 2015-02-16 12:23:04 -08:00
Nathaniel Manista 1d1f952731 The Python interoperability testing server. 2015-02-15 01:21:18 +00:00
Craig Tiller 857680be2c Compile fixes 2015-02-13 15:19:48 -08:00
Craig Tiller f8ac5d846c Fixup callers with new api 2015-02-09 16:24:20 -08:00
Nicolas "Pixel" Noble 3f36f5e316 Few minor fixes.
Fixing a few issues in case you *cough* have a different local implementation of
protobuf, gtest and gflags for some weird reason.
2015-02-06 20:45:54 +01:00
Yang Gao 2b80e6f1a8 format 2015-01-27 15:06:50 -08:00
Yang Gao aec1d0b391 make the flag name shorter 2015-01-27 15:02:14 -08:00
Yang Gao bd18be2f33 add compute engine credentials support 2015-01-27 14:29:19 -08:00
Yang Gao d785904d0a resolve comments 2015-01-27 11:26:56 -08:00
Yang Gao 3bc377c5b8 Let each test case create its own channel. 2015-01-26 10:55:25 -08:00
Yang Gao c38dda4b90 add service_account support into interop client 2015-01-26 00:09:23 -08:00
Yang Gao 94e97ef2c5 sync messages.proto up to date. 2015-01-25 22:33:54 -08:00
Yang Gao dab7095fc5 Make interop server listen on 0.0.0.0. 2015-01-23 16:24:14 -08:00
Nicolas "Pixel" Noble 3d4cba4901 kNumResponseMessages is an int, so i is doing signedness mismatch. 2015-01-22 23:42:15 +01:00
Julien Boeuf 8fbcc4391e Changing the SSL (Server) Credentials API.
- Changed the unsigned char * + size to NULL terminated strings which
  makes sense for the PEM format. I may change TSI later (but the impact
  will hopefully be much more limited).
- Added a way to pass multiple key/cert pairs to servers which is needed
  when hosting more than one domain.
- Removed the C++ SSL credentials tests as we are going to have an
  option to not specify the roots which will then be derived from the
  environment (well-known platform dependent locations and/or
  environment variable).
- Fixed the php build which is the only one added in the run_test.py.
  This change will certainly break node, python and ruby.
2015-01-20 22:18:15 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
yangg 0617057a39 Make interop server buildable on opensource build.
Change on 2015/01/12 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83783816
2015-01-12 14:09:03 -08:00
chenw 6edb547c99 Enable streaming test case for gRPC client in GCE.
Change on 2015/01/08 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83549959
2015-01-09 17:50:09 -08:00
chenw ebb4e6dcc6 Add Flags to override host and enable prod ssl root.
Change on 2014/12/22 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82679415
2014-12-29 17:19:19 -08:00
yangg 59dfc90f57 Client side implementation of creating channel with credentials.
The old test_ssl_channel related code is deleted and the new create channel
call is used for interop tests.
	Change on 2014/12/19 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82540921
2014-12-29 16:59:06 -08:00
chenw 69ca59fa74 Add slow client consumer test case for flow control test.
The client will sleep 500 milliseconds before read next message in reponse streaming.
	Change on 2014/12/16 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82265748
2014-12-16 17:20:09 -08:00
yangg abd90a6c30 Use '\0' instead of '0' in payload as java client actually checks that.
Change on 2014/12/12 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82023559
2014-12-15 14:25:44 -08:00
nnoble 72309c6c5d Getting the generated Makefile to support .proto files.
-) Compiling the proto plugin using the HOSTCC compiler.
-) Set up proper rules to invoke the plugin from protoc.
-) Few various renaming hacks to fully get out of [].
	Change on 2014/12/12 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82000361
2014-12-12 16:24:32 -08:00
temiola 33a2168453 Fixes package prefixes
Fixes how module names for messages with package prefixes are rendered.

- detected while prototyping with beefcake
- fixed on the internal beefcake fork here
[]

This change replicates that fix for the official code generator.

TODO: add a test; what's normal done to test features like this the proto
codebase? Add another test.proto/golden file?
	Change on 2014/12/11 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81916292
2014-12-12 16:05:15 -08:00
chenw a8fd44adf8 Build CPP interop client in Git-on-[] as well as in [].
To build client in Git-on-[]:
# regenerate Makefile
net/grpc/tools/buildgen/generate_projects.sh
# generate .pb.h and .pb.cc
protoc --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=[]-bin/net/grpc/compiler/cpp_plugin  net/grpc/cpp/test/interop/test.proto net/grpc/cpp/test/interop/empty.proto net/grpc/cpp/test/interop/messages.proto
# Complile and link
net/grpc/tools/build_grpc_dev.sh bins/interop_client

To test against GFE/ESF:
# bring up server
[] build net/grpc/testing/interop:server_components_env
[]-bin/net/grpc/testing/interop/server_components_env --manual --rpc_port=25000
# start client
/tmp/grpc-codebase/bins/interop_client --enable_ssl=true --server_port="server ssl port listening port"

To test [] build against GFE/ESF:
[] run net/grpc/cpp:interop_client  --  --enable_ssl=true --server_port="server ssl port listening port"
	Change on 2014/12/10 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81821921
2014-12-11 15:11:44 -08:00