接入管理证书续期调度并记录任务审计通知
This commit is contained in:
1 parent
5597dd7cc2
commit
c8c712131d
13 files changed
+943
-27
No files matched your search
@@ -125,6 +125,7 @@ export function useDashboard() {
|
||||
cancelled: "已取消",
|
||||
};
|
||||
const taskTypeLabels = {
|
||||
management_renewal: "管理证书续期",
|
||||
certificate_issue: "申请证书",
|
||||
certificate_import: "导入证书",
|
||||
certificate_deploy: "部署证书",
|
||||
@@ -134,6 +135,7 @@ export function useDashboard() {
|
||||
dns_test: "DNS 在线测试",
|
||||
};
|
||||
const auditActionLabels = {
|
||||
management_renewal: "管理证书续期",
|
||||
certificate_issue: "申请证书",
|
||||
certificate_import: "导入证书",
|
||||
certificate_deploy: "部署证书",
|
||||
@@ -152,6 +154,12 @@ export function useDashboard() {
|
||||
renewal_run: "执行自动续期",
|
||||
};
|
||||
const taskStageLabels = {
|
||||
management_renewal: "管理证书续期",
|
||||
preflight: "续期前置检查",
|
||||
issue: "申请管理证书",
|
||||
activate: "激活管理证书",
|
||||
record: "保存任务记录",
|
||||
retry_wait: "等待续期重试",
|
||||
service_restart: "服务重启恢复",
|
||||
queued: "排队中",
|
||||
certificate_issue: "申请证书",
|
||||
|
||||
@@ -23,6 +23,14 @@ async function fill(state) {
|
||||
await nextTick();
|
||||
}
|
||||
|
||||
test("管理续期的任务类型、审计和阶段使用中文", async (t) => {
|
||||
const { state } = await setup(t, () => verifiedResponse());
|
||||
assert.equal(state.taskTypeLabel("management_renewal"), "管理证书续期");
|
||||
assert.equal(state.auditActionLabel("management_renewal"), "管理证书续期");
|
||||
assert.equal(state.taskStageLabel("activate"), "激活管理证书");
|
||||
assert.equal(state.taskStageLabel("retry_wait"), "等待续期重试");
|
||||
});
|
||||
|
||||
test("已保存凭据不变可保存,输入新凭据必须重新验证", async (t) => {
|
||||
const { state } = await setup(t, () => verifiedResponse());
|
||||
assert.equal(state.dnsReadyToSave.value, true);
|
||||
|
||||
@@ -231,7 +231,7 @@ const {
|
||||
查看详情
|
||||
</button>
|
||||
<button
|
||||
v-if="item.status === 'queued' || item.status === 'running'"
|
||||
v-if="item.task_type !== 'management_renewal' && (item.status === 'queued' || item.status === 'running')"
|
||||
class="text-button"
|
||||
type="button"
|
||||
@click="cancelTask(item)"
|
||||
|
||||
Reference in new issue
Block a user