Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
asoorm committed Oct 2, 2017
1 parent 7d45fb4 commit ece8043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions dashboard_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ type HTTPDashboardHandler struct {

func reLogin() {
if !config.Global.UseDBAppConfigs {
log.WithFields(logrus.Fields{
"prefix": "main",
}).Info("Skipping reLogin as UseDBAppConfigs is set to false.")

return
}

Expand Down
8 changes: 2 additions & 6 deletions policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ func TestLoadPoliciesFromDashboardReLogin(t *testing.T) {
oldUseDBAppConfigs := config.Global.UseDBAppConfigs
config.Global.UseDBAppConfigs = false

defer func() {
config.Global.UseDBAppConfigs = oldUseDBAppConfigs
}()
defer func() { config.Global.UseDBAppConfigs = oldUseDBAppConfigs }()

connStr := ts.URL
secret := "supersecret"
allowExplicitPolicyID := config.Global.Policies.AllowExplicitPolicyID

policyMap := LoadPoliciesFromDashboard(connStr, secret, allowExplicitPolicyID)
policyMap := LoadPoliciesFromDashboard(ts.URL, "", allowExplicitPolicyID)

if policyMap != nil {
t.Error("Should be nil because got back 403 from Dashboard")
Expand Down

0 comments on commit ece8043

Please sign in to comment.