Comments (8)
@mojiiba, could you offer repro instructions or be specific about what you mean by "error details"? There are unit tests that check it is preserving the content of the original error. Is there logic somewhere that is very sensitive to the specific format of the error message?
from ondatra.
yes, there are three test cases that checks the details of error messages. Here is one of them that will fail at line 150.
https://github.com/openconfig/gribigo/blob/d26b0f6d75e4e3939a5766717ae262fc57b03eff/compliance/flush.go#L124
To repro this, you need to run https://github.com/openconfig/featureprofiles/blob/main/feature/gribi/ate_tests/gribigo_compliance_test/gribigo_compliance_test.go
to give you more info the expected error message for this test is:
2022/12/01 22:55:21 http2: decoded hpack field header field ":status" = "200"
2022/12/01 22:55:21 http2: decoded hpack field header field "content-type" = "application/grpc"
2022/12/01 22:55:21 http2: decoded hpack field header field "grpc-status" = "3"
2022/12/01 22:55:21 http2: decoded hpack field header field "grpc-message" = "unspecified network instance"
2022/12/01 22:55:21 http2: decoded hpack field header field "grpc-status-details-bin" = "CAMSHHVuc3BlY2lmaWVkIG5ldHdvcmsgaW5zdGFuY2UaMgosdHlwZS5nb29nbGVhcGlzLmNvbS9ncmliaS5GbHVzaFJlc3BvbnNlRXJyb3ISAggG"
but when this error message is annotated, the details is somehow dropped and causes failure for tests. When I disable the annotation or run the test without ondatra, the test can pass.
from ondatra.
While I'm figuring this out, I will proceed with removing this interceptor for the time being.
from ondatra.
thanks a lot for the prompt action!
from ondatra.
The Ondatra commit just now removes the interceptor entirely until I figure out what's going on. I still want to update featureprofiles to this commit.
from ondatra.
featureprofiles has been upgraded to the latest Ondatra commit with the partial rollback. I'm going to leave this open until I'm done my investigation of what's going on
from ondatra.
thanks a lot!
from ondatra.
The test error annotation feature has been re-enabled with a fix to ensure the grpc error details are not dropped.
from ondatra.
Related Issues (20)
- Data type mismatch error while running scripts : "invalid type ptr in leaflist" HOT 4
- LookupConfig fails test when path does not exist HOT 6
- gnmi.GetAll does not return containers with path complaince issue HOT 3
- gnmi.GetConfig: unmarshalling error because of unexpected leaf HOT 5
- delay issue when validating data with gnmi.GetAll/CollectAll HOT 4
- support needed to get RouteAnyPrefix() leaf and AsPath() leaves for BGP Rib HOT 5
- Misleading grpc logs HOT 2
- No option available to set media type in ATE HOT 3
- issue seen while configuring Level 1 and 2 together in ATE HOT 1
- RT-2.7_ancx: Ixia is not sending isis packets with authentication except for hello HOT 3
- crafting VLAN tagged frames HOT 8
- Request to include openconfig-platform-psu.yang in gnmi HOT 2
- feat: UseGetForConfig for Nokia HOT 2
- bootz oc model HOT 1
- OTG does not support NewConfig API HOT 1
- Ondatra does not support capture HOT 2
- Errors while building and execute Ondatra's unit tests - ondatra 1.19 and 1.21 dependencies (FAIL github.com/openconfig/ondatra [build failed]) HOT 2
- Errors after go generate ./... HOT 2
- go generate ./... and go build ./... errors HOT 2
- Request to add support for attestz 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 ondatra.