Linter fixes PR 3 (#4415)
* Linter fixes * fix(bsr): update test to register TEST protocol once --------- Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
This commit is contained in:
1 parent
e95eda7ca2
commit
35cef97bd4
119 files changed
+365
-300
No files matched your search
@@ -125,7 +125,7 @@ func TestGet(t *testing.T) {
|
||||
res: &pbs.GetUserResponse{Item: wantU},
|
||||
},
|
||||
{
|
||||
name: "Get a non existant User",
|
||||
name: "Get a non existent User",
|
||||
req: &pbs.GetUserRequest{Id: globals.UserPrefix + "_DoesntExis"},
|
||||
res: nil,
|
||||
err: handlers.ApiErrorWithCode(codes.NotFound),
|
||||
@@ -1022,9 +1022,9 @@ func TestUpdate(t *testing.T) {
|
||||
err: handlers.ApiErrorWithCode(codes.InvalidArgument),
|
||||
},
|
||||
{
|
||||
name: "Only non-existant paths in Mask",
|
||||
name: "Only non-existent paths in Mask",
|
||||
req: &pbs.UpdateUserRequest{
|
||||
UpdateMask: &field_mask.FieldMask{Paths: []string{"nonexistant_field"}},
|
||||
UpdateMask: &field_mask.FieldMask{Paths: []string{"nonexistent_field"}},
|
||||
Item: &pb.User{
|
||||
Name: &wrapperspb.StringValue{Value: "updated name"},
|
||||
Description: &wrapperspb.StringValue{Value: "updated desc"},
|
||||
|
||||
Reference in new issue
Block a user