MCPcopy Index your code
hub / github.com/apache/caldera / deploy_ability

Function deploy_ability

tests/api/v2/handlers/test_agents_api.py:87–96  ·  view source on GitHub ↗
(test_executor, event_loop)

Source from the content-addressed store, hash-verified

85
86@pytest.fixture
87def deploy_ability(test_executor, event_loop):
88 ability = AbilitySchema().load(dict(ability_id='123',
89 tactic='persistence',
90 technique_id='auto-generated',
91 technique_name='auto-generated',
92 name='test deploy command',
93 description='test ability',
94 executors=[ExecutorSchema().dump(test_executor)]))
95 event_loop.run_until_complete(BaseService.get_service('data_svc').store(ability))
96 return ability
97
98
99@pytest.fixture

Callers

nothing calls this directly

Calls 5

AbilitySchemaClass · 0.90
ExecutorSchemaClass · 0.90
get_serviceMethod · 0.80
loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected