From 6d210220be0875d63461829d83c6e3a59d05cf7a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Sep 2021 10:27:04 +0200 Subject: Fix NSFW filter and add tests --- scripts/e2e/browserstack.sh | 2 +- scripts/e2e/local.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'scripts/e2e') diff --git a/scripts/e2e/browserstack.sh b/scripts/e2e/browserstack.sh index 69a12d14c..fb125ea23 100755 --- a/scripts/e2e/browserstack.sh +++ b/scripts/e2e/browserstack.sh @@ -6,4 +6,4 @@ npm run clean:server:test npm run concurrently -- -k -s first \ "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.browserstack.conf.ts" \ - "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" + "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }, \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" diff --git a/scripts/e2e/local.sh b/scripts/e2e/local.sh index bbbdb5f0b..fe8b7f559 100755 --- a/scripts/e2e/local.sh +++ b/scripts/e2e/local.sh @@ -4,6 +4,14 @@ set -eu npm run clean:server:test +config="{" +config+=" \"rates_limit\": { \"api\": { \"max\": 5000 }, \"login\": { \"max\": 5000 } }" +config+=", \"log\": { \"level\": \"warn\" }" +config+=", \"signup\": { \"enabled\": false }" +config+=", \"transcoding\": { \"enabled\": false }" +config+="}" + npm run concurrently -- -k -s first \ "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.local.conf.ts" \ - "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" + "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=1 node dist/server" \ + "NODE_ENV=test NODE_CONFIG='$config' NODE_APP_INSTANCE=2 node dist/server" -- cgit v1.2.3