<commit_before>require 'stacks/test_framework'

describe_stack 'quant' do
  given do
    stack "quant" do
      quantapp "quantapp" do
      end
    end

    env "e1", :primary_site=>"space" do
      instantiate_stack "quant"
    end
  end

  host("e1-quantapp-001.mgmt.space.net.local") do |host|
    host.to_enc.should eql({
      'role::quantapp_server' => {
      }})

    host.to_specs.should eql([
      {:fabric=>"space",
       :qualified_hostnames=>{
          :mgmt=>"e1-quantapp-001.mgmt.space.net.local",
          :prod=>"e1-quantapp-001.space.net.local"},
        :availability_group=>"e1-quantapp",
        :networks=>[:mgmt, :prod],
        :hostname=>"e1-quantapp-001",
        :ram=>"4194304",
        :storage => {'/'.to_sym =>{:type=>"os", :size=>"3G"}},
        :domain=>"space.net.local"}])

  end
end<commit_msg>rpearce: Ease testing maintenance burden. Modify quant tests<commit_after>require 'stacks/test_framework'

describe_stack 'quant' do
  given do
    stack "quant" do
      quantapp "quantapp" do
      end
    end

    env "e1", :primary_site=>"space" do
      instantiate_stack "quant"
    end
  end

  host("e1-quantapp-001.mgmt.space.net.local") do |host|
    host.to_enc.should eql({
      'role::quantapp_server' => {
      }})
    host.to_specs.shift[:ram].should eql('4194304')

  end
end
{'fraction_non_alphanumeric': 0.15963855421686746, 'fraction_numerical': 0.0286144578313253, 'mean_word_length': 2.8080229226361033, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '1830711', 'n_tokens_mistral': 516, 'n_tokens_neox': 482, 'n_words': 86}