Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
  • Loading branch information
haydentherapper committed May 24, 2022
1 parent 3ce9ef3 commit fb3ccb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pkg/config/config_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ func TestLoad(t *testing.T) {
t.Fatal(err)
}

cfg, _ := Load(cfgPath)
cfg, err := Load(cfgPath)
if err != nil {
t.Fatal(err)
}
got, ok := cfg.GetIssuer("https://accounts.google.com")
if !ok {
t.Error("expected true, got false")
Expand Down
6 changes: 4 additions & 2 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ var validCfg = `
"OIDCIssuers": {
"https://accounts.google.com": {
"IssuerURL": "https://accounts.google.com",
"ClientID": "foo"
"ClientID": "foo",
"Type": "email"
}
},
"MetaIssuers": {
"https://oidc.eks.*.amazonaws.com/id/*": {
"ClientID": "bar"
"ClientID": "bar",
"Type": "kubernetes"
}
}
}
Expand Down

0 comments on commit fb3ccb7

Please sign in to comment.