<commit_before>Shindo.tests('Fog::Rackspace::Monitoring | list_tests', ['rackspace','rackspace_monitoring']) do
  pending if Fog.mocking? 

  account = Fog::Rackspace::Monitoring.new
  entity_id = account.create_entity(:label => "Foo").data[:headers]["X-Object-ID"]
  check_id = account.create_check(entity_id,CHECK_CREATE_OPTIONS).data[:headers]["X-Object-ID"]
  metric_name = "idle_percent_average"
  now = Time.now.to_i
  SLEEP_TIME= 2
  sleep(SLEEP_TIME) unless Fog.mocking?

  tests('success') do
    
    tests('#get list of monitoring zones').formats(LIST_MONITORING_ZONE) do
      pending if mocking?
      account.list_monitoring_zones.body
    end

    tests('#get a monitoring zone').formats(GET_MONITORING_ZONE) do
      pending if mocking?
      account.get_monitoring_zone('mzdfw').body
    end


    tests('#get list of checks').formats(LIST_HEADERS_FORMAT) do<commit_msg>using Fog.mocking rather than mocking?<commit_after>Shindo.tests('Fog::Rackspace::Monitoring | list_tests', ['rackspace','rackspace_monitoring']) do
  pending if Fog.mocking? 

  account = Fog::Rackspace::Monitoring.new
  entity_id = account.create_entity(:label => "Foo").data[:headers]["X-Object-ID"]
  check_id = account.create_check(entity_id,CHECK_CREATE_OPTIONS).data[:headers]["X-Object-ID"]
  metric_name = "idle_percent_average"
  now = Time.now.to_i
  SLEEP_TIME= 2
  sleep(SLEEP_TIME) unless Fog.mocking?

  tests('success') do
    
    tests('#get list of monitoring zones').formats(LIST_MONITORING_ZONE) do
      pending if Fog.mocking?
      account.list_monitoring_zones.body
    end

    tests('#get a monitoring zone').formats(GET_MONITORING_ZONE) do
      pending if Fog.mocking?
      account.get_monitoring_zone('mzdfw').body
    end


    tests('#get list of checks').formats(LIST_HEADERS_FORMAT) do
{'fraction_non_alphanumeric': 0.1261759822910902, 'fraction_numerical': 0.0011068068622025456, 'mean_word_length': 4.832258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5824852', 'n_tokens_mistral': 641, 'n_tokens_neox': 617, 'n_words': 105}