Ai
2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cdwch.v20200915.test.js 7.66 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-11-25 04:12 +08:00 . release 4.0.978
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
}
})
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs.git
git@gitee.com:tencentcloud/tencentcloud-sdk-nodejs.git
tencentcloud
tencentcloud-sdk-nodejs
tencentcloud-sdk-nodejs
4.1.43

搜索帮助