|
|
@ -404,7 +404,7 @@ func TestStateMachine(t *testing.T) {
|
|
|
|
// the user needs to visit a login URL.
|
|
|
|
// the user needs to visit a login URL.
|
|
|
|
t.Logf("\n\nLogin (url response)")
|
|
|
|
t.Logf("\n\nLogin (url response)")
|
|
|
|
notifies.expect(1)
|
|
|
|
notifies.expect(1)
|
|
|
|
url1 := "http://localhost:1/1"
|
|
|
|
url1 := "https://localhost:1/1"
|
|
|
|
cc.send(nil, url1, false, nil)
|
|
|
|
cc.send(nil, url1, false, nil)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cc.assertCalls()
|
|
|
|
cc.assertCalls()
|
|
|
@ -453,7 +453,7 @@ func TestStateMachine(t *testing.T) {
|
|
|
|
// Provide a new interactive login URL.
|
|
|
|
// Provide a new interactive login URL.
|
|
|
|
t.Logf("\n\nLogin2 (url response)")
|
|
|
|
t.Logf("\n\nLogin2 (url response)")
|
|
|
|
notifies.expect(1)
|
|
|
|
notifies.expect(1)
|
|
|
|
url2 := "http://localhost:1/2"
|
|
|
|
url2 := "https://localhost:1/2"
|
|
|
|
cc.send(nil, url2, false, nil)
|
|
|
|
cc.send(nil, url2, false, nil)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cc.assertCalls()
|
|
|
|
cc.assertCalls()
|
|
|
@ -811,7 +811,7 @@ func TestStateMachine(t *testing.T) {
|
|
|
|
t.Logf("\n\nLoginDifferent")
|
|
|
|
t.Logf("\n\nLoginDifferent")
|
|
|
|
notifies.expect(1)
|
|
|
|
notifies.expect(1)
|
|
|
|
b.StartLoginInteractive()
|
|
|
|
b.StartLoginInteractive()
|
|
|
|
url3 := "http://localhost:1/3"
|
|
|
|
url3 := "https://localhost:1/3"
|
|
|
|
cc.send(nil, url3, false, nil)
|
|
|
|
cc.send(nil, url3, false, nil)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nn := notifies.drain(1)
|
|
|
|
nn := notifies.drain(1)
|
|
|
|