Sha256: b863dfd28b7a7f4465c45198dda57ce3839888f804edc23ae5bd739fe2a42032

Contents?: true

Size: 808 Bytes

Versions: 79

Compression:

Stored size: 808 Bytes

Contents

#! /usr/bin/env ruby

require 'spec_helper'

describe Puppet::Type.type(:service).provider(:systemd), '(integration)' do
  # TODO: Unfortunately there does not seem a way to stub the executable
  #       checks in the systemd provider because they happen at load time.
  it "should be considered suitable if /bin/systemctl is present", :if => File.executable?('/bin/systemctl') do
    described_class.should be_suitable
  end

  it "should be considered suitable if /usr/bin/systemctl is present", :if => File.executable?('/usr/bin/systemctl')  do
    described_class.should be_suitable
  end

  it "should not be cosidered suitable if systemctl is absent",
    :unless => (File.executable?('/bin/systemctl') or File.executable?('/usr/bin/systemctl')) do
    described_class.should_not be_suitable
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
puppet-3.6.2-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.6.1 spec/integration/provider/service/systemd_spec.rb
puppet-3.6.1-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.6.0 spec/integration/provider/service/systemd_spec.rb
puppet-3.6.0-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.6.0.rc1 spec/integration/provider/service/systemd_spec.rb
puppet-3.6.0.rc1-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.1 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.1-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.1.rc1 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.1.rc1-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.0.rc3 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.0.rc3-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.0.rc2 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.0.rc2-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.0.rc1 spec/integration/provider/service/systemd_spec.rb
puppet-3.5.0.rc1-x86-mingw32 spec/integration/provider/service/systemd_spec.rb
puppet-3.4.3 spec/integration/provider/service/systemd_spec.rb
puppet-3.4.2 spec/integration/provider/service/systemd_spec.rb
puppet-3.4.1 spec/integration/provider/service/systemd_spec.rb