refactor: register

This commit is contained in:
xiaojunnuo
2023-05-09 10:16:49 +08:00
parent e123ec4089
commit 9747d40734
24 changed files with 144 additions and 19 deletions
@@ -0,0 +1,19 @@
//import { expect } from "chai";
import "mocha";
import { Executor, RunHistory, FileStorage } from "@certd/pipeline";
import { pipeline } from "./pipeline.huawei";
import { AccessServiceTest } from "./access-service-test";
import "../../src";
import "../plugin/echo-plugin";
describe("pipeline-hauwei-test", 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");
});
});