flushAndRunServer,
ServerInfo,
setAccessTokensToServers,
- userLogin
+ userLogin,
+ cleanupTests
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
})
})
+ it('Should fail with an incorrect job type', async function () {
+ await makeGetRequest({
+ url: server.url,
+ token: server.accessToken,
+ path,
+ query: {
+ jobType: 'toto'
+ }
+ })
+ })
+
it('Should fail with a bad start pagination', async function () {
await checkBadStartPagination(server.url, path, server.accessToken)
})
statusCodeExpected: 403
})
})
+
})
- after(function () {
- killallServers([ server ])
+ after(async function () {
+ await cleanupTests([ server ])
})
})