Package to run tests against osml-tile-server deployments.
Project description
OSML Tile Server Test
This package contains the integration tests for OSML Tile Server application
Table of Contents
Getting Started
Prerequisites
First, ensure you have installed the following tools locally
Installation Guide
- 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
Documentation
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
Running Tests
In AWS Lambda
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.
In Docker
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).
Support & Feedback
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.
Security
See CONTRIBUTING for more information.
License
MIT No Attribution Licensed. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file osml_tile_server_test-0.2.0.tar.gz
.
File metadata
- Download URL: osml_tile_server_test-0.2.0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe3fee9293df7d6c143b767b2e7d244554e062c842899583fdd6457f9a7f8b8 |
|
MD5 | a523ef581db948fdffef6df5931be45c |
|
BLAKE2b-256 | 87b2c28f40eee60a0194849dc2ba81baf222acdc6e8d86f873c587b65bfafac5 |
File details
Details for the file osml_tile_server_test-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: osml_tile_server_test-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5603c8f687d52f135cd1885a19fba325d9793d571b7d5649c799521f93443ddd |
|
MD5 | be8a109766a2571577b46ac59d1ef60c |
|
BLAKE2b-256 | 9f7a72724315a34a8b94a71bf0a68365b613b346d2a545f42248553dde35e49e |