Very basic trilio update test (#616)

Simple test that the action to update trilio completes.
This commit is contained in:
Liam Young
2021-08-10 11:25:50 +01:00
committed by GitHub
parent 6a4f3d4abf
commit 12596b4a7a

View File

@@ -18,6 +18,7 @@
import logging
import tenacity
import unittest
import zaza.model as zaza_model
@@ -424,6 +425,22 @@ class TrilioBaseTest(test_utils.OpenStackBaseTest):
logging.info("Initiating restore")
workloadmgrcli.oneclick_restore(snapshot_id)
def test_update_trilio_action(self):
"""Test that the action runs succesfully."""
action_name = 'update-trilio'
actions = zaza_model.get_actions(
self.application_name)
if action_name not in actions:
raise unittest.SkipTest(
'Action {} not defined'.format(action_name))
generic_utils.assertActionRanOK(zaza_model.run_action(
self.lead_unit,
action_name,
action_params={},
model_name=self.model_name)
)
class TrilioGhostNFSShareTest(TrilioBaseTest):
"""Tests for Trilio charms providing the ghost-share action."""