From 15bd45c2d2dcbb4b9b305d9f2de81898aae6b24e Mon Sep 17 00:00:00 2001 From: Midhun Kumar E Date: Thu, 19 Jan 2023 16:09:05 +0530 Subject: [PATCH] Add cypress.env.example (#5366) * Add cypress.env.example file * Remove js config(unused) * Remove all env vars from config file --- cypress-tests/.gitignore | 3 +- cypress-tests/cypress.config.js | 48 ---------------------------- cypress-tests/cypress.env.example | 49 +++++++++++++++++++++++++++++ cypress-tests/cypress/jsconfig.json | 12 ------- 4 files changed, 51 insertions(+), 61 deletions(-) create mode 100644 cypress-tests/cypress.env.example delete mode 100644 cypress-tests/cypress/jsconfig.json diff --git a/cypress-tests/.gitignore b/cypress-tests/.gitignore index 30bc162798..ca68be770b 100644 --- a/cypress-tests/.gitignore +++ b/cypress-tests/.gitignore @@ -1 +1,2 @@ -/node_modules \ No newline at end of file +/node_modules +/cypress.env.json \ No newline at end of file diff --git a/cypress-tests/cypress.config.js b/cypress-tests/cypress.config.js index d958bc3db7..ad26145508 100644 --- a/cypress-tests/cypress.config.js +++ b/cypress-tests/cypress.config.js @@ -12,55 +12,7 @@ module.exports = defineConfig({ viewportHeight: 960, chromeWebSecurity: false, trashAssetsBeforeRuns: true, - env: { - pg_host: "", - pg_user: "", - pg_password: "", - elasticsearch_host: "", - elasticsearch_user: "", - elasticsearch_password: "", - - sso_password: "", - git_user: "", - google_user: "", - - dynamodb_access_key: "", - dynamodb_secret_key: "", - - smtp_host: "", - smtp_port: "587", - smtp_user: "", - smtp_password: "", - - redis_host: "", - redis_port: "", - redis_password: "", - - mongodb_connString: "", - mongodb_host: "", - mongodb_user: "", - mongo_password: "", - - bigquery_pvt_key: {}, - - firestore_pvt_key: {}, - - mysql_host: "", - mysql_user: "", - mysql_password: "", - - aws_access: "", - aws_secret: "", - - }, - db: { - user: "postgres", - host: "localhost", - database: "tooljet_development", - password: "postgres", - port: "5432", - }, e2e: { setupNodeEvents(on, config) { on("task", { diff --git a/cypress-tests/cypress.env.example b/cypress-tests/cypress.env.example new file mode 100644 index 0000000000..35a68e3669 --- /dev/null +++ b/cypress-tests/cypress.env.example @@ -0,0 +1,49 @@ +{ + "sso_password": "", + "git_user": "", + "google_user": "", + + "pg_host": "", + "pg_user": "", + "pg_password": "", + + "elasticsearch_host": "", + "elasticsearch_user": "", + "elasticsearch_password": "", + + "dynamodb_access_key": "", + "dynamodb_secret_key": "", + + "smtp_host": "", + "smtp_port": "", + "smtp_user": "", + "smtp_password": "", + + "redis_host": "", + "redis_port": "", + "redis_password": "", + + "mongodb_connString": "", + "mongodb_host": "", + "mongodb_user": "", + "mongo_password": "", + + "bigquery_pvt_key": {}, + + "firestore_pvt_key": {}, + + "mysql_host": "", + "mysql_user": "", + "mysql_password": "", + + "aws_access": "", + "aws_secret": "", + + "app_db": { + "user": "postgres", + "host": "localhost", + "database": "tooljet_development", + "password": "postgres", + "port": "5432" + } +} diff --git a/cypress-tests/cypress/jsconfig.json b/cypress-tests/cypress/jsconfig.json deleted file mode 100644 index 77fcc67601..0000000000 --- a/cypress-tests/cypress/jsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "Texts/*": [ - "./constants/texts/*" - ], - "Selectors/*": [ - "./constants/selectors/*" - ] - } - } -} \ No newline at end of file