refactor: huawei

This commit is contained in:
xiaojunnuo
2023-05-09 13:52:25 +08:00
parent 9747d40734
commit d2897cefaa
8 changed files with 128 additions and 77 deletions

View File

@@ -7,7 +7,7 @@ function generateId() {
}
export const pipeline: Pipeline = {
version: 1,
id: generateId(),
id: "3",
title: "华为管道测试",
userId: 1,
triggers: [],
@@ -27,10 +27,13 @@ export const pipeline: Pipeline = {
title: "申请证书",
type: "CertApply",
input: {
domains: ["*.powerleader.chat"],
domains: ["powerleader.chat", "*.powerleader.chat", "*.test.powerleader.chat", "*.ai.powerleader.chat"],
email: "xiaojunnuo@qq.com",
dnsProviderType: "huawei",
accessId: "111",
accessId: "333",
},
strategy: {
runStrategy: RunStrategy.SkipWhenSucceed,
},
},
],

View File

@@ -13,7 +13,7 @@ describe("pipeline-hauwei-test", function () {
}
const executor = new Executor({ userId: "test", pipeline, onChanged, accessService: new AccessServiceTest(), storage: new FileStorage() });
await executor.run(1, "user");
await executor.run(2, "user");
// expect(define.name).eq("EchoPlugin");
});
});