File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,17 @@ def test_sigalg_passed_when_signing_request(self):
616
616
_args , kwargs = prepare_for_auth_mock .call_args
617
617
self .assertIn ('sigalg' , kwargs )
618
618
619
+ @override_settings (SAML2_DISCO_URL = "https://that-ds.org/ds" )
620
+ def test_discovery_service (self ):
621
+ settings .SAML_CONFIG = conf .create_conf (
622
+ sp_host = 'sp.example.com' ,
623
+ idp_hosts = ['idp.example.com' ],
624
+ metadata_file = 'remote_metadata_three_idps.xml' ,
625
+ )
626
+
627
+ response = self .client .get (reverse ('saml2_login' ))
628
+ self .assertEqual (response .status_code , 302 )
629
+ self .assertIn ("https://that-ds.org/ds" , response .url )
619
630
620
631
def test_config_loader (request ):
621
632
config = SPConfig ()
@@ -746,6 +757,5 @@ def test_middleware_cookie_with_expiry(self):
746
757
cookie = response .cookies [saml_session_name ]
747
758
748
759
self .assertIsNotNone (cookie ['expires' ])
749
-
750
760
self .assertNotEqual (cookie ['expires' ], '' )
751
761
self .assertNotEqual (cookie ['max-age' ], '' )
You can’t perform that action at this time.
0 commit comments