fix dbMask and role tests... (#188)
* fix up tests. * case sensitive dbMask
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -69,7 +69,7 @@ func (r *Repository) UpdateRole(ctx context.Context, role *Role, fieldMaskPaths
|
||||
map[string]interface{}{
|
||||
"name": role.Name,
|
||||
"description": role.Description,
|
||||
"grantscopeid": role.GrantScopeId,
|
||||
"GrantScopeId": role.GrantScopeId,
|
||||
},
|
||||
fieldMaskPaths,
|
||||
)
|
||||
|
||||
@@ -581,7 +581,7 @@ func TestUpdate(t *testing.T) {
|
||||
Name: &wrapperspb.StringValue{Value: "new"},
|
||||
Description: &wrapperspb.StringValue{Value: "desc"},
|
||||
CreatedTime: or.GetCreateTime().GetTimestamp(),
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: pr.GetScopeId()},
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: or.GetScopeId()},
|
||||
},
|
||||
},
|
||||
errCode: codes.OK,
|
||||
@@ -681,7 +681,7 @@ func TestUpdate(t *testing.T) {
|
||||
Id: or.GetPublicId(),
|
||||
Description: &wrapperspb.StringValue{Value: "default"},
|
||||
CreatedTime: or.GetCreateTime().GetTimestamp(),
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: pr.GetScopeId()},
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: or.GetScopeId()},
|
||||
},
|
||||
},
|
||||
errCode: codes.OK,
|
||||
@@ -703,7 +703,7 @@ func TestUpdate(t *testing.T) {
|
||||
Name: &wrapperspb.StringValue{Value: "updated"},
|
||||
Description: &wrapperspb.StringValue{Value: "default"},
|
||||
CreatedTime: or.GetCreateTime().GetTimestamp(),
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: pr.GetScopeId()},
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: or.GetScopeId()},
|
||||
},
|
||||
},
|
||||
errCode: codes.OK,
|
||||
@@ -725,7 +725,7 @@ func TestUpdate(t *testing.T) {
|
||||
Name: &wrapperspb.StringValue{Value: "default"},
|
||||
Description: &wrapperspb.StringValue{Value: "notignored"},
|
||||
CreatedTime: or.GetCreateTime().GetTimestamp(),
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: pr.GetScopeId()},
|
||||
GrantScopeId: &wrapperspb.StringValue{Value: or.GetScopeId()},
|
||||
},
|
||||
},
|
||||
errCode: codes.OK,
|
||||
|
||||
Reference in new issue
Block a user