2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
svp.v20240125.test.js 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-03-14 04:20 +08:00 . release 4.0.1050
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.svp.v20240125.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("svp.v20240125.test.js", function () {
it("svp.v20240125.DescribeSavingPlanCoverage", async function () {
try {
const data = await client.DescribeSavingPlanCoverage({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("svp.v20240125.DescribeSavingPlanUsage", async function () {
try {
const data = await client.DescribeSavingPlanUsage({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("svp.v20240125.DescribeSavingPlanOverview", async function () {
try {
const data = await client.DescribeSavingPlanOverview({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("svp.v20240125.CreateSavingPlanOrder", async function () {
try {
const data = await client.CreateSavingPlanOrder({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("svp.v20240125.DescribeSavingPlanDeduct", async function () {
try {
const data = await client.DescribeSavingPlanDeduct({})
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

搜索帮助