Skip to content

disable openshift deployment (#156) #27

disable openshift deployment (#156)

disable openshift deployment (#156) #27

Workflow file for this run

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/