This commit is contained in:
Markus Schulte
2017-06-20 16:23:02 +02:00
parent 7ceb900c37
commit 2de4e9fc73
5 changed files with 21 additions and 22 deletions
+10 -10
View File
@@ -38,8 +38,8 @@ func TestSetup(t *testing.T) {
"bob": "secret",
},
},
Oauth: login.Options{},
GracePeriod: 5*time.Second,
Oauth: login.Options{},
GracePeriod: 5 * time.Second,
}},
{
input: `login {
@@ -73,8 +73,8 @@ func TestSetup(t *testing.T) {
"client_secret": "secret",
},
},
Oauth: login.Options{},
GracePeriod: 5*time.Second,
Oauth: login.Options{},
GracePeriod: 5 * time.Second,
}},
{ // backwards compatibility
// * login path as argument
@@ -97,8 +97,8 @@ func TestSetup(t *testing.T) {
"bob": "secret",
},
},
Oauth: login.Options{},
GracePeriod: 5*time.Second,
Oauth: login.Options{},
GracePeriod: 5 * time.Second,
}},
{ // backwards compatibility
// * login path as argument
@@ -121,8 +121,8 @@ func TestSetup(t *testing.T) {
"bob": "secret",
},
},
Oauth: login.Options{},
GracePeriod: 5*time.Second,
Oauth: login.Options{},
GracePeriod: 5 * time.Second,
}},
// error cases
@@ -143,8 +143,8 @@ func TestSetup(t *testing.T) {
"bob": "secret",
},
},
Oauth: login.Options{},
GracePeriod: 5*time.Second,
Oauth: login.Options{},
GracePeriod: 5 * time.Second,
}},
{input: "login {\n}", shouldErr: true},
{input: "login xx yy {\n}", shouldErr: true},