代码拉取完成,页面将自动刷新
同步操作将从 tencentcloud/tencentcloud-sdk-nodejs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.pts.v20210728.Client({
credential: {
secretId: process.env.secretId,
secretKey: process.env.secretKey,
},
region: "ap-shanghai",
profile: {
signMethod: "TC3-HMAC-SHA256",
httpProfile: {
reqMethod: "POST",
reqTimeout: 30,
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
},
},
})
describe("pts.v20210728.test.js", function () {
it("pts.v20210728.DescribeScenarioWithJobs", async function () {
try {
const data = await client.DescribeScenarioWithJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteEnvironments", async function () {
try {
const data = await client.DeleteEnvironments({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.UpdateJob", async function () {
try {
const data = await client.UpdateJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.UpdateCronJob", async function () {
try {
const data = await client.UpdateCronJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.StartJob", async function () {
try {
const data = await client.StartJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.UpdateScenario", async function () {
try {
const data = await client.UpdateScenario({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeFiles", async function () {
try {
const data = await client.DescribeFiles({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteProjects", async function () {
try {
const data = await client.DeleteProjects({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeSampleQuery", async function () {
try {
const data = await client.DescribeSampleQuery({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeJobs", async function () {
try {
const data = await client.DescribeJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CreateScenario", async function () {
try {
const data = await client.CreateScenario({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteFiles", async function () {
try {
const data = await client.DeleteFiles({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeRegions", async function () {
try {
const data = await client.DescribeRegions({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeCheckSummary", async function () {
try {
const data = await client.DescribeCheckSummary({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeSampleMatrixBatchQuery", async function () {
try {
const data = await client.DescribeSampleMatrixBatchQuery({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeSampleMatrixQuery", async function () {
try {
const data = await client.DescribeSampleMatrixQuery({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeRequestSummary", async function () {
try {
const data = await client.DescribeRequestSummary({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteScenarios", async function () {
try {
const data = await client.DeleteScenarios({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeProjects", async function () {
try {
const data = await client.DescribeProjects({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeAlertRecords", async function () {
try {
const data = await client.DescribeAlertRecords({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeSampleBatchQuery", async function () {
try {
const data = await client.DescribeSampleBatchQuery({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeAlertChannels", async function () {
try {
const data = await client.DescribeAlertChannels({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeAvailableMetrics", async function () {
try {
const data = await client.DescribeAvailableMetrics({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeLabelValues", async function () {
try {
const data = await client.DescribeLabelValues({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.AbortCronJobs", async function () {
try {
const data = await client.AbortCronJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.UpdateFileScenarioRelation", async function () {
try {
const data = await client.UpdateFileScenarioRelation({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.RestartCronJobs", async function () {
try {
const data = await client.RestartCronJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.UpdateEnvironment", async function () {
try {
const data = await client.UpdateEnvironment({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CreateAlertChannel", async function () {
try {
const data = await client.CreateAlertChannel({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeEnvironments", async function () {
try {
const data = await client.DescribeEnvironments({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteJobs", async function () {
try {
const data = await client.DeleteJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeErrorSummary", async function () {
try {
const data = await client.DescribeErrorSummary({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeNormalLogs", async function () {
try {
const data = await client.DescribeNormalLogs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CopyScenario", async function () {
try {
const data = await client.CopyScenario({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeSampleLogs", async function () {
try {
const data = await client.DescribeSampleLogs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CreateEnvironment", async function () {
try {
const data = await client.CreateEnvironment({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeScenarios", async function () {
try {
const data = await client.DescribeScenarios({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteCronJobs", async function () {
try {
const data = await client.DeleteCronJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeCronJobs", async function () {
try {
const data = await client.DescribeCronJobs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DeleteAlertChannel", async function () {
try {
const data = await client.DeleteAlertChannel({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CreateFile", async function () {
try {
const data = await client.CreateFile({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.AdjustJobSpeed", async function () {
try {
const data = await client.AdjustJobSpeed({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CreateProject", async function () {
try {
const data = await client.CreateProject({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.AbortJob", async function () {
try {
const data = await client.AbortJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.UpdateProject", async function () {
try {
const data = await client.UpdateProject({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.GenerateTmpKey", async function () {
try {
const data = await client.GenerateTmpKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.DescribeMetricLabelWithValues", async function () {
try {
const data = await client.DescribeMetricLabelWithValues({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("pts.v20210728.CreateCronJob", async function () {
try {
const data = await client.CreateCronJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。