From c29d688d4501e985e079518aa3957258ca0d1832 Mon Sep 17 00:00:00 2001 From: Julia Bardi Date: Tue, 2 Nov 2021 09:26:57 +0100 Subject: [PATCH] fixed review comments --- x-pack/plugins/fleet/.gitignore | 4 ---- .../fleet/cypress/plugins/{index.js => index.ts} | 3 +-- .../cypress/support/{commands.js => commands.ts} | 0 x-pack/test/fleet_cypress/agent.ts | 13 ------------- 4 files changed, 1 insertion(+), 19 deletions(-) rename x-pack/plugins/fleet/cypress/plugins/{index.js => index.ts} (92%) rename x-pack/plugins/fleet/cypress/support/{commands.js => commands.ts} (100%) diff --git a/x-pack/plugins/fleet/.gitignore b/x-pack/plugins/fleet/.gitignore index 805cb30585cf1..e69de29bb2d1d 100644 --- a/x-pack/plugins/fleet/.gitignore +++ b/x-pack/plugins/fleet/.gitignore @@ -1,4 +0,0 @@ -elastic-agent-* -fleet-server-* -elastic-agent.yml -fleet-server.yml \ No newline at end of file diff --git a/x-pack/plugins/fleet/cypress/plugins/index.js b/x-pack/plugins/fleet/cypress/plugins/index.ts similarity index 92% rename from x-pack/plugins/fleet/cypress/plugins/index.js rename to x-pack/plugins/fleet/cypress/plugins/index.ts index 71d2e26d32e05..389202c997702 100644 --- a/x-pack/plugins/fleet/cypress/plugins/index.js +++ b/x-pack/plugins/fleet/cypress/plugins/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -/// +// / // *********************************************************** // This example plugins/index.js can be used to load plugins // @@ -22,7 +22,6 @@ /** * @type {Cypress.PluginConfig} */ -// eslint-disable-next-line no-unused-vars module.exports = (_on, _config) => { // `on` is used to hook into various events Cypress emits // `config` is the resolved Cypress config diff --git a/x-pack/plugins/fleet/cypress/support/commands.js b/x-pack/plugins/fleet/cypress/support/commands.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/support/commands.js rename to x-pack/plugins/fleet/cypress/support/commands.ts diff --git a/x-pack/test/fleet_cypress/agent.ts b/x-pack/test/fleet_cypress/agent.ts index bbbfdcbba7ae8..e05a21c6a63e3 100644 --- a/x-pack/test/fleet_cypress/agent.ts +++ b/x-pack/test/fleet_cypress/agent.ts @@ -45,19 +45,6 @@ export class AgentManager extends Manager { {}, this.requestOptions ); - - // this.log.info('Updating the default agent output'); - // const { - // data: { - // items: [defaultOutput], - // }, - // } = await axios.get(this.params.kibanaUrl + '/api/fleet/outputs', this.requestOptions); - - // await axios.put( - // `${this.params.kibanaUrl}/api/fleet/outputs/${defaultOutput.id}`, - // { hosts: [this.params.esHost] }, - // this.requestOptions - // ); } public async startAgent() {