From 74ce8f4c5ed200d0b988f4aaa093e148c9daa0e8 Mon Sep 17 00:00:00 2001 From: MatteoGioioso Date: Tue, 3 Nov 2020 08:49:39 +0700 Subject: [PATCH] fix: add .npmignore and env var to artillery --- .npmignore | 2 ++ __tests__/artillery.yaml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..327e1b2 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +tests/ +__tests__/ diff --git a/__tests__/artillery.yaml b/__tests__/artillery.yaml index c51db2f..91a9c79 100644 --- a/__tests__/artillery.yaml +++ b/__tests__/artillery.yaml @@ -1,8 +1,8 @@ config: - target: 'https://exzsi21ncc.execute-api.ap-southeast-1.amazonaws.com/Prod/' + target: "{{ $processEnvironment.URL }}" phases: - - duration: 20 # seconds - arrivalRate: 100 # requests per seconds + - duration: 2 # seconds + arrivalRate: 2 # requests per seconds scenarios: - name: "Connect"