1 Star 0 Fork 6

aigouzz/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ssl.v20191205.test.js 17.21 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-02-11 04:12 +08:00 . release 4.0.1027
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.ssl.v20191205.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("ssl.v20191205.test.js", function () {
it("ssl.v20191205.DescribeHostCosInstanceList", async function () {
try {
const data = await client.DescribeHostCosInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCertificates", async function () {
try {
const data = await client.DescribeCertificates({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostCdnInstanceList", async function () {
try {
const data = await client.DescribeHostCdnInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CancelAuditCertificate", async function () {
try {
const data = await client.CancelAuditCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostTkeInstanceList", async function () {
try {
const data = await client.DescribeHostTkeInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostUpdateRecord", async function () {
try {
const data = await client.DescribeHostUpdateRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostDeployRecord", async function () {
try {
const data = await client.DescribeHostDeployRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DeleteManager", async function () {
try {
const data = await client.DeleteManager({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CertificateInfoSubmit", async function () {
try {
const data = await client.CertificateInfoSubmit({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeDownloadCertificateUrl", async function () {
try {
const data = await client.DescribeDownloadCertificateUrl({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DeployCertificateInstance", async function () {
try {
const data = await client.DeployCertificateInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.SubmitAuditManager", async function () {
try {
const data = await client.SubmitAuditManager({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribePackages", async function () {
try {
const data = await client.DescribePackages({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.SubmitCertificateInformation", async function () {
try {
const data = await client.SubmitCertificateInformation({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.UpdateCertificateRecordRollback", async function () {
try {
const data = await client.UpdateCertificateRecordRollback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.UpdateCertificateRecordRetry", async function () {
try {
const data = await client.UpdateCertificateRecordRetry({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostDdosInstanceList", async function () {
try {
const data = await client.DescribeHostDdosInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.VerifyManager", async function () {
try {
const data = await client.VerifyManager({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostClbInstanceList", async function () {
try {
const data = await client.DescribeHostClbInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostTeoInstanceList", async function () {
try {
const data = await client.DescribeHostTeoInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CancelCertificateOrder", async function () {
try {
const data = await client.CancelCertificateOrder({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CertificateOrderSubmit", async function () {
try {
const data = await client.CertificateOrderSubmit({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DownloadCertificate", async function () {
try {
const data = await client.DownloadCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DeleteCertificate", async function () {
try {
const data = await client.DeleteCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CompleteCertificate", async function () {
try {
const data = await client.CompleteCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.UpdateCertificateInstance", async function () {
try {
const data = await client.UpdateCertificateInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.UploadCertificate", async function () {
try {
const data = await client.UploadCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CheckCertificateChain", async function () {
try {
const data = await client.CheckCertificateChain({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.ModifyCertificateAlias", async function () {
try {
const data = await client.ModifyCertificateAlias({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCompanies", async function () {
try {
const data = await client.DescribeCompanies({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCertificateDetail", async function () {
try {
const data = await client.DescribeCertificateDetail({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostVodInstanceList", async function () {
try {
const data = await client.DescribeHostVodInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostLiveInstanceList", async function () {
try {
const data = await client.DescribeHostLiveInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostWafInstanceList", async function () {
try {
const data = await client.DescribeHostWafInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeManagerDetail", async function () {
try {
const data = await client.DescribeManagerDetail({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.UploadRevokeLetter", async function () {
try {
const data = await client.UploadRevokeLetter({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostDeployRecordDetail", async function () {
try {
const data = await client.DescribeHostDeployRecordDetail({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DeployCertificateRecordRollback", async function () {
try {
const data = await client.DeployCertificateRecordRollback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DeployCertificateRecordRetry", async function () {
try {
const data = await client.DeployCertificateRecordRetry({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCertificateBindResourceTaskResult", async function () {
try {
const data = await client.DescribeCertificateBindResourceTaskResult({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CheckCertificateDomainVerification", async function () {
try {
const data = await client.CheckCertificateDomainVerification({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CheckCertificateExist", async function () {
try {
const data = await client.CheckCertificateExist({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DeleteCertificates", async function () {
try {
const data = await client.DeleteCertificates({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.RevokeCertificate", async function () {
try {
const data = await client.RevokeCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.ModifyCertificateProject", async function () {
try {
const data = await client.ModifyCertificateProject({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCertificate", async function () {
try {
const data = await client.DescribeCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeDeployedResources", async function () {
try {
const data = await client.DescribeDeployedResources({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CreateCertificate", async function () {
try {
const data = await client.CreateCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.UploadConfirmLetter", async function () {
try {
const data = await client.UploadConfirmLetter({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostLighthouseInstanceList", async function () {
try {
const data = await client.DescribeHostLighthouseInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostUpdateRecordDetail", async function () {
try {
const data = await client.DescribeHostUpdateRecordDetail({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CommitCertificateInformation", async function () {
try {
const data = await client.CommitCertificateInformation({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCertificateOperateLogs", async function () {
try {
const data = await client.DescribeCertificateOperateLogs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeHostApiGatewayInstanceList", async function () {
try {
const data = await client.DescribeHostApiGatewayInstanceList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CreateCertificateByPackage", async function () {
try {
const data = await client.CreateCertificateByPackage({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.CreateCertificateBindResourceSyncTask", async function () {
try {
const data = await client.CreateCertificateBindResourceSyncTask({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.ModifyCertificatesExpiringNotificationSwitch", async function () {
try {
const data = await client.ModifyCertificatesExpiringNotificationSwitch({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.ReplaceCertificate", async function () {
try {
const data = await client.ReplaceCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.ApplyCertificate", async function () {
try {
const data = await client.ApplyCertificate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeDeleteCertificatesTaskResult", async function () {
try {
const data = await client.DescribeDeleteCertificatesTaskResult({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeManagers", async function () {
try {
const data = await client.DescribeManagers({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.DescribeCertificateBindResourceTaskDetail", async function () {
try {
const data = await client.DescribeCertificateBindResourceTaskDetail({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("ssl.v20191205.ModifyCertificateResubmit", async function () {
try {
const data = await client.ModifyCertificateResubmit({})
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

搜索帮助