MCPcopy
hub / github.com/apache/caldera / new_ability_payload

Function new_ability_payload

tests/api/v2/handlers/test_abilities_api.py:12–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11@pytest.fixture
12def new_ability_payload():
13 test_executor_linux = Executor(name='sh', platform='linux', command='whoami')
14 return {'name': 'new test ability',
15 'ability_id': '456',
16 'tactic': 'collection',
17 'technique_name': 'collection',
18 'technique_id': '1',
19 'executors': [ExecutorSchema().dump(test_executor_linux)],
20 'access': {},
21 'additional_info': {},
22 'buckets': ['collection'],
23 'description': '',
24 'privilege': '',
25 'repeatable': False,
26 'requirements': [],
27 'singleton': False,
28 'plugin': '',
29 'delete_payload': True,
30 }
31
32
33@pytest.fixture

Callers

nothing calls this directly

Calls 2

ExecutorClass · 0.90
ExecutorSchemaClass · 0.90

Tested by

no test coverage detected