ligo-gracedb incompatible with igwn-auth-utils-1.0.0
The latest release of igwn-auth-utils (1.0.0) introduces some changes that break compatibility for ligo-gracedb:
ligo/gracedb/test/test_scitokens.py::test_scitokens FAILED [ 62%]
================================== FAILURES ===================================
_______________________________ test_scitokens ________________________________
rtoken = 'eyJhbGciOiJSUzI1NiIsImtpZCI6InRlc3Rfa2V5IiwidHlwIjoiSldUIn0.eyJpc3MiOiJsb2NhbCIsImF1ZCI6WyJURVNUIiwiQU5ZIl0sInNjb3BlI...kSZuIhB0xpmFyGqGzspeH4_x4YTjfPoS7H64JyCSS63RTg94r-uUG7qC8NOIjVFVXcBGEauPpK8xQ8ZpQHaA-EoEr_WmyOdD439PRBkO6EHuDHCMYyuBWw'
def test_scitokens(rtoken):
with tempfile.TemporaryDirectory() as tmpdir:
scitoken_file = os.path.join(tmpdir, "test_scitoken")
with os.fdopen(os.open(scitoken_file,
os.O_RDWR | os.O_CREAT, 0o500), 'w+') as h:
h.write(rtoken)
# Initialize client
with mock.patch.dict(os.environ, {'SCITOKEN_FILE': scitoken_file}):
g = GraceDb()
> assert 'scitoken' in g.auth_type
E AssertionError: assert 'scitoken' in {'x509': None}
E + where {'x509': None} = <ligo.gracedb.rest.GraceDb object at 0x7fe810ad41d0>.auth_type
ligo/gracedb/test/test_scitokens.py:68: AssertionError
I am working on a patch.