mirror of https://github.com/certd/certd
20 lines
704 B
TypeScript
20 lines
704 B
TypeScript
![]() |
//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");
|
||
|
});
|
||
|
});
|