MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / entity

Function entity

unit-tests/test_thycotic_access.py:430–438  ·  view source on GitHub ↗
(endpoint)

Source from the content-addressed store, hash-verified

428 raise AssertionError(endpoint)
429
430 def entity(endpoint):
431 auth.calls.append(endpoint)
432 secret_id = int(endpoint.rsplit('/', 1)[1])
433 if secret_id in failing_secrets:
434 raise RuntimeError('secret {0} unavailable'.format(secret_id))
435 for secret in secrets:
436 if secret['id'] == secret_id:
437 return dict(secret)
438 return None
439
440 auth.thycotic_search.side_effect = search
441 auth.thycotic_entity.side_effect = entity

Callers 1

secretMethod · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected