removed ADMIN_SECRET env var (no longer needed)

This commit is contained in:
Michael Shanks 2020-06-21 20:54:37 +01:00
parent 39f22ff834
commit bf89f3c403
5 changed files with 22 additions and 6 deletions

View File

@ -0,0 +1,21 @@
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}

View File

@ -11,7 +11,7 @@ const run = require("../../cli/src/commands/run/runHandler")
rimraf.sync(homedir)
init({ dir: homedir })
init({ dir: homedir, clientId: "cypress-test" })
.then(() => {
run({ dir: homedir })
})

View File

@ -5,9 +5,6 @@ COUCH_DB_URL={{couchDbUrl}}
# identifies a client database - i.e. group of apps
CLIENT_ID={{clientId}}
# Full access API key for server
ADMIN_SECRET={{adminSecret}}
# used to create cookie hashes
JWT_SECRET={{cookieKey1}}

View File

@ -4,5 +4,4 @@ process.env.NODE_ENV = "jest"
process.env.JWT_SECRET = "test-jwtsecret"
process.env.CLIENT_ID = "test-client-id"
process.env.BUDIBASE_DIR = tmpdir("budibase-unittests")
process.env.ADMIN_SECRET = "test-admin-secret"
process.env.LOG_LEVEL = "silent"

View File

@ -3,7 +3,6 @@ module.exports = {
NODE_ENV: process.env.NODE_ENV,
JWT_SECRET: process.env.JWT_SECRET,
BUDIBASE_DIR: process.env.BUDIBASE_DIR,
ADMIN_SECRET: process.env.ADMIN_SECRET,
PORT: process.env.PORT,
COUCH_DB_URL: process.env.COUCH_DB_URL,
SALT_ROUNDS: process.env.SALT_ROUNDS,