2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cloudaudit.v20190319.test.js 5.35 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-10-30 04:18 +08:00 . release 4.0.963
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.cloudaudit.v20190319.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("cloudaudit.v20190319.test.js", function () {
it("cloudaudit.v20190319.ModifyAuditTrack", async function () {
try {
const data = await client.ModifyAuditTrack({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.StartLogging", async function () {
try {
const data = await client.StartLogging({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.DescribeAuditTrack", async function () {
try {
const data = await client.DescribeAuditTrack({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.GetAttributeKey", async function () {
try {
const data = await client.GetAttributeKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.CreateAuditTrack", async function () {
try {
const data = await client.CreateAuditTrack({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.ListCmqEnableRegion", async function () {
try {
const data = await client.ListCmqEnableRegion({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.CreateEventsAuditTrack", async function () {
try {
const data = await client.CreateEventsAuditTrack({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.DescribeEvents", async function () {
try {
const data = await client.DescribeEvents({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.ModifyEventsAuditTrack", async function () {
try {
const data = await client.ModifyEventsAuditTrack({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.StopLogging", async function () {
try {
const data = await client.StopLogging({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.ListCosEnableRegion", async function () {
try {
const data = await client.ListCosEnableRegion({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.DescribeAuditTracks", async function () {
try {
const data = await client.DescribeAuditTracks({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.InquireAuditCredit", async function () {
try {
const data = await client.InquireAuditCredit({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.UpdateAudit", async function () {
try {
const data = await client.UpdateAudit({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.ListKeyAliasByRegion", async function () {
try {
const data = await client.ListKeyAliasByRegion({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.DescribeAudit", async function () {
try {
const data = await client.DescribeAudit({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.DeleteAuditTrack", async function () {
try {
const data = await client.DeleteAuditTrack({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.LookUpEvents", async function () {
try {
const data = await client.LookUpEvents({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("cloudaudit.v20190319.ListAudits", async function () {
try {
const data = await client.ListAudits({})
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

搜索帮助