Added get runners by org test

ref #125
This commit is contained in:
Nicolai Ort 2021-01-26 20:12:14 +01:00
parent 570c34bed0
commit f71a22f4dd
1 changed files with 6 additions and 0 deletions

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);
});
});