Skip to content

Commit

Permalink
fixed caddy setup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Mancke committed Feb 16, 2018
1 parent a5733ef commit 91c1710
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions caddy/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestSetup(t *testing.T) {
shouldErr: false,
config: login.Config{
JwtSecret: "jwtsecret",
JwtAlgo: "HS512",
JwtExpiry: 24 * time.Hour,
SuccessURL: "/",
Redirect: true,
Expand All @@ -49,6 +50,7 @@ func TestSetup(t *testing.T) {
input: `login {
success_url successurl
jwt_expiry 42h
jwt_algo algo
login_path /foo/bar
redirect true
redirect_query_parameter comingFrom
Expand All @@ -64,6 +66,7 @@ func TestSetup(t *testing.T) {
shouldErr: false,
config: login.Config{
JwtSecret: "jwtsecret",
JwtAlgo: "algo",
JwtExpiry: 42 * time.Hour,
SuccessURL: "successurl",
Redirect: true,
Expand Down Expand Up @@ -99,6 +102,7 @@ func TestSetup(t *testing.T) {
shouldErr: false,
config: login.Config{
JwtSecret: "jwtsecret",
JwtAlgo: "HS512",
JwtExpiry: 24 * time.Hour,
SuccessURL: "/",
Redirect: true,
Expand Down Expand Up @@ -126,6 +130,7 @@ func TestSetup(t *testing.T) {
shouldErr: false,
config: login.Config{
JwtSecret: "jwtsecret",
JwtAlgo: "HS512",
JwtExpiry: 24 * time.Hour,
SuccessURL: "/",
Redirect: true,
Expand All @@ -151,6 +156,7 @@ func TestSetup(t *testing.T) {
shouldErr: false,
config: login.Config{
JwtSecret: "jwtsecret",
JwtAlgo: "HS512",
JwtExpiry: 24 * time.Hour,
SuccessURL: "/",
Redirect: true,
Expand Down

0 comments on commit 91c1710

Please sign in to comment.