2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
smh.v20210712.test.js 4.23 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-08-12 04:18 +08:00 . release 4.0.915
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.smh.v20210712.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("smh.v20210712.test.js", function () {
it("smh.v20210712.ModifyUser", async function () {
try {
const data = await client.ModifyUser({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DeleteUser", async function () {
try {
const data = await client.DeleteUser({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.VerifySmsCode", async function () {
try {
const data = await client.VerifySmsCode({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DescribeOfficialInstances", async function () {
try {
const data = await client.DescribeOfficialInstances({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.CreateLibrary", async function () {
try {
const data = await client.CreateLibrary({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.SendSmsCode", async function () {
try {
const data = await client.SendSmsCode({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.CreateUser", async function () {
try {
const data = await client.CreateUser({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.CreateUserLifecycle", async function () {
try {
const data = await client.CreateUserLifecycle({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DescribeLibraries", async function () {
try {
const data = await client.DescribeLibraries({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.ModifyLibrary", async function () {
try {
const data = await client.ModifyLibrary({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DescribeOfficialOverview", async function () {
try {
const data = await client.DescribeOfficialOverview({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DescribeTrafficPackages", async function () {
try {
const data = await client.DescribeTrafficPackages({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DeleteLibrary", async function () {
try {
const data = await client.DeleteLibrary({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DescribeUserLifecycle", async function () {
try {
const data = await client.DescribeUserLifecycle({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("smh.v20210712.DescribeLibrarySecret", async function () {
try {
const data = await client.DescribeLibrarySecret({})
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

搜索帮助