qa-core job tidy up

This commit is contained in:
Martin McKeaveney 2023-03-31 12:15:24 +01:00
parent ceba91fd5c
commit 30d08c13ab
8 changed files with 8 additions and 12 deletions

View File

@ -3,7 +3,4 @@ BB_ADMIN_USER_PASSWORD=budibase
COUCH_DB_URL=http://budibase:budibase@localhost:4567
COUCH_DB_USER=budibase
COUCH_DB_PASSWORD=budibase
JWT_SECRET=test
BUDIBASE_SERVER_URL=http://localhost:4100
BUDIBASE_HOST= budirelease.live
BUDIBASE_ACCOUNTS_URL=https://account.budirelease.live
JWT_SECRET=test

1
qa-core/.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules/
watchtower-hook.json
dist/
.testReport.json
testResults.json

View File

@ -18,10 +18,9 @@
"docker:down": "docker-compose down",
"api:server:setup": "npm run docker:up && env-cmd ts-node ../packages/builder/ts/setup.ts",
"api:server:setup:ci": "env-cmd node ../packages/builder/setup.js",
"api:test": "jest --runInBand --json --outputFile=testResults.json",
"api:test:ci": "start-server-and-test api:server:setup:ci http://localhost:4100/builder test",
"api:test": "start-server-and-test api:server:setup http://localhost:4100/builder test",
"api:test:local": "env-cmd jest --runInBand --testPathIgnorePatterns=\\\"\\/dataSources\\/\\\"",
"api:test:nightly": "env-cmd jest --runInBand --json --outputFile=testResults.json"
"api:test:local": "start-server-and-test api:server:setup http://localhost:4100/builder test"
},
"jest": {
"preset": "ts-jest",

View File

@ -17,7 +17,7 @@ class InternalAPIClient {
constructor(appId?: string) {
if (!env.BUDIBASE_HOST) {
throw new Error("Must set BUDIBASE_SERVER_URL env var")
throw new Error("Must set BUDIBASE_HOST env var")
}
this.host = `${env.BUDIBASE_HOST}/api`
this.appId = appId

View File

@ -16,7 +16,7 @@ class AccountsAPIClient {
constructor(appId?: string) {
if (!env.BUDIBASE_ACCOUNTS_URL) {
throw new Error("Must set BUDIBASE_SERVER_URL env var")
throw new Error("Must set BUDIBASE_ACCOUNTS_URL env var")
}
this.host = `${env.BUDIBASE_ACCOUNTS_URL}/api`
this.appId = appId

View File

@ -19,7 +19,7 @@ class PublicAPIClient {
constructor(appId?: string) {
if (!env.BUDIBASE_HOST) {
throw new Error(
"Must set BUDIBASE_PUBLIC_API_KEY and BUDIBASE_SERVER_URL env vars"
"Must set BUDIBASE_HOST env var"
)
}
this.host = `${env.BUDIBASE_HOST}/api/public/v1`

View File

@ -16,7 +16,7 @@ class AccountsAPIClient {
constructor(appId?: string) {
if (!env.BUDIBASE_ACCOUNTS_URL) {
throw new Error("Must set BUDIBASE_SERVER_URL env var")
throw new Error("Must set BUDIBASE_ACCOUNTS_URL env var")
}
this.host = `${env.BUDIBASE_ACCOUNTS_URL}/api`
this.appId = appId

View File

@ -1,5 +1,4 @@
const env = {
BUDIBASE_SERVER_URL: process.env.BUDIBASE_SERVER_URL,
BUDIBASE_ACCOUNT_URL: process.env.BUDIBASE_ACCOUNT_URL,
BUDIBASE_PUBLIC_API_KEY: process.env.BUDIBASE_PUBLIC_API_KEY,
BUDIBASE_ACCOUNTS_URL: process.env.BUDIBASE_ACCOUNTS_URL,