代码拉取完成,页面将自动刷新
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
}
})
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。