<commit_before>---
driver:
  name: vagrant
  customize:
    memory: <%= ENV['TEST_KITCHEN_VM_MEMORY'] || 2048 %>
    cpus: <%= ENV['TEST_KITCHEN_VM_CPUS'] || 2 %>

provisioner:
  name: chef_zero
  roles_path: test/fixtures/roles
  # You may wish to disable always updating cookbooks in CI or other testing environments.
  # For example:
  #   always_update_cookbooks: <%= !ENV['CI'] %>
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: ubuntu-16.04

suites:
  - name: default
    run_list:
      - recipe[odoo]
    verifier:
      inspec_tests:
        - test/smoke/web_and_db
        - test/smoke/web
        - test/smoke/database
  - name: web
    driver:
      network:
        - ["private_network", {ip: "172.16.1.11"}]
    run_list:
      - role[web_and_db]
      - role[web]
    verifier:
      inspec_tests:
        - test/smoke/web_and_db
        - test/smoke/web
      attributes:
        db_admin_password: '<PASSWORD>'
        db_client_address: '172.16.1.11'
        db_server_address: '172.16.1.12'
  - name: database
    driver:
      network:
        - ["private_network", {ip: "172.16.1.12"}]
    run_list:
      - role[web_and_db]
      - role[database]
    verifier:
      inspec_tests:
        - test/smoke/web_and_db
        - test/smoke/database
      attributes:
        db_admin_password: '<PASSWORD>'
        db_client_address: '172.16.1.11'
        db_server_address: '172.16.1.12'
<commit_msg>Assign private ip for default test case for browser check<commit_after>---
driver:
  name: vagrant
  customize:
    memory: <%= ENV['TEST_KITCHEN_VM_MEMORY'] || 2048 %>
    cpus: <%= ENV['TEST_KITCHEN_VM_CPUS'] || 2 %>

provisioner:
  name: chef_zero
  roles_path: test/fixtures/roles
  # You may wish to disable always updating cookbooks in CI or other testing environments.
  # For example:
  #   always_update_cookbooks: <%= !ENV['CI'] %>
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: ubuntu-16.04

suites:
  - name: default
    driver:
      network:
        - ["private_network", {ip: "172.16.1.10"}]
    run_list:
      - recipe[odoo]
    verifier:
      inspec_tests:
        - test/smoke/web_and_db
        - test/smoke/web
        - test/smoke/database
  - name: web
    driver:
      network:
        - ["private_network", {ip: "172.16.1.11"}]
    run_list:
      - role[web_and_db]
      - role[web]
    verifier:
      inspec_tests:
        - test/smoke/web_and_db
        - test/smoke/web
      attributes:
        db_admin_password: '<PASSWORD>'
        db_client_address: '172.16.1.11'
        db_server_address: '172.16.1.12'
  - name: database
    driver:
      network:
        - ["private_network", {ip: "172.16.1.12"}]
    run_list:
      - role[web_and_db]
      - role[database]
    verifier:
      inspec_tests:
        - test/smoke/web_and_db
        - test/smoke/database
      attributes:
        db_admin_password: '<PASSWORD>'
        db_client_address: '172.16.1.11'
        db_server_address: '172.16.1.12'

{'fraction_non_alphanumeric': 0.12582781456953643, 'fraction_numerical': 0.04039735099337748, 'mean_word_length': 2.2553879310344827, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 13, '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': '2517949', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1098, 'n_words': 202}