Sha256: f39415f0801c9904c227be42cfe696714fc495a5e6057ac8936491b3d0f1e727

Contents?: true

Size: 792 Bytes

Versions: 353

Compression:

Stored size: 792 Bytes

Contents

require 'spec_helper'

property[:os] = nil
set :os, :family => 'redhat', :release => '7'

describe get_command(:enable_service, 'httpd') do
  it { should eq 'systemctl enable httpd' }
end

describe get_command(:disable_service, 'httpd') do
  it { should eq 'systemctl disable httpd' }
end

describe get_command(:start_service, 'httpd') do
  it { should eq 'systemctl start httpd' }
end

describe get_command(:stop_service, 'httpd') do
  it { should eq 'systemctl stop httpd' }
end

describe get_command(:restart_service, 'httpd') do
  it { should eq 'systemctl restart httpd' }
end

describe get_command(:reload_service, 'httpd') do
  it { should eq 'systemctl reload httpd' }
end

describe get_command(:enable_service, 'sshd.socket') do
  it { should eq 'systemctl enable sshd.socket' }
end

Version data entries

353 entries across 353 versions & 3 rubygems

Version Path
specinfra-2.82.25 spec/command/redhat7/service_spec.rb
specinfra-2.82.24 spec/command/redhat7/service_spec.rb
specinfra-2.82.23 spec/command/redhat7/service_spec.rb
specinfra-2.82.22 spec/command/redhat7/service_spec.rb
specinfra-2.82.21 spec/command/redhat7/service_spec.rb
specinfra-2.82.20 spec/command/redhat7/service_spec.rb
specinfra-2.82.19 spec/command/redhat7/service_spec.rb
specinfra-2.82.18 spec/command/redhat7/service_spec.rb
specinfra-2.82.17 spec/command/redhat7/service_spec.rb
specinfra-2.82.16 spec/command/redhat7/service_spec.rb
specinfra-2.82.15 spec/command/redhat7/service_spec.rb
specinfra-2.82.14 spec/command/redhat7/service_spec.rb
specinfra-2.82.13 spec/command/redhat7/service_spec.rb
specinfra-2.82.12 spec/command/redhat7/service_spec.rb
specinfra-2.82.11 spec/command/redhat7/service_spec.rb
specinfra-2.82.10 spec/command/redhat7/service_spec.rb
specinfra-2.82.9 spec/command/redhat7/service_spec.rb
specinfra-2.82.8 spec/command/redhat7/service_spec.rb
specinfra-2.82.7 spec/command/redhat7/service_spec.rb
specinfra-2.82.6 spec/command/redhat7/service_spec.rb