canonical / mongodb-operator

Charmed solution for MongoDB
Apache License 2.0
12 stars 14 forks source link

[DPE-4755] [DPE-4753] Implement upgrade proceedure and basic integration tests for upgrading a sharded cluster #428

Closed MiaAltieri closed 4 months ago

MiaAltieri commented 4 months ago

Issue

Missing tests that verify:

  1. success of pre-upgrade check
  2. failure of pre-upgrade check
  3. success of upgrade operations

Solution

Add missing tests

Notes:

The upgrade test is disabled until the upgrade work is published on charmhub, but the test suite was ran manually by building the charm with an earlier snap and upgrading the charm to a newer snap revision

Future Work

Once the upgrade work is published on charm hub

  1. Deploy charmcraft charm in the test deployment step
  2. Re-enable upgrade test