Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Update tile load test script and add scripts for hompage load, facility download, and facility POST #1857

Merged
merged 8 commits into from
May 23, 2022

Commits on May 20, 2022

  1. Allow setting filters for tile load testing

    Allows for testing tile requests for different facility filters, some of which
    may be more expensive than others.
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    5805d84 View commit details
    Browse the repository at this point in the history
  2. Insert a small random sleep into tile load test requests

    Ensures that the requests in parallel runs using VU_MULTIPLIER do not line up.
    Attempting to make a more realistic test.
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    0b98b07 View commit details
    Browse the repository at this point in the history
  3. Add a helper sciprt to run tile load test infinitely

    The tile load test uses virtual users and iterations to chunk and run requests
    read from a HAR file and exists after one set of tile requests is done. This
    helper loops a run of the scripts with a different CACHE_KEY_SUFFIX for each run
    to allow for testing sustained continuous load.
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    d7ab744 View commit details
    Browse the repository at this point in the history
  4. Add a homepage browsing load test script

    This script was initially created by browsing the home page, exporting the
    requests as a HAR file, converting the HAR file to a script using k6.io, then
    modifying the script to simulate the parallel request behavior of a browser.
    
    Making API requests requires a CLIENT_KEY so we update the load testing compose
    file to pass through an appropriate environment variable.
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    69a7ef0 View commit details
    Browse the repository at this point in the history
  5. Add a facility download load test script

    Mimics the process used by the application to load a page of facilities at a
    time. Calling the API requires setting the CLIENT_KEY environment variable.
    FILTERS can be set to change the query string arguments passed to each page
    request.
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    e4142eb View commit details
    Browse the repository at this point in the history
  6. Update load testing README

    Includes definitions of all supported env vars and examples of how to run each
    of the load test scripts.
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    6fa521d View commit details
    Browse the repository at this point in the history
  7. Add facility POST load test

    To simulate API partners POSTing a list of facilities to the API.
    
    `addresses.csv` was generated by downloading facility addresses from the staging
    data set.
    
    Portions of the random-ish facility name generator were adapted from
    https://github.com/joke2k/faker/blob/5b98d2ab877e414b51e76abc8fdde2fb2dad6710/faker/providers/company/__init__.py
    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    6be6e62 View commit details
    Browse the repository at this point in the history
  8. Update CHANGELOG

    jwalgran committed May 20, 2022
    Configuration menu
    Copy the full SHA
    e46e9be View commit details
    Browse the repository at this point in the history