def test_action_should_not_be_run_while_cluster_has_an_issue(sdk_client_fs: ADCMClient):
    bundle_path = utils.get_data_dir(__file__, 'cluster')
    bundle = sdk_client_fs.upload_from_fs(bundle_path)
    cluster = bundle.cluster_create(name=utils.random_string())
    with allure.step(f'Run action with error for cluster {cluster.name}'):
        with pytest.raises(ActionHasIssues):
            cluster.action(name='install').run()
def test_action_should_not_be_run_while_cluster_has_an_issue(sdk_client_fs: ADCMClient):
    bundle_path = utils.get_data_dir(__file__, 'cluster')
    bundle = sdk_client_fs.upload_from_fs(bundle_path)
    cluster = bundle.cluster_create(name=utils.random_string())
    with allure.step(f'Run action with error for cluster {cluster.name}'):
        with pytest.raises(ActionHasIssues):
            cluster.action(name='install').run()