1 Star 0 Fork 6

aigouzz/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ecdn.v20191012.test.js 4.54 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloudapi 提交于 2021-05-28 08:55 +08:00 . release 4.0.132
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.ecdn.v20191012.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("ecdn.v20191012.test.js", function () {
it("ecdn.v20191012.AddEcdnDomain", async function () {
try {
const data = await client.AddEcdnDomain({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribeIpStatus", async function () {
try {
const data = await client.DescribeIpStatus({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.PurgePathCache", async function () {
try {
const data = await client.PurgePathCache({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.StartEcdnDomain", async function () {
try {
const data = await client.StartEcdnDomain({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.UpdateDomainConfig", async function () {
try {
const data = await client.UpdateDomainConfig({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribePurgeTasks", async function () {
try {
const data = await client.DescribePurgeTasks({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribeEcdnDomainLogs", async function () {
try {
const data = await client.DescribeEcdnDomainLogs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribeDomainsConfig", async function () {
try {
const data = await client.DescribeDomainsConfig({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribePurgeQuota", async function () {
try {
const data = await client.DescribePurgeQuota({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.PurgeUrlsCache", async function () {
try {
const data = await client.PurgeUrlsCache({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.StopEcdnDomain", async function () {
try {
const data = await client.StopEcdnDomain({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DeleteEcdnDomain", async function () {
try {
const data = await client.DeleteEcdnDomain({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribeDomains", async function () {
try {
const data = await client.DescribeDomains({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.CreateVerifyRecord", async function () {
try {
const data = await client.CreateVerifyRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribeEcdnDomainStatistics", async function () {
try {
const data = await client.DescribeEcdnDomainStatistics({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ecdn.v20191012.DescribeEcdnStatistics", async function () {
try {
const data = await client.DescribeEcdnStatistics({})
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

搜索帮助