Skip to content
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

Make key paths work regardless of working directory #473

Merged
merged 3 commits into from
Mar 24, 2017

Conversation

RJPercival
Copy link
Contributor

RelativeToPackage(path) will convert path to an absolute path. This means the key files can be found regardless of the location of test.

# Conflicts:
#	storage/testonly/admin_storage_tester.go
@RJPercival RJPercival self-assigned this Mar 24, 2017
Copy link
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing a license header, but other than that LGTM.

@@ -25,6 +25,7 @@ import (
"github.com/google/trillian"
spb "github.com/google/trillian/crypto/sigpb"
"github.com/google/trillian/storage"
testonly2 "github.com/google/trillian/testonly"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could we find a better alias? trilliantestonly, trltestonly, ttestonly, something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -30,7 +30,8 @@ import (
"github.com/google/trillian/extension"
"github.com/google/trillian/server"
"github.com/google/trillian/storage/mysql"
"github.com/google/trillian/storage/testonly"
strtestonly "github.com/google/trillian/storage/testonly"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: str reminds me of string. Maybe stestonly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@RJPercival RJPercival merged commit 6af42bf into google:master Mar 24, 2017
@RJPercival RJPercival deleted the key_paths branch March 24, 2017 16:01
gdbelvin added a commit to gdbelvin/trillian that referenced this pull request Dec 5, 2017
…m 589b12611..55c1d0c85

8cc3a55af Add custom options to allow more control of swagger/openapi output (google#145)
b0be3cdef runtime: fix chunk encoding
82b83c781 protoc-gen-swagger optional SourceCodeInfo
1fd8ba6a5 Fix logic handling primitive wrapper in URL params
b2423da79 runtime: use r.Context() (google#473)
c323909dd Add Handler method to pass in a client (google#454)
ac41185c3 Fallback to JSON name when matching URL parameter. (google#450)
8bec008bd fix 2 typos in Registry.SetPrefix's comment
de5a00fcc Reference Gulp by a more complete path
185dda2d4 Fix build.
824b9a716 Test with Go 1.9.
f2862b476 Memoise calls to fullyQualifiedNameToSwaggerName to speed it up for large registries (google#421)
1a03ca3ba Update DO NOT EDIT template. (google#434)
a5c7982c0 Update Swagger Codegen from 2.1.6 to 2.2.2 (google#415)
d64f5319e ISSUE#405: customize the error return (google#409)
c6f7a5ac6 improve {incoming,outgoing}HeaderMatcher logic (google#408)
2a40dd795 Return if runtime.AnnotateContext gave error (google#403)
47a11d786 jsonpb: update tests to reflect new jsonpb behavior (google#401)
f6f92fcd9 Reference import grpc Status to suppress unused errors. (google#387)
979be44d9 fixes package name override doesn't work (google#277)
b1e4aed16 Skip unreferenced messages in definitions. (google#371)
ca4c8d6af ci: regen with current protoc-gen-go (google#385)
7195ea445 Use status package for error and introduce WithProtoErrorHandler option (google#378)
4539fc575 Add response headers from grpc server (google#374)
597c8c358 support allow_delete_body for protoc-gen-grpc-gateway (google#318)
55d0969c0 Use canonical header form in default header matcher. (google#369)
893772d22 Extend ServeMux to allow user configurable header forwarding.

git-subtree-dir: vendor/github.com/grpc-ecosystem/grpc-gateway
git-subtree-split: 55c1d0c857e5c6cadb0ee292f6cc36621cd5ea8c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants