-
Notifications
You must be signed in to change notification settings - Fork 20
61 lines (51 loc) · 2.36 KB
/
loadtest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Run loadtests
on:
push:
workflow_dispatch:
jobs:
load-test:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
repository: 'FIWARE/load-tests'
ref: 'master'
- uses: actions/setup-java@v1
with:
java-version: '17'
java-package: jdk
- name: Create config
run: |
# empty the conf
> src/test/resources/test.conf
# config
echo ${GITHUB_REF##*/}
echo "numEntities=400" >> src/test/resources/test.conf
echo baseUrl=\"https://kong-kong-${GITHUB_REF##*/}.apps.fiware-dev-aws.fiware.dev/v2/\" >> src/test/resources/test.conf
echo 'numUpdates=50' >> src/test/resources/test.conf
echo 'fiwareService="AirQuality"' >> src/test/resources/test.conf
echo 'fiwareServicePath="/test"' >> src/test/resources/test.conf
echo 'keycloakAuthEnabled=true' >> src/test/resources/test.conf
echo 'keycloakUsername="e2e-test-user"' >> src/test/resources/test.conf
echo 'keycloakPassword="e2e-test-user"' >> src/test/resources/test.conf
echo 'keycloakClientId="orion-pep"' >> src/test/resources/test.conf
echo 'keycloakClientSecret="978ad148-d99b-406d-83fc-578597290a79"' >> src/test/resources/test.conf
echo keycloakURL=\"https://keycloak-${GITHUB_REF##*/}.apps.fiware-dev-aws.fiware.dev\" >> src/test/resources/test.conf
echo 'keycloakRealm="fiware-server"' >> src/test/resources/test.conf
# add the defaults too
echo 'numGets=20' >> src/test/resources/test.conf
echo 'numQueries= 100' >> src/test/resources/test.conf
echo 'parallelQueries=100' >> src/test/resources/test.conf
echo 'updateDelay=1' >> src/test/resources/test.conf
echo 'batchSize=10' >> src/test/resources/test.conf
echo 'notificationServerUrl="http://quantumleap-quantumleap:8668"' >> src/test/resources/test.conf
echo 'numPrefillEntities=0' >> src/test/resources/test.conf
cat src/test/resources/test.conf
- name: Run tests
run: |
mvn install gatling:test -Dgatling.simulationClass=simulations.nosec.v2.EntityUpdateSimulation
- uses: actions/upload-artifact@v3
with:
name: test-result
path: target/gatling/results/