(aiohttp_client)
| 51 | |
| 52 | @pytest.fixture |
| 53 | async def sample_agent(aiohttp_client): |
| 54 | kwargs = dict(architecture='amd64', exe_name='sandcat.go', executors=['shellcode_amd64', 'sh'], |
| 55 | group='red', host='testsystem.localdomain', location='./sandcat.go', pid=125266, |
| 56 | platform='linux', ppid=124042, privilege='User', server='http://127.0.0.1:8888', |
| 57 | username='testuser', paw=None, contact='http') |
| 58 | |
| 59 | agent = await BaseService.get_service('data_svc').store(Agent(sleep_min=0, sleep_max=60, watchdog=0, **kwargs)) |
| 60 | yield agent |
| 61 | |
| 62 | await BaseService.get_service('data_svc').remove('agent', dict(paw=agent.paw)) |
| 63 | |
| 64 | |
| 65 | async def test_home(aiohttp_client): |
nothing calls this directly
no test coverage detected