OpenSearch

Channel Revision Published Runs on
2/stable 168 24 Sep 2024
Ubuntu 22.04
2/candidate 168 24 Sep 2024
Ubuntu 22.04
2/beta 168 24 Sep 2024
Ubuntu 22.04
2/edge 188 06 Nov 2024
Ubuntu 22.04
juju deploy opensearch --channel 2/stable
Show information

Platform:

Ubuntu
22.04

Note: All commands are written for juju >= v.3.1. Charmed OpenSearch no longer supports juju v.2.

Software testing for charms

Most types of standard software tests are applicable to Charmed OpenSearch.

This reference addresses the following types:

Unit test

Check the Contributing guide and follow tox run -e unit examples there.

Integration test

The integration tests coverage is rather rich in the OpenSearch charm. Check the Contributing guide and follow tox run -e integration examples there.

For high availability (HA) related tests, each test serves as an integration as well as a smoke test with continuous writes routine being perpetually ran in parallel of whatever operation the test is involved in. These continuous writes ensure the availability of the service under different conditions.

HA tests make use of one of the 2 fixtures:

  • c_writes_runnner: creates an index with a default replication factor and continuously “bulk” feeds data to it
  • c_balanced_writes_runner: creates an index with 2 primary shards and as many replica shards as the number of nodes available in the cluster, and continuously “bulk” feeds data to it.

After each test completes, the index gets deleted.

Performance test

Refer to the OpenSearch VM benchmark guide for charmed OpenSearch.


Help improve this document in the forum (guidelines). Last updated 4 months ago.