Skip to content

Commit

Permalink
Mani's tet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seiferteric committed Jul 22, 2020
1 parent 4e9843e commit 9e048ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions translib/path_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestGetNodeName(t *testing.T) {
tid: 4, // Negative test case
targetUri: "/openconfig-acl:acl/acl-sets/acl-set[name=Sample][type=ACL_IPV4]/state/descriptXX",
appRootType: reflect.TypeOf(ocbinds.OpenconfigAcl_Acl{}),
want: "rpc error: code = InvalidArgument desc = no match found in *ocbinds.OpenconfigAcl_Acl_AclSets_AclSet_State, for path elem:<name:\"descriptXX",
want: "rpc error: code = InvalidArgument desc = no match found in *ocbinds.OpenconfigAcl_Acl_AclSets_AclSet_State, for path elem:{name:\"descriptXX\"}",
}}

for _, tt := range tests {
Expand Down Expand Up @@ -142,7 +142,7 @@ func TestGetObjectFieldName(t *testing.T) {
tid: 4, // Negative test case
targetUri: "/openconfig-acl:acl/acl-sets/acl-set[name=Sample][type=ACL_IPV4]/state/descriptXX",
appRootType: reflect.TypeOf(ocbinds.OpenconfigAcl_Acl{}),
want: "rpc error: code = InvalidArgument desc = no match found in *ocbinds.OpenconfigAcl_Acl_AclSets_AclSet_State, for path elem:<name:\"descriptXX",
want: "rpc error: code = InvalidArgument desc = no match found in *ocbinds.OpenconfigAcl_Acl_AclSets_AclSet_State, for path elem:{name:\"descriptXX\"}",
}}

for _, tt := range tests {
Expand Down
2 changes: 1 addition & 1 deletion translib/request_binder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func TestUnMarshallUri(t *testing.T) {
opcode: 1,
payload: []byte{},
appRootType: reflect.TypeOf(ocbinds.OpenconfigAcl_Acl{}),
want: "rpc error: code = InvalidArgument desc = no match found in *ocbinds.OpenconfigAcl_Acl_AclSets_AclSet_State, for path elem:<name:\"descriptXX\"",
want: "rpc error: code = InvalidArgument desc = no match found in *ocbinds.OpenconfigAcl_Acl_AclSets_AclSet_State, for path elem:{name:\"descriptXX\"}",
}, {
tid: 10,
uri: "openconfig-system:system/cpus/cpu[index=3]/",
Expand Down

0 comments on commit 9e048ef

Please sign in to comment.