new advanced endpoints feature/125-team_runner #126

Merged
niggl merged 5 commits from feature/125-team_runner into dev 2021-01-27 16:31:47 +00:00
Showing only changes of commit f71a22f4dd - Show all commits

View File

@ -65,4 +65,10 @@ describe('GET /api/runners after adding', () => {
let gotten_runners = res4.data
expect(gotten_runners).toContainEqual(added_runner);
});
it('check if scans was added via the orgs/runners endpoint.', async () => {
const res = await axios.get(base + '/api/organizations/' + added_org_id + "/runners", axios_config);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
expect(res.data).toContainEqual(added_runner);
});
});