MongoDB

Channel Revision Published Runs on
6/stable 199 04 Oct 2024
Ubuntu 22.04
6/candidate 199 04 Oct 2024
Ubuntu 22.04
6/beta 199 04 Oct 2024
Ubuntu 22.04
6/edge 201 10 Oct 2024
Ubuntu 22.04
5/stable 117 20 Apr 2023
Ubuntu 22.04
5/candidate 117 20 Apr 2023
Ubuntu 22.04
5/edge 139 21 Nov 2023
Ubuntu 22.04 Ubuntu 20.04
5/edge 109 06 Mar 2023
Ubuntu 22.04 Ubuntu 20.04
3.6/stable 100 28 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/candidate 100 13 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/edge 100 03 Feb 2023
Ubuntu 20.04 Ubuntu 18.04
juju deploy mongodb --channel 6/beta
Show information

Platform:

Ubuntu
22.04 20.04 18.04

Charm Testing reference

:information_source: Hint: Use Juju 3. (Charmed MongoDB dropped support for juju 2.9)

There are a lot of test types available and most of them are well applicable for Charmed MongoDB. Here is a list prepared by Canonical:

  • Unit tests
  • Integration tests
  • Performance tests

Unit tests:

Please check the “Contributing” guide and follow tox run -e unit examples there.

Integration tests:

The integration tests coverage is rather rich in the MongoDB charm. Please check the “Contributing” guide and follow tox run -e integration examples there.

For tests related to complex features, and HA (High Availability) - each test serves as an integration as well as a smoke test with continuous writes routines 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.

Those tests make use of the following fixture:

  • continuous_writes: creates a replicated collection and continuously stores data into it.

After each test completes, the collection gets deleted.

Performance test

Refer to the charmed MongoDB VM benchmark guide for charmed Charmed MongoDB.


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