Commit e0273d5e authored by ale's avatar ale

Factor out common strings in tests

parent 89814397
Pipeline #5879 passed with stages
in 2 minutes and 26 seconds
This diff is collapsed.
......@@ -109,8 +109,8 @@ func TestIntegration(t *testing.T) {
doGet(t, c, "https://service.example.com/", checkStatusOk, checkLoginPageURL, checkLoginPasswordPage)
v := make(url.Values)
v.Set("username", "testuser")
v.Set("password", "password")
v.Set("username", testUser)
v.Set("password", testPassword)
doPostForm(t, c, "https://login.example.com/login", v, checkStatusOk, checkIsProtectedService)
// Now attempt to logout, and verify that we can't access the service anymore.
......@@ -134,8 +134,8 @@ func TestIntegration_WithURLPrefix(t *testing.T) {
doGet(t, c, "https://service.example.com/", checkStatusOk, checkLoginPageURLWithPrefix, checkLoginPasswordPage)
v := make(url.Values)
v.Set("username", "testuser")
v.Set("password", "password")
v.Set("username", testUser)
v.Set("password", testPassword)
doPostForm(t, c, "https://login.example.com/sso/login", v, checkStatusOk, checkIsProtectedService)
// Now attempt to logout, and verify that we can't access the service anymore.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment