diff options
| author | Christian Hopps <chopps@labn.net> | 2025-02-22 14:09:38 +0000 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2025-02-22 20:07:56 +0000 | 
| commit | 4247bc5693d31be529d9730de3366ba4cb659347 (patch) | |
| tree | 813479fa20288d59a4055dd01b59a91dd2f305a7 | |
| parent | 720be891ccaded785f221da68db656faa629b19a (diff) | |
tests: add unit-test for choice/case node queries
Signed-off-by: Christian Hopps <chopps@labn.net>
(cherry picked from commit 73df7da40a107eab52a6819e6325d950ba569220)
| -rw-r--r-- | tests/lib/northbound/test_oper_data.in | 4 | ||||
| -rw-r--r-- | tests/lib/northbound/test_oper_data.refout | 30 | 
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/lib/northbound/test_oper_data.in b/tests/lib/northbound/test_oper_data.in index 0053148953..94fcdc1e1c 100644 --- a/tests/lib/northbound/test_oper_data.in +++ b/tests/lib/northbound/test_oper_data.in @@ -2,4 +2,8 @@ show yang operational-data /frr-test-module:frr-test-module  show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[2]  show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[3]/interface  show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[10] +show yang operational-data /frr-test-module:frr-test-module/c1value +show yang operational-data /frr-test-module:frr-test-module/c2cont +show yang operational-data /frr-test-module:frr-test-module/c2cont/ +show yang operational-data /frr-test-module:frr-test-module/c2cont/c2value  test rpc diff --git a/tests/lib/northbound/test_oper_data.refout b/tests/lib/northbound/test_oper_data.refout index 2536e0306b..57061d0371 100644 --- a/tests/lib/northbound/test_oper_data.refout +++ b/tests/lib/northbound/test_oper_data.refout @@ -174,6 +174,36 @@ test# show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name=  }
  test# show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[10]  {}
 +test# show yang operational-data /frr-test-module:frr-test-module/c1value +{ +  "frr-test-module:frr-test-module": { +    "c1value": 21 +  } +} +test# show yang operational-data /frr-test-module:frr-test-module/c2cont +{ +  "frr-test-module:frr-test-module": { +    "c2cont": { +      "c2value": 2868969987 +    } +  } +} +test# show yang operational-data /frr-test-module:frr-test-module/c2cont/ +{ +  "frr-test-module:frr-test-module": { +    "c2cont": { +      "c2value": 2868969987 +    } +  } +} +test# show yang operational-data /frr-test-module:frr-test-module/c2cont/c2value +{ +  "frr-test-module:frr-test-module": { +    "c2cont": { +      "c2value": 2868969987 +    } +  } +}  test# test rpc  vrf testname data testdata  test#   | 
