1 Star 0 Fork 6

aigouzz/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gwlb.v20240906.test.js 5.33 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-10-16 18:13 +08:00 . release 4.0.957
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.gwlb.v20240906.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("gwlb.v20240906.test.js", function () {
it("gwlb.v20240906.DeleteTargetGroups", async function () {
try {
const data = await client.DeleteTargetGroups({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DeleteGatewayLoadBalancer", async function () {
try {
const data = await client.DeleteGatewayLoadBalancer({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.RegisterTargetGroupInstances", async function () {
try {
const data = await client.RegisterTargetGroupInstances({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DescribeTargetGroups", async function () {
try {
const data = await client.DescribeTargetGroups({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.ModifyTargetGroupAttribute", async function () {
try {
const data = await client.ModifyTargetGroupAttribute({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DescribeTaskStatus", async function () {
try {
const data = await client.DescribeTaskStatus({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.CreateGatewayLoadBalancer", async function () {
try {
const data = await client.CreateGatewayLoadBalancer({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DisassociateTargetGroups", async function () {
try {
const data = await client.DisassociateTargetGroups({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.ModifyTargetGroupInstancesWeight", async function () {
try {
const data = await client.ModifyTargetGroupInstancesWeight({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DescribeTargetGroupInstanceStatus", async function () {
try {
const data = await client.DescribeTargetGroupInstanceStatus({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.AssociateTargetGroups", async function () {
try {
const data = await client.AssociateTargetGroups({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DescribeGatewayLoadBalancers", async function () {
try {
const data = await client.DescribeGatewayLoadBalancers({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.ModifyGatewayLoadBalancerAttribute", async function () {
try {
const data = await client.ModifyGatewayLoadBalancerAttribute({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DescribeTargetGroupList", async function () {
try {
const data = await client.DescribeTargetGroupList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.InquirePriceCreateGatewayLoadBalancer", async function () {
try {
const data = await client.InquirePriceCreateGatewayLoadBalancer({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DeregisterTargetGroupInstances", async function () {
try {
const data = await client.DeregisterTargetGroupInstances({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.CreateTargetGroup", async function () {
try {
const data = await client.CreateTargetGroup({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("gwlb.v20240906.DescribeTargetGroupInstances", async function () {
try {
const data = await client.DescribeTargetGroupInstances({})
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/aigouzz/tencentcloud-sdk-nodejs.git
git@gitee.com:aigouzz/tencentcloud-sdk-nodejs.git
aigouzz
tencentcloud-sdk-nodejs
tencentcloud-sdk-nodejs
master

搜索帮助