Mercurial > repos > other > Puppet
view modules/concat/spec/acceptance/validation_spec.rb @ 454:d0e7979c7e8c
Update PHP configs for Ubuntu
Mostly fixing some INI naming so that it is consistent
between packages and what we write (so we don't end up with
mixed/duplicate content)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 13 Aug 2023 15:26:37 +0100 |
parents | d9352a684e62 |
children |
line wrap: on
line source
require 'spec_helper_acceptance' describe 'validation, concat validate_cmd parameter', if: ['debian', 'redhat', 'ubuntu'].include?(os[:family]) do before(:all) do @basedir = setup_test_directory end context 'with "/usr/bin/test -e %"' do let(:pp) do <<-MANIFEST concat { '#{@basedir}/file': validate_cmd => '/usr/bin/test -e %', } concat::fragment { 'content': target => '#{@basedir}/file', content => 'content', } MANIFEST end it 'applies the manifest twice with no stderr' do idempotent_apply(pp) expect(file("#{@basedir}/file")).to be_file expect(file("#{@basedir}/file").content).to contain 'content' end end end