2022-11-08 14:10:42 +00:00
|
|
|
//import { expect } from "chai";
|
|
|
|
import "mocha";
|
2023-05-09 01:19:17 +00:00
|
|
|
import { Executor, RunHistory, FileStorage } from "@certd/pipeline";
|
2022-11-08 14:10:42 +00:00
|
|
|
import { pipeline } from "./pipeline.define";
|
|
|
|
import { AccessServiceTest } from "./access-service-test";
|
2023-05-09 01:19:17 +00:00
|
|
|
import * as all from "../../src";
|
2022-11-08 14:10:42 +00:00
|
|
|
describe("pipeline", function () {
|
|
|
|
it("#pipeline", async function () {
|
|
|
|
this.timeout(120000);
|
|
|
|
function onChanged(history: RunHistory) {
|
|
|
|
console.log("changed:");
|
|
|
|
}
|
|
|
|
|
|
|
|
const executor = new Executor({ userId: "test", pipeline, onChanged, accessService: new AccessServiceTest(), storage: new FileStorage() });
|
|
|
|
await executor.run(1, "user");
|
|
|
|
// expect(define.name).eq("EchoPlugin");
|
|
|
|
});
|
|
|
|
});
|