Skip to content

Commit

Permalink
Try catch for gss test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunetfreitag committed Dec 12, 2023
1 parent 7cfcc85 commit aaa42ab
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test_ocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,14 @@ def run(self):
testThreadRunning = False
return

self.TestOcsCalls.assertTrue(gssFound)
self.TestOcsCalls.assertEqual(j["ocs"]["data"]["id"], 'globalsiteselector')
self.TestOcsCalls.assertEqual(j["ocs"]["data"]["version"], expectedResults['apps']['globalsiteselector'][drv.target]['version'])
try:
self.TestOcsCalls.assertTrue(gssFound)
self.TestOcsCalls.assertEqual(j["ocs"]["data"]["id"], 'globalsiteselector')
self.TestOcsCalls.assertEqual(j["ocs"]["data"]["version"], expectedResults['apps']['globalsiteselector'][drv.target]['version'])
except:
logger.error(f'Error with GSS configuration')
testThreadRunning = False
return

# Summary and test
logger.info(f'Saml app found: {userSamlFound}')
Expand Down

0 comments on commit aaa42ab

Please sign in to comment.