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