Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kassouf committed Jan 3, 2020
1 parent 9a11f0d commit a0506cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions sdk/framework/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ func TestIdentityTemplating(t *testing.T) {
MountAccessor: "test_mount",
MountType: "secret",
Metadata: map[string]string{
"alias-metadata": "metadata-value",
"alias-metadata": "alias-metadata-value",
},
},
},
Metadata: map[string]string{
"entity-metadata": "metadata-value",
"entity-metadata": "entity-metadata-value",
},
},
GroupsVal: []*logical.Group{
{
ID: "group1-id",
Name: "group1",
Metadata: map[string]string{
"group-metadata": "metadata-value",
"group-metadata": "group-metadata-value",
},
},
},
Expand All @@ -51,7 +51,7 @@ func TestIdentityTemplating(t *testing.T) {
},
{
tpl: "{{identity.entity.metadata.entity-metadata}}",
expected: "metadata-value",
expected: "entity-metadata-value",
},
{
tpl: "{{identity.entity.aliases.test_mount.id}}",
Expand All @@ -67,7 +67,7 @@ func TestIdentityTemplating(t *testing.T) {
},
{
tpl: "{{identity.entity.aliases.test_mount.metadata.alias-metadata}}",
expected: "metadata-value",
expected: "alias-metadata-value",
},
{
tpl: "{{identity.groups.ids.group1-id.name}}",
Expand All @@ -79,11 +79,11 @@ func TestIdentityTemplating(t *testing.T) {
},
{
tpl: "{{identity.groups.names.group1.metadata.group-metadata}}",
expected: "metadata-value",
expected: "group-metadata-value",
},
{
tpl: "{{identity.groups.ids.group1-id.metadata.group-metadata}}",
expected: "metadata-value",
expected: "group-metadata-value",
},
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/plugin/pb/backend.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/plugin/pb/backend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ service SystemView {
// PluginEnv returns Vault environment information used by plugins
rpc PluginEnv(Empty) returns (PluginEnvReply);

// GroupsForEntity returns the group membersship information for the given
// GroupsForEntity returns the group membership information for the given
// entity id
rpc GroupsForEntity(EntityInfoArgs) returns (GroupsForEntityReply);
}
Expand Down

0 comments on commit a0506cd

Please sign in to comment.