2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cloudhsm.v20191112.test.js 4.05 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2023-03-10 10:07 +08:00 . release 4.0.556
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.cloudhsm.v20191112.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("cloudhsm.v20191112.test.js", function () {
it("cloudhsm.v20191112.GetAlarmEvent", async function () {
try {
const data = await client.GetAlarmEvent({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.ModifyVsmAttributes", async function () {
try {
const data = await client.ModifyVsmAttributes({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeVsmAttributes", async function () {
try {
const data = await client.DescribeVsmAttributes({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeVsms", async function () {
try {
const data = await client.DescribeVsms({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeVpc", async function () {
try {
const data = await client.DescribeVpc({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeHSMByVpcId", async function () {
try {
const data = await client.DescribeHSMByVpcId({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.GetVsmMonitorInfo", async function () {
try {
const data = await client.GetVsmMonitorInfo({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeHSMBySubnetId", async function () {
try {
const data = await client.DescribeHSMBySubnetId({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeUsg", async function () {
try {
const data = await client.DescribeUsg({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeSubnet", async function () {
try {
const data = await client.DescribeSubnet({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.ModifyAlarmEvent", async function () {
try {
const data = await client.ModifyAlarmEvent({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeSupportedHsm", async function () {
try {
const data = await client.DescribeSupportedHsm({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.InquiryPriceBuyVsm", async function () {
try {
const data = await client.InquiryPriceBuyVsm({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudhsm.v20191112.DescribeUsgRule", async function () {
try {
const data = await client.DescribeUsgRule({})
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

搜索帮助