def test_10_change_plugins(self):
"""Validate that plugins get updated after a config change."""
plugins = "groovy greenballs"
charm_name = self.spec.deployment.charm_name
self.spec.deployment.configure(charm_name, {"plugins": plugins})
self.spec.deployment.sentry.wait()
@retry(stop_max_attempt_number=10, wait_fixed=1000)
def assert_plugins():
plugins = self.spec.plugins_list()
self.assertIn("groovy", plugins, "Failed to locate groovy")
self.assertIn("greenballs", plugins, "Failed to locate greenballs")
assert_plugins()
评论列表
文章目录