This package contains the integration tests for OSML Tile Server application
First, ensure you have installed the following tools locally
- Clone
osml-tile-server-test
package into your desktop
git clone https://github.com/aws-solutions-library-samples/osml-tile-server-test.git
- Run
tox
to create a virtual environment
cd osml-tile-server-test
tox
You can find documentation for this library in the ./doc
directory. Sphinx is used to construct a searchable HTML
version of the API documents.
tox -e docs
The Tile Server Test package is designed to be deployed as an AWS Lambda Container.
The osml-cdk-constructs
package contains the required resources, and example stacks can be found in the associated
AWS Guidance Repository.
When deployed in this manner, the Tile Server integration tests can be initiated by running npm run integ:tile-server
from the guidance repository.
For testing and development purposes, the Tile Server tests can be executed locally in Docker.
Arguments can be passed to docker run to configure the endpoint, test type, source bucket, and source image.
If testing against a local tile server, --network host
may need to be added as a docker run
flag.
Example Build:
docker build . -t tile-server-test:latest
Example Integration test:
docker run --name osml-tile-server-test --rm tile-server-test:latest --endpoint <Endpoint URL> --test_type integ --source_image_bucket <S3 bucket> --source_image_key <S3 Image Key> -v
Example Locust Load test (Default UI address is http://localhost:8089):
docker run --name osml-tile-server-test --rm tile-server-test:latest --endpoint <Endpoint URL> --test_type load --source_image_bucket <S3 bucket> --locust_image_keys <S3 Image Key>,<S3 Image Key> -v
Other optional load test flags are:
--locust_headless <true/false>
Disable the web interface, and start the test immediately. Default: False--locust_users <number>
Load Test: Peak number of concurrent Locust users.--locust_run_time <string>
Stop after the specified amount of time, e.g. (300s, 20m, 3h, 1h30m, etc.)--locust_spawn_rate <string>
Rate to spawn users at (users per second).
To post feedback, submit feature ideas, or report bugs, please use the Issues section of this GitHub repo.
If you are interested in contributing to OversightML Model Runner, see the CONTRIBUTING guide.
See CONTRIBUTING for more information.
MIT No Attribution Licensed. See LICENSE.