代码拉取完成,页面将自动刷新
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.cdwch.v20200915.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("cdwch.v20200915.test.js", function () {
it("cdwch.v20200915.CreateBackUpSchedule", async function () {
try {
const data = await client.CreateBackUpSchedule({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeBackUpJob", async function () {
try {
const data = await client.DescribeBackUpJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DestroyInstance", async function () {
try {
const data = await client.DestroyInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstanceKeyValConfigs", async function () {
try {
const data = await client.DescribeInstanceKeyValConfigs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.OpenBackUp", async function () {
try {
const data = await client.OpenBackUp({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ModifyInstanceKeyValConfigs", async function () {
try {
const data = await client.ModifyInstanceKeyValConfigs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ScaleUpInstance", async function () {
try {
const data = await client.ScaleUpInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeBackUpTables", async function () {
try {
const data = await client.DescribeBackUpTables({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ScaleOutInstance", async function () {
try {
const data = await client.ScaleOutInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstanceShards", async function () {
try {
const data = await client.DescribeInstanceShards({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstancesNew", async function () {
try {
const data = await client.DescribeInstancesNew({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DeleteBackUpData", async function () {
try {
const data = await client.DeleteBackUpData({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ActionAlterCkUser", async function () {
try {
const data = await client.ActionAlterCkUser({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstanceState", async function () {
try {
const data = await client.DescribeInstanceState({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeClusterConfigs", async function () {
try {
const data = await client.DescribeClusterConfigs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ModifyClusterConfigs", async function () {
try {
const data = await client.ModifyClusterConfigs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ScaleCNOutUpInstance", async function () {
try {
const data = await client.ScaleCNOutUpInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.RecoverBackUpJob", async function () {
try {
const data = await client.RecoverBackUpJob({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeCkSqlApis", async function () {
try {
const data = await client.DescribeCkSqlApis({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeSpec", async function () {
try {
const data = await client.DescribeSpec({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.CreateInstanceNew", async function () {
try {
const data = await client.CreateInstanceNew({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeBackUpSchedule", async function () {
try {
const data = await client.DescribeBackUpSchedule({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeBackUpJobDetail", async function () {
try {
const data = await client.DescribeBackUpJobDetail({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstanceClusters", async function () {
try {
const data = await client.DescribeInstanceClusters({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstance", async function () {
try {
const data = await client.DescribeInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.DescribeInstanceNodes", async function () {
try {
const data = await client.DescribeInstanceNodes({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ModifyUserNewPrivilege", async function () {
try {
const data = await client.ModifyUserNewPrivilege({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cdwch.v20200915.ResizeDisk", async function () {
try {
const data = await client.ResizeDisk({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。