github.com/justinjmoses/evergreen@v0.0.0-20170530173719-1d50e381ff0d/auth/crowd_test.go (about) 1 package auth 2 3 import ( 4 "testing" 5 6 "github.com/evergreen-ci/evergreen" 7 . "github.com/smartystreets/goconvey/convey" 8 ) 9 10 func TestCrowdAuthManager(t *testing.T) { 11 Convey("When creating a UserManager with Crowd authentication", t, func() { 12 c := evergreen.CrowdConfig{ 13 Username: "", 14 Password: "", 15 Urlroot: "", 16 } 17 authConfig := evergreen.AuthConfig{ 18 Crowd: &c, 19 Naive: nil, 20 Github: nil, 21 } 22 userManager, err := LoadUserManager(authConfig) 23 So(err, ShouldBeNil) 24 Convey("user manager should have nil functions for Login and LoginCallback handlers", func() { 25 So(userManager.GetLoginHandler(""), ShouldBeNil) 26 So(userManager.GetLoginCallbackHandler(), ShouldBeNil) 27 }) 28 }) 29 }