record_payload_truncation - openconfig/featureprofiles GitHub Wiki
Test how large payload is handled.
- Call a method with a payload that will exceed the maximum payload supported by the implementation for
CommandService.{cmd,cmd_args}or`GrpcService.payloads`` or both, such as adding a large number of static routes. If the implementation supports configuration of this limit, it may be configured to artificially reduce the limit for easier testing. - Establish gNSI connection to the DUT.
- Call
gnsi.acctz.v1.Acctz.RecordSubscribewithRecordRequest.timestamp = T1. T1 should be timestamp that covers the above gNMI SET action. - Verify that The appropriate boolean should be set; one of
CommandService.{cmd_istruncated,cmd_args_istruncated}orGrpcService.payload_istruncated. - If an RPC, the contents of the payload field(s) is structured and must remain syntactically parsable.
- Call
The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.
TODO(OCRPC): Record may not be complete
paths:
/network-instances/network-instance/config/description:
/network-instances/network-instance/config/name:
/network-instances/network-instance/config/type:
/network-instances/network-instance/protocols/protocol/config/identifier:
/network-instances/network-instance/protocols/protocol/config/name:
/network-instances/network-instance/protocols/protocol/static-routes/static/config/prefix:
/network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/index:
/network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/next-hop:
rpcs:
gnsi:
acctz.v1.Acctz.RecordSubscribe:vRX