Skip to content

Commit

Permalink
Fix incorrect char and space
Browse files Browse the repository at this point in the history
Signed-off-by: Suvarna Meenakshi <[email protected]>
  • Loading branch information
SuvarnaMeenakshi committed Jan 30, 2025
1 parent 697005d commit 5d7586d
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions gnmi_server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1486,36 +1486,36 @@ func runGnmiTestGet(t *testing.T, namespace string) {
valTest: true,
wantRetCode: codes.OK,
wantRespVal: []byte(`{"test_field": "test_value"}`),
}, {$
desc: "get COUNTERS:" + validFabricPortName,$
pathTarget: "COUNTERS_DB",$
textPbPath: `$
elem: <name: "COUNTERS" >$
elem: <name: "` + validFabricPortName + `">$
`,$
wantRetCode: codes.OK,$
wantRespVal: countersFabricPort0Byte,$
valTest: true,$
}, {$
desc: "get COUNTERS:PORT*",$
pathTarget: "COUNTERS_DB",$
textPbPath: `$
elem: <name: "COUNTERS" >$
elem: <name: "PORT*" >$
`,$
wantRetCode: codes.OK,$
wantRespVal: countersFabricPortWildcardByte,$
valTest: true,$
}, {$
desc: "Invalid fabric port key get" + invalidFabricPortName,$
pathTarget: "COUNTERS_DB",$
textPbPath: `$
elem: <name: "COUNTERS" >$
elem: <name: "` + invalidFabricPortName + `">$
`,$
wantRetCode: codes.NotFound,$
valTest: true,$
}, {$
}, {
desc: "get COUNTERS:" + validFabricPortName,
pathTarget: "COUNTERS_DB",
textPbPath: `
elem: <name: "COUNTERS" >
elem: <name: "` + validFabricPortName + `">
`,
wantRetCode: codes.OK,
wantRespVal: countersFabricPort0Byte,
valTest: true,
}, {
desc: "get COUNTERS:PORT*",
pathTarget: "COUNTERS_DB",
textPbPath: `
elem: <name: "COUNTERS" >
elem: <name: "PORT*" >
`,
wantRetCode: codes.OK,
wantRespVal: countersFabricPortWildcardByte,
valTest: true,
}, {
desc: "Invalid fabric port key get" + invalidFabricPortName,
pathTarget: "COUNTERS_DB",
textPbPath: `
elem: <name: "COUNTERS" >
elem: <name: "` + invalidFabricPortName + `">
`,
wantRetCode: codes.NotFound,
valTest: true,
}, {
desc: "Invalid DBKey of length 1",
pathTarget: stateDBPath,
textPbPath: ``,
Expand Down

0 comments on commit 5d7586d

Please sign in to comment.