Comments (5)
Hi @mztnnrt. Thank you for your report.
Currently, runn does not support the special behavior of buf.
Therefore import "buf/validate/validate.proto";
is treated the same as import "shared/shared.proto";
In other words, the solution is to create a buf/validate
directory in the import path and put validate.proto flie there.
(I also use buf, so if this problem can be solved, it is an issue I would like to solve.)
from runn.
Thanks for your reply ! we are helpful and glad to know the current status. 🙏
as you say, we noticed that there is the solution that import from local.
Already we tried based on your comment, it's work runn testing using validate.proto.
Thanks for your advice and reply, you can closed this issue anytime.
Note
maybe it's a little different from the issue in runn, but I'll write the solution about above.
we hope it helps someone.
approach we did
Step 1.
Remove deps buf.build/bufbuild/protovalidate
from buf.yaml
and run $ buf mod update
Step 2.
Pulling validate.proto etc, using buf export command.
dir_located_buf_yaml = ./proto
buf export buf.build/bufbuild/protovalidate --path buf/validate --output $dir_located_buf_yaml
Step 3.
Add import "buf/validate/validate.proto";
into proto file.
Step 4.
runn run ./e2e/backend/grpc.yaml --grpc-no-tls --grpc-import-path ./proto --grpc-proto ./proto/pingpb/service.proto
1 scenario, 0 skipped, 0 failures
buf generate, runn test, validate message work correctly our environment, thanks.
from runn.
@mztnnrt
Hi.
We now support the Buf Schema Registry in v0.105.1.
You can use --grpc-buf-lock path/to/buf.lock
to resolve buf/validate/validate.proto.
from runn.
Hi @k1LoW
Amazing ! We appreciate for your work !
Currently we tried --grpc-buf-lock
flag, and working correctly 🙌
Thanks for it, we could remove the validate.proto
which is pulled by manually, and we no longer need to manage.
Thanks so much ! 🙏
from runn.
Hi @mztnnrt.
Since V0.106.0, in many cases this can be resolved by simply specifying --grpc-buf-dir
.
runn run ./e2e/backend/grpc.yaml --grpc-no-tls --grpc-buf-dir ./proto
Try it out 👍
from runn.
Related Issues (20)
- concurrency: option seems not working HOT 2
- 🐛 bug: Error messages are not displayed correctly HOT 1
- [Feature request] Add diff output when compare() returns false HOT 3
- How to specify an absolute path to load JSON file HOT 5
- Including string literal `{{ ... }}` in HTTP request body HOT 3
- Encountering Strange Behavior when upgrading runn HOT 4
- SQL SELECT statements with comments cannot be executed in db runner HOT 1
- pb33f/libopenapi does not support nullable attribute HOT 6
- OpenAPI validation fails for range of response codes (4XX, 5XX, ...) HOT 1
- OpenAPI validation fails on Multiple methods defined on the same path HOT 9
- fatal error: concurrent map writes HOT 3
- Could not continue execute other cases after failure case HOT 6
- How to use .env value in scenario.yaml HOT 3
- Panic occurs while validating OpenAPI response HOT 1
- Include runner ignores values after newline in variable HOT 1
- [Feature request] Time instance creation built-in functions HOT 3
- Unable to Use `vars` in `runners.endpoint` HOT 1
- [Feature request] Allow negative filtering by labels HOT 2
- [Feature Request] Allow passing enviroment variables by file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runn.