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

* fix up tests.

* case sensitive dbMask
pull/189/head
Jim 6 years ago committed by GitHub
parent 847ca1cc78
commit e1afed75ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

Loading…
Cancel
Save