<commit_before>require_relative './../../../spec_helper'

describe 'oneview_test_api1600_c7000::hypervisor_cluster_profile_delete' do
  let(:resource_name) { 'hypervisor_cluster_profile' }
  include_context 'chef context'
  let(:target_class) { OneviewSDK::API1600::C7000::HypervisorClusterProfile }

  it 'removes it with soft delete if it exist' do
    expect_any_instance_of(target_class).to receive(:retrieve!).and_return(true)
    expect_any_instance_of(target_class).to receive(:delete).and_return(true)
    expect(real_chef_run).to delete_oneview_hypervisor_cluster_profile('ClusterProfile1', true, false)
  end

  it 'removes it if it exist' do
    expect_any_instance_of(target_class).to receive(:retrieve!).and_return(true)
    expect_any_instance_of(target_class).to receive(:delete).and_return(true)
    expect(real_chef_run).to delete_oneview_hypervisor_cluster_profile('ClusterProfile1')
  end

  it 'removes it if it doesnot exist' do
    expect_any_instance_of(target_class).to receive(:retrieve!).and_return(false)
    expect_any_instance_of(target_class).to_not receive(:delete)
    expect(real_chef_run).to delete_oneview_hypervisor_cluster_profile('ClusterProfile1')
  end
end<commit_msg>Change module path for UT<commit_after>require_relative './../../../spec_helper'

describe 'oneview_test::hypervisor_cluster_profile_delete' do
  let(:resource_name) { 'hypervisor_cluster_profile' }
  include_context 'chef context'
  let(:target_class) { OneviewSDK::HypervisorClusterProfile }

  it 'removes it with soft delete if it exist' do
    expect_any_instance_of(target_class).to receive(:retrieve!).and_return(true)
    expect_any_instance_of(target_class).to receive(:delete).and_return(true)
    expect(real_chef_run).to delete_oneview_hypervisor_cluster_profile('ClusterProfile1', true, false)
  end

  it 'removes it if it exist' do
    expect_any_instance_of(target_class).to receive(:retrieve!).and_return(true)
    expect_any_instance_of(target_class).to receive(:delete).and_return(true)
    expect(real_chef_run).to delete_oneview_hypervisor_cluster_profile('ClusterProfile1')
  end

  it 'removes it if it doesnot exist' do
    expect_any_instance_of(target_class).to receive(:retrieve!).and_return(false)
    expect_any_instance_of(target_class).to_not receive(:delete)
    expect(real_chef_run).to delete_oneview_hypervisor_cluster_profile('ClusterProfile1')
  end
end
{'fraction_non_alphanumeric': 0.10091743119266056, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 7.023411371237458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1695061', 'n_tokens_mistral': 792, 'n_tokens_neox': 762, 'n_words': 125}