Skip to content

Commit

Permalink
adding goreleaser brew config, a bit of formatting cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robscott committed Sep 4, 2018
1 parent 315ea18 commit 09510b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ changelog:
exclude:
- '^docs:'
- '^test:'
brew:
github:
owner: reactiveops
name: homebrew-tap
folder: Formula
description: Reverse Lookup for Kubernetes RBAC
test: |
system "#{bin}/rbac-lookup version"
8 changes: 4 additions & 4 deletions lookup/lister_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestLoadRoleBindings(t *testing.T) {
expectedRbacSubject := rbacSubject{
Kind: "User",
RolesByScope: map[string][]simpleRole{
"foo": []simpleRole{{
"foo": {{
Kind: "Role",
Name: "bar",
Source: simpleRoleSource{
Expand Down Expand Up @@ -72,7 +72,7 @@ func TestLoadClusterRoleBindings(t *testing.T) {
expectedRbacSubject := rbacSubject{
Kind: "User",
RolesByScope: map[string][]simpleRole{
"cluster-wide": []simpleRole{{
"cluster-wide": {{
Kind: "ClusterRole",
Name: "bar",
Source: simpleRoleSource{
Expand Down Expand Up @@ -105,15 +105,15 @@ func TestLoadAll(t *testing.T) {
expectedRbacSubject := rbacSubject{
Kind: "User",
RolesByScope: map[string][]simpleRole{
"cluster-wide": []simpleRole{{
"cluster-wide": {{
Kind: "ClusterRole",
Name: "bar",
Source: simpleRoleSource{
Kind: "ClusterRoleBinding",
Name: "testing",
},
}},
"foo": []simpleRole{{
"foo": {{
Kind: "Role",
Name: "bar",
Source: simpleRoleSource{
Expand Down

0 comments on commit 09510b7

Please sign in to comment.