<commit_before>provider, config = :ecloud, compute_providers[:ecloud]
connection   = Fog::Compute[provider]
organization = connection.organizations.first
environment  = organization.environments.find{|e| e.name == config[:server_attributes][:environment_name]} || organization.environments.first
public_ip    = environment.public_ips.first
compute_pool = environment.compute_pools.first
image_href   = Fog.credentials[:ecloud_image_href] || compute_pool.templates.first.href
ssh_key      = organization.admin.ssh_keys.detect { |key| key.name == "root" }

Shindo.tests("Fog::Compute[:#{provider}] | servers", [provider.to_s, "operations"]) do

  @network = environment.networks.first
  options  = config[:server_attributes].merge(:network_uri => @network.href, :ssh_key_uri => ssh_key.href)<commit_msg>[ecloud|compute] Fixes ecloud server tests<commit_after>provider, config = :ecloud, compute_providers[:ecloud]

Shindo.tests("Fog::Compute[:#{provider}] | servers", [provider.to_s, "operations"]) do
  connection   = Fog::Compute[provider]
  organization = connection.organizations.first
  environment  = organization.environments.find{|e| e.name == config[:server_attributes][:environment_name]} || organization.environments.first
  public_ip    = environment.public_ips.first
  compute_pool = environment.compute_pools.first
  image_href   = Fog.credentials[:ecloud_image_href] || compute_pool.templates.first.href
  ssh_key      = organization.admin.ssh_keys.detect { |key| key.name == "root" }

  @network = environment.networks.first
  options  = config[:server_attributes].merge(:network_uri => @network.href, :ssh_key_uri => ssh_key.href)
{'fraction_non_alphanumeric': 0.13434650455927052, 'fraction_numerical': 0.0, 'mean_word_length': 6.447963800904978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2879643', 'n_tokens_mistral': 504, 'n_tokens_neox': 494, 'n_words': 77}