<commit_before>require 'spec_helper'

describe 'ironic::db::postgresql' do

  shared_examples_for 'ironic::db::postgresql' do
    let :req_params do
      { :password => 'pw' }
    end

    let :pre_condition do
      'include postgresql::server'
    end

    context 'with only required parameters' do
      let :params do
        req_params
      end

      it { is_expected.to contain_postgresql__server__db('ironic').with(
        :user     => 'ironic',
        :password => '<PASSWORD>'
      )}
    end

  end

  on_supported_os({
    :supported_os   => OSDefaults.get_supported_os
  }).each do |os,facts|
    context "on #{os}" do
      let (:facts) do
        facts.merge(OSDefaults.get_facts({
          :os_workers     => 8,<commit_msg>Include deps class in unit test for postgresql<commit_after>require 'spec_helper'

describe 'ironic::db::postgresql' do

  shared_examples_for 'ironic::db::postgresql' do
    let :req_params do
      { :password => 'pw' }
    end

    let :pre_condition do
      'include postgresql::server'
    end

    context 'with only required parameters' do
      let :params do
        req_params
      end

      it { is_expected.to contain_class('ironic::deps') }

      it { is_expected.to contain_postgresql__server__db('ironic').with(
        :user     => 'ironic',
        :password => '<PASSWORD>'
      )}
    end

  end

  on_supported_os({
    :supported_os   => OSDefaults.get_supported_os
  }).each do |os,facts|
    context "on #{os}" do
      let (:facts) do
        facts.merge(OSDefaults.get_facts({
          :os_workers     => 8,
{'fraction_non_alphanumeric': 0.11300505050505051, 'fraction_numerical': 0.0012626262626262627, 'mean_word_length': 2.5778781038374716, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6333089', 'n_tokens_mistral': 538, 'n_tokens_neox': 510, 'n_words': 121}