gnmi_sample_mode_test - bstoll/featureprofiles GitHub Wiki
Test to validate basic gNMI streaming telemetry works with SAMPLE mode.
- 
Create a new gNMI Subscription to Interface description
stateleaf inSAMPLEmode. with a 10 second interval - 
Configure Port-1 with description
DUT Port 1. - 
Verify correct description is streamed.
 - 
Update Port-1 description to
DUT Port 1 - Updated. - 
Verify correct description is streamed.
 
- 
Create a new gNMI Subscription to Interface description
stateleaf inSAMPLEmode with a 10 second interval. - 
Configure Port-1 with description
DUT Port 1. - 
Flap port 1 interface and wait for it to be UP.
 - 
Collect all the samples streamed and validate no invalid values were streamed during the flap.
 
- 
Create a new gNMI Subscription to Default Network Instance
statecontainer inSAMPLEmode with a 10 second interval. - 
Configure ISIS on Port 1 in Default Network Instance.
 - 
Verify that ISIS telemetry is streamed within the next 5 samples.
 
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(OCPATHS): Add paths
paths:
rpcs:
  gnmi:
    gNMI.Subscribe:
      SAMPLE: true