Ai
2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bma.v20221115.test.js 3.25 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2023-02-16 08:07 +08:00 . release 4.0.540
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.bma.v20221115.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("bma.v20221115.test.js", function () {
it("bma.v20221115.DescribeBPWhiteLists", async function () {
try {
const data = await client.DescribeBPWhiteLists({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.CreateBPWhiteList", async function () {
try {
const data = await client.CreateBPWhiteList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.CreateBPFakeAPP", async function () {
try {
const data = await client.CreateBPFakeAPP({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.DeleteBPWhiteList", async function () {
try {
const data = await client.DeleteBPWhiteList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.CreateBPFakeURLs", async function () {
try {
const data = await client.CreateBPFakeURLs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.CreateBPBrand", async function () {
try {
const data = await client.CreateBPBrand({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.DescribeBPBrands", async function () {
try {
const data = await client.DescribeBPBrands({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.CreateBPFakeAPPList", async function () {
try {
const data = await client.CreateBPFakeAPPList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.DescribeBPFakeAPPList", async function () {
try {
const data = await client.DescribeBPFakeAPPList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.DescribeBPFakeURLs", async function () {
try {
const data = await client.DescribeBPFakeURLs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("bma.v20221115.CreateBPFakeURL", async function () {
try {
const data = await client.CreateBPFakeURL({})
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

搜索帮助