fix dbMask and role tests... (#188)

* fix up tests.

* case sensitive dbMask
This commit is contained in:
Jim authored and GitHub committed 2020-07-10 20:44:00 -04:00
1 parent 847ca1cc78
commit e1afed75ff
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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,