File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
import os
3
3
import shutil
4
4
import time
5
+ import warnings
5
6
6
7
import pytest
7
8
@@ -446,11 +447,16 @@ def test_no_use(self):
446
447
@pytest .mark .skip ("connect-op.herokuapp.com is broken" )
447
448
def test_provider (self ):
448
449
kj = KeyJar ()
450
+ _url = "https://connect-op.herokuapp.com/jwks.json"
449
451
kj .load_keys (
450
- "https://connect-op.heroku.com" , jwks_uri = "https://connect-op.herokuapp.com/jwks.json" ,
452
+ "https://connect-op.heroku.com" , jwks_uri = _url ,
451
453
)
452
-
453
- assert kj .get_issuer_keys ("https://connect-op.heroku.com" )[0 ].keys ()
454
+ iss_keys = kj .get_issuer_keys ("https://connect-op.heroku.com" )
455
+ if not iss_keys :
456
+ _msg = "{} is not available at this moment!" .format (_url )
457
+ warnings .warn (_msg )
458
+ else :
459
+ assert iss_kes [0 ].keys ()
454
460
455
461
456
462
def test_import_jwks ():
You can’t perform that action at this time.
0 commit comments