Skip to content

hmrc/digital-tariffs-trader-performance-tests

Repository files navigation

digital-tariffs-trader-performance-tests

Commands for running the Gatling tests from the local terminal

command for running all Gatling simulations

command for running all Gatling simulations in Staging
./run.sh

OR

./run_smoke_test.sh 

Jenkins

Jenkins job

Jenkins configurations

Performance testing documentation

digital-tariffs-trader-performance-tests

License

This code is open source software licensed under the Apache 2.0 License.

Run the tests locally

Service Manager 2

Install Service Manager 2: https://github.com/hmrc/sm2

Clone this project: https://github.com/hmrc/service-manager-config/

Mongo

Run an instance of Mongo database. Version 5.0 is recommended.

Localstack

Please ensure you have Docker installed before continuing with these steps.

You might need to modify your ~/.bash_profile file by adding export PATH="/Users/<USR>/Library/Python/2.7/bin:$PATH" (Run source ~/.bash_profile for reloading it without restarting your machine) (one time only)

Install localstack:

pip install localstack --user --upgrade --ignore-installed six (one time only)

pip install amazon_kclpy (one time only)

localstack start (one time only)

Start localstack

SERVICES=s3 localstack start (we need only the S3 service)

Set up aws cli credentials by running aws configure (one time only)

AWS Access Key ID [None]: test
AWS Secret Access Key [None]: dGVzdA==
Default region name [None]: eu-west-2
Default output format [None]:

Create the bucket

aws --endpoint-url=http://localhost:4572 s3 mb s3://digital-tariffs-local

Then check this URL is available in the browser http://localhost:4572/digital-tariffs-local

Run required microservices

Run the following command:

sm2 --start DIGITAL_TARIFFS
sm2 --start FEEDBACK_FRONTEND

Stop any relevant services that you will be running locally through the console:
eg. sm2 --stop BINDING_TARIFF_CLASSIFICATION
command for running all Gatling simulations in Localhost
./run_local.sh

OR

./run_smoke_test_local.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 23