Coverage for plugin/tests/test_plugin : 97%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# ============LICENSE_START========================================== # =================================================================== # Copyright (c) 2018-2020 AT&T # # 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. # ============LICENSE_END============================================
resources_to_copy=[(path.join('blueprint', 'plugin', 'test_plugin.yaml'), 'plugin')]) def test_stop(self, cfy_local, mock_execute_command, mock_os_remove): # execute install workflow """
:param cfy_local: """
# extract single node instance
resources_to_copy=[(path.join('blueprint', 'plugin', 'test_plugin.yaml'), 'plugin')]) def test_start(self, cfy_local, mock_execute_command): # execute install workflow """
:param cfy_local: """
# extract single node instance
resources_to_copy=[(path.join('blueprint', 'plugin', 'test_plugin.yaml'), 'plugin')]) def test_config(self, cfy_local, mock_execute_command): # execute install workflow """
:param cfy_local: """
# extract single node instance
resources_to_copy=[(path.join('blueprint', 'plugin', 'test_plugin.yaml'), 'plugin')]) def test_rollback(self, cfy_local): # execute install workflow """
:param cfy_local: """ parameters={'node_instance_id': node_instance_id, 'revision': revision}) self.fail('Expected exception due to operation not exist')
resources_to_copy=[(path.join('blueprint', 'plugin', 'test_plugin.yaml'), 'plugin')]) def test_upgrade(self, cfy_local): # execute install workflow """
:param cfy_local: """ parameters={'node_instance_id': node_instance_id, 'config': config_json, 'config_url': config_url, 'config_format': config_format, 'chart_version': chartVersion, 'chart_repo_url': chartRepo, 'repo_user': repo_user, 'repo_user_password': repo_user_passwd}) self.fail('Expected exception due to operation not exist')
def test_op_rollback(self, mock_execute_command): # test operation rollback """
:rollback operation test: """ 'component_name': 'test_node', 'namespace': 'onap', 'tiller_port': '8888', 'tiller_ip': '1.1.1.1', 'tls_enable': 'false' } properties=props) finally:
def test_op_upgrade(self, mock_execute_command): # test operation upgrade """
:upgrade operation test: """ 'component_name': 'test_node', 'namespace': 'onap', 'tiller_port': '8888', 'tiller_ip': '1.1.1.1', 'tls_enable': 'false', 'config_dir': '/tmp' } 'config_set': 'config_set', 'config_json': '', 'config_url': '', 'config_format': 'format', 'repo_user': '', 'repo_user_passwd': ''} properties=props) finally: |