Projet

Général

Profil

0001-root-implement-automatic-tryauth-12867.patch

Serghei Mihai, 18 mai 2020 14:43

Télécharger (1018 octets)

Voir les différences:

Subject: [PATCH] root: implement automatic tryauth (#12867)

 tests/test_saml_auth.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/test_saml_auth.py
454 454
    with open(os.path.join(pub.app_dir, 'site-options.cfg'), 'w') as fd:
455 455
        pub.site_options.write(fd)
456 456

  
457
    resp = app.get('/')
457
    resp = app.get('/?parameter=value')
458 458
    assert resp.status_int == 302
459
    assert resp.location.startswith('http://example.net/login/?ReturnUrl=http%3A//example.net/')
459
    assert resp.location.startswith('http://example.net/login/?ReturnUrl=http%3A//example.net/%3Fparameter%3Dvalue')
460 460
    assert 'PASSIVE_TRIED_COOKIE' in app.cookies
461 461

  
462 462

  
463
-