fuel-plugin-murano-tests/murano_plugin_tests/murano_plugin/test_murano_maintenance_upd...

74 lines
2.4 KiB
Python

# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from fuelweb_test.helpers.decorators import log_snapshot_after_test
from proboscis import test
from murano_plugin_tests.murano_plugin import api
@test(groups=["plugins"])
class TestMuranoPluginMU(api.MuranoPluginApi):
"""Class for Maintenance Update testing the Murano plugin."""
@test(depends_on_groups=["deploy_murano_plugin"],
groups=["test_mu_upgrade_murano_node", "murano",
"test_mu_upgrade", "murano_plugin_upgrade"])
@log_snapshot_after_test
def test_mu_upgrade_murano_node(self):
"""Apply MU over cluster with plugin and Murano node
Scenario:
1. Deploy MOS 9.0 with Murano plugin and murano-node in non-ha
2. Run OSTF
3. Apply MU for 9.1
4. Run OSTF
Duration 70m
Snapshot test_mu_upgrade_murano_node
"""
self.env.revert_snapshot("deploy_murano_plugin")
self.wait_plugin_online()
self.apply_maintenance_update_90_to_91()
self.run_ostf(['sanity', 'smoke'])
self.check_plugin_online()
@test(depends_on_groups=["deploy_murano_plugin_on_controller"],
groups=["test_mu_upgrade_murano_plugin", "murano",
"test_mu_upgrade", "murano_plugin_upgrade"])
@log_snapshot_after_test
def test_mu_upgrade_without_murano_node(self):
"""Apply MU over cluster with plugin without Murano node
Scenario:
1. Deploy MOS 9.0 with Murano plugin in non-ha
2. Run OSTF
3. Apply MU for 9.1
4. Run OSTF
Duration 100m
Snapshot test_mu_upgrade_without_murano_node
"""
self.env.revert_snapshot("deploy_murano_plugin_on_controller")
self.wait_plugin_online()
self.apply_maintenance_update_90_to_91()
self.run_ostf(['sanity', 'smoke'])
self.check_plugin_online()