Commit 800fca0d authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

Teste de consulta de job inexistente.

[SOMA-6196][SOMA-6232][SOMA-6857]
parent b7fd6cf7
Pipeline #69211 failed with stages
in 1 minute
......@@ -199,3 +199,27 @@ describe("Registering SGA", function () {
await checkStatus(execRes.body.actions.status);
});
});
describe("Registered SGA", function () {
const config = utils.fillSgaConfig();
const regMockup = new utils.RegistryService(config);
const sga = new utils.SgaDaemon(config);
let regReq;
beforeAll(async () => {
await regMockup.start();
await sga.start();
[regReq] = await events.once(regMockup.events, "register");
// TODO: why 'jasmine-expect' matchers are not available here?
// utils.checkRegistration(regReq, config);
});
afterAll(utils.clearAllResources);
it("should inform inexistent jobs", async () => {
const statUri = `http://${config.sgad_host}:${config.sgad_port}/v1/sga/${config.sga_name}/job/404/status`;
const statRes = await chakram.get(statUri);
chakram.expect(statRes).to.have.status(404);
});
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment