<commit_before>require 'rspec'
require 'yaml'
require 'json'
require 'bosh/template/test'
require 'bosh/template/evaluation_context'
require_relative './template_example_group'

describe 'director.yml.erb.erb' do
  let(:merged_manifest_properties) do
    {
      'agent' => {
        'env' => {
          'bosh' => {
            'foo' => 'bar'
          }
        }
      },
      'compiled_package_cache' => {},
      'blobstore' => {
        'address' => '10.10.0.7',
        'port' => 25251,
        'agent' => { 'user' => 'agent', 'password' => '<PASSWORD>' },
        'director' => {
          'user' => 'user',
          'password' => 'password'
        },
        'provider' => 'dav',
        'tls' => {
          'cert' => {
            'ca' => '-----BEGIN CERTIFICATE-----'
          }
        }
      },
      'nats' => {
        'address' => '10.10.0.7',
        'port' => 4222
      },
      'director' => {
        'name' => 'vpc-bosh-idora',
        'backend_port' => 25556,
        'max_tasks' => 100,
        'max_threads' => 32,
        'puma_workers' => 3,
        'enable_snapshots' => true,
        'enable_post_deploy' => false,
        'enable_nats_delivered_templates' => false,
        'enable_cpi_resize_disk' => false,
        'generate_vm_passwords' => false,
        'remove_dev_tools' => false,
        'log_access_events_to_syslog' => false,
        'flush_arp' => false,
        'local_dns' => {
          'enabled' => true,
          'include_index' => false,
          'use_dns_addresses' => true,
        },
        'ignore_missing_gateway' => false,
        'disks' => {
          'max_orphaned_age_in_days' => 3,
          'cleanup_schedule' => '0 0,30 * * * * UTC',
        },
        'events' => {
          'record_events' => false,
          'max_events' => 10000,
          'cleanup_schedule' => '0 * * * * * UTC'
        },
        'db' => {
          'adapter' => 'mysql2',
          'user' => 'ub45391e00',
          'password' => '<PASSWORD>',<commit_msg>Add director.log_level for spec test<commit_after>require 'rspec'
require 'yaml'
require 'json'
require 'bosh/template/test'
require 'bosh/template/evaluation_context'
require_relative './template_example_group'

describe 'director.yml.erb.erb' do
  let(:merged_manifest_properties) do
    {
      'agent' => {
        'env' => {
          'bosh' => {
            'foo' => 'bar'
          }
        }
      },
      'compiled_package_cache' => {},
      'blobstore' => {
        'address' => '10.10.0.7',
        'port' => 25251,
        'agent' => { 'user' => 'agent', 'password' => '<PASSWORD>' },
        'director' => {
          'user' => 'user',
          'password' => 'password'
        },
        'provider' => 'dav',
        'tls' => {
          'cert' => {
            'ca' => '-----BEGIN CERTIFICATE-----'
          }
        }
      },
      'nats' => {
        'address' => '10.10.0.7',
        'port' => 4222
      },
      'director' => {
        'name' => 'vpc-bosh-idora',
        'backend_port' => 25556,
        'max_tasks' => 100,
        'max_threads' => 32,
        'puma_workers' => 3,
        'enable_snapshots' => true,
        'enable_post_deploy' => false,
        'enable_nats_delivered_templates' => false,
        'enable_cpi_resize_disk' => false,
        'generate_vm_passwords' => false,
        'remove_dev_tools' => false,
        'log_level' => 'debug',
        'log_access_events_to_syslog' => false,
        'flush_arp' => false,
        'local_dns' => {
          'enabled' => true,
          'include_index' => false,
          'use_dns_addresses' => true,
        },
        'ignore_missing_gateway' => false,
        'disks' => {
          'max_orphaned_age_in_days' => 3,
          'cleanup_schedule' => '0 0,30 * * * * UTC',
        },
        'events' => {
          'record_events' => false,
          'max_events' => 10000,
          'cleanup_schedule' => '0 * * * * * UTC'
        },
        'db' => {
          'adapter' => 'mysql2',
          'user' => 'ub45391e00',
          'password' => '<PASSWORD>',
{'fraction_non_alphanumeric': 0.1810110974106042, 'fraction_numerical': 0.025154130702836005, 'mean_word_length': 1.7276395427034297, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 110, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1666122', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1347, 'n_words': 221}