Sha256: 6b9468f2767940807a531f4a24502e1b34dd21db431617f8c1364eb783d25b83

Contents?: true

Size: 552 Bytes

Versions: 11

Compression:

Stored size: 552 Bytes

Contents

require 'spec_helper_acceptance'

describe 'apache::service class' do
  describe 'adding dependencies in between the base class and service class' do
    it 'should work with no errors' do
      pp = <<-EOS
      class { 'apache': }
      file { '/tmp/test':
        require => Class['apache'],
        notify  => Class['apache::service'],
      }
      EOS

      # Run it twice and test for idempotency
      apply_manifest(pp, :catch_failures => true)
      expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.6.0 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.5.2 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.5.1 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.5.0 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.4.1 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.4.0 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.3.3 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.3.2 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.3.1 modules/apache/spec/acceptance/service_spec.rb
freighthop-0.3.0 modules/apache/spec/acceptance/service_spec.rb