1 Star 0 Fork 6

aigouzz/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
es.v20180416.test.js 16.16 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-10-30 04:18 +08:00 . release 4.0.963
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.es.v20180416.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("es.v20180416.test.js", function () {
it("es.v20180416.DiagnoseInstance", async function () {
try {
const data = await client.DiagnoseInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteLogstashInstance", async function () {
try {
const data = await client.DeleteLogstashInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.RestoreClusterSnapshot", async function () {
try {
const data = await client.RestoreClusterSnapshot({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.GetRequestTargetNodeTypes", async function () {
try {
const data = await client.GetRequestTargetNodeTypes({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.StopLogstashPipelines", async function () {
try {
const data = await client.StopLogstashPipelines({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeServerlessSpaces", async function () {
try {
const data = await client.DescribeServerlessSpaces({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.InstallInstanceModel", async function () {
try {
const data = await client.InstallInstanceModel({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeIndexList", async function () {
try {
const data = await client.DescribeIndexList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateLogstashPipelineDesc", async function () {
try {
const data = await client.UpdateLogstashPipelineDesc({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeUserCosSnapshotList", async function () {
try {
const data = await client.DescribeUserCosSnapshotList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateIndex", async function () {
try {
const data = await client.UpdateIndex({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteInstance", async function () {
try {
const data = await client.DeleteInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.GetDiagnoseSettings", async function () {
try {
const data = await client.GetDiagnoseSettings({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateIndex", async function () {
try {
const data = await client.CreateIndex({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.StartLogstashPipelines", async function () {
try {
const data = await client.StartLogstashPipelines({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateRequestTargetNodeTypes", async function () {
try {
const data = await client.UpdateRequestTargetNodeTypes({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateDiagnoseSettings", async function () {
try {
const data = await client.UpdateDiagnoseSettings({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateCosMigrateToServerlessInstance", async function () {
try {
const data = await client.CreateCosMigrateToServerlessInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdatePlugins", async function () {
try {
const data = await client.UpdatePlugins({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateLogstashInstance", async function () {
try {
const data = await client.UpdateLogstashInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CheckMigrateIndexMetaData", async function () {
try {
const data = await client.CheckMigrateIndexMetaData({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateJdk", async function () {
try {
const data = await client.UpdateJdk({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteServerlessInstance", async function () {
try {
const data = await client.DeleteServerlessInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateServerlessSpaceV2", async function () {
try {
const data = await client.CreateServerlessSpaceV2({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeClusterSnapshot", async function () {
try {
const data = await client.DescribeClusterSnapshot({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateLogstashInstance", async function () {
try {
const data = await client.CreateLogstashInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.RestartInstance", async function () {
try {
const data = await client.RestartInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateInstance", async function () {
try {
const data = await client.UpdateInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeInstanceLogs", async function () {
try {
const data = await client.DescribeInstanceLogs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.RestartKibana", async function () {
try {
const data = await client.RestartKibana({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.ModifyEsVipSecurityGroup", async function () {
try {
const data = await client.ModifyEsVipSecurityGroup({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateServerlessInstance", async function () {
try {
const data = await client.CreateServerlessInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeServerlessMetrics", async function () {
try {
const data = await client.DescribeServerlessMetrics({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeInstanceOperations", async function () {
try {
const data = await client.DescribeInstanceOperations({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeSpaceKibanaTools", async function () {
try {
const data = await client.DescribeSpaceKibanaTools({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeLogstashPipelines", async function () {
try {
const data = await client.DescribeLogstashPipelines({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeLogstashInstances", async function () {
try {
const data = await client.DescribeLogstashInstances({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeServerlessInstances", async function () {
try {
const data = await client.DescribeServerlessInstances({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeViews", async function () {
try {
const data = await client.DescribeViews({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateInstance", async function () {
try {
const data = await client.CreateInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateServerlessInstance", async function () {
try {
const data = await client.UpdateServerlessInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpgradeInstance", async function () {
try {
const data = await client.UpgradeInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeDiagnose", async function () {
try {
const data = await client.DescribeDiagnose({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteServerlessSpaceUser", async function () {
try {
const data = await client.DeleteServerlessSpaceUser({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteLogstashPipelines", async function () {
try {
const data = await client.DeleteLogstashPipelines({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeInstances", async function () {
try {
const data = await client.DescribeInstances({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateServerlessSpace", async function () {
try {
const data = await client.UpdateServerlessSpace({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteIndex", async function () {
try {
const data = await client.DeleteIndex({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.RestartLogstashInstance", async function () {
try {
const data = await client.RestartLogstashInstance({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.CreateClusterSnapshot", async function () {
try {
const data = await client.CreateClusterSnapshot({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DeleteClusterSnapshot", async function () {
try {
const data = await client.DeleteClusterSnapshot({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeLogstashInstanceLogs", async function () {
try {
const data = await client.DescribeLogstashInstanceLogs({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.RestartNodes", async function () {
try {
const data = await client.RestartNodes({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeServerlessSpaceUser", async function () {
try {
const data = await client.DescribeServerlessSpaceUser({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.SaveAndDeployLogstashPipeline", async function () {
try {
const data = await client.SaveAndDeployLogstashPipeline({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpdateDictionaries", async function () {
try {
const data = await client.UpdateDictionaries({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.UpgradeLicense", async function () {
try {
const data = await client.UpgradeLicense({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeInstancePluginList", async function () {
try {
const data = await client.DescribeInstancePluginList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeIndexMeta", async function () {
try {
const data = await client.DescribeIndexMeta({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.DescribeLogstashInstanceOperations", async function () {
try {
const data = await client.DescribeLogstashInstanceOperations({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("es.v20180416.InquirePriceRenewInstance", async function () {
try {
const data = await client.InquirePriceRenewInstance({})
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

搜索帮助