-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support extended google.api.annotations with response field #39
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7db2996
Add support extended google.api.annotations from github.com/doroginin…
doroginin d340179
Move github.com/utrack/grpc-gateway to vgo replace
doroginin 72a8b77
Make it possible to run specific test from its directory
doroginin 6cfaf3f
Add test for binding with body and response fields
doroginin 63dd1b0
fix ci
doroginin 07deb7e
fix ci (part 2)
doroginin efec52d
fix ci (part 3) + add more test + revert utrack/grpc-gateway import
doroginin 65051b5
add ignore for impl in test binding_with_body_and_response
doroginin d75d732
Move binding_with_body_and_response test to forked github.com/googlea…
doroginin 4f817e7
- Move binding_with_body_and_response test to forked github.com/googl…
doroginin b8b1dad
Add test for repeated fields in GET, now it falls
doroginin 8715831
Add code fixes test with repeated fields in GET
doroginin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
include ../env.mk | ||
|
||
$(shell vgo mod -sync) | ||
$(shell vgo get github.com/googleapis/googleapis) | ||
GOOGLEAPIS_PKG:=$(shell vgo list -m all | grep github.com/googleapis/googleapis | awk '{print ($$4 != "" ? $$4 : $$1)}') | ||
GOOGLEAPIS_VERSION:=$(shell vgo list -m all | grep github.com/googleapis/googleapis | awk '{print ($$5 != "" ? $$5 : $$2)}') | ||
GOOGLEAPIS_PATH:=${FIRST_GOPATH}/src/mod/${GOOGLEAPIS_PKG}@${GOOGLEAPIS_VERSION} | ||
|
||
pwd: | ||
@pwd | ||
|
||
clean: | ||
rm -f ./pb/strings.pb.go | ||
rm -f ./pb/strings.pb.goclay.go | ||
rm -f main | ||
|
||
protoc: protoc-build | ||
protoc --plugin=protoc-gen-goclay=$(GEN_CLAY_BIN) --plugin=protoc-gen-gofast=$(GEN_GOFAST_BIN) -I/usr/local/include:${GOOGLEAPIS_PATH}:. --gofast_out=plugins=grpc:. --goclay_out=impl=true,impl_path=../strings:. pb/strings.proto | ||
|
||
build: | ||
vgo build -o main main.go | ||
|
||
test: pwd clean protoc build | ||
vgo test -v main_test.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module github.com/utrack/clay/integration/binding_with_body_and_response | ||
|
||
replace github.com/grpc-ecosystem/grpc-gateway => github.com/doroginin/grpc-gateway v1.5.0-alpha3 | ||
|
||
replace github.com/utrack/grpc-gateway => github.com/doroginin/grpc-gateway v1.5.0-alpha3 | ||
|
||
replace github.com/googleapis/googleapis => github.com/doroginin/googleapis v0.0.0-20180730132820-50a24711b667 | ||
|
||
replace google.golang.org/genproto => github.com/doroginin/go-genproto v0.0.0-20180730134020-8126e81001e3 | ||
|
||
replace github.com/utrack/clay/v2 => ../.. | ||
|
||
require ( | ||
github.com/go-chi/chi v0.0.0-20171222161133-e83ac2304db3 | ||
github.com/go-openapi/spec v0.0.0-20180415031709-bcff419492ee | ||
github.com/golang/protobuf v1.1.0 | ||
github.com/googleapis/googleapis v0.0.0-20180726215759-201d7be7f9da // indirect | ||
github.com/grpc-ecosystem/grpc-gateway v1.4.1 | ||
github.com/pkg/errors v0.8.0 | ||
github.com/utrack/clay/v2 v2.1.0 | ||
golang.org/x/net v0.0.0-20180629035331-4cb1c02c05b0 | ||
google.golang.org/genproto v0.0.0-20180627194029-ff3583edef7d | ||
google.golang.org/grpc v1.13.0 | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this
protoc-build
in every sub-test - maybe it's better to run them once in the core Makefile.And if you want to run a single test individually - just prepare your environment manually running
make protoc-build
and then runmake test
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or we could do even better and make 2 targets.
test
would explicitly runprotoc-build
- you would use it in manuall runtest-ci
won't callprotoc-build
- it would be used in the core Makefile to run all tests.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed verbally