Very basic trilio update test (#616)
Simple test that the action to update trilio completes.
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user