Sha256: 07baaa2271464ea67efdcd071f5c84592bf3c180fa8f40c4a0baa1dad1aa7b86

Contents?: true

Size: 1013 Bytes

Versions: 215

Compression:

Stored size: 1013 Bytes

Contents

require 'spec_helper'

describe Specinfra::Command::Module::Service::Systemd do
  class Specinfra::Command::Module::Service::Systemd::Test < Specinfra::Command::Base
    extend Specinfra::Command::Module::Service::Systemd
  end
  let(:klass) { Specinfra::Command::Module::Service::Systemd::Test }
  it { expect(klass.check_is_enabled_under_systemd('httpd')).to eq "systemctl --quiet is-enabled httpd" }
  it { expect(klass.check_is_running_under_systemd('httpd')).to eq 'systemctl is-active httpd' }
  it { expect(klass.enable_under_systemd('httpd')).to  eq 'systemctl enable httpd' }
  it { expect(klass.disable_under_systemd('httpd')).to eq 'systemctl disable httpd' }
  it { expect(klass.start_under_systemd('httpd')).to   eq 'systemctl start httpd' }
  it { expect(klass.stop_under_systemd('httpd')).to    eq 'systemctl stop httpd' }
  it { expect(klass.restart_under_systemd('httpd')).to eq 'systemctl restart httpd' }
  it { expect(klass.reload_under_systemd('httpd')).to  eq 'systemctl reload httpd' }
end

Version data entries

215 entries across 215 versions & 3 rubygems

Version Path
specinfra-2.76.5 spec/command/module/service/systemd_spec.rb
specinfra-2.76.4 spec/command/module/service/systemd_spec.rb
specinfra-2.76.3 spec/command/module/service/systemd_spec.rb
specinfra-2.76.2 spec/command/module/service/systemd_spec.rb
specinfra-2.76.1 spec/command/module/service/systemd_spec.rb
specinfra-2.76.0 spec/command/module/service/systemd_spec.rb
specinfra-2.75.1 spec/command/module/service/systemd_spec.rb
specinfra-rb19-2.44.7 spec/command/module/service/systemd_spec.rb
specinfra-2.75.0 spec/command/module/service/systemd_spec.rb
specinfra-2.74.0 spec/command/module/service/systemd_spec.rb
specinfra-2.73.4 spec/command/module/service/systemd_spec.rb
specinfra-2.73.3 spec/command/module/service/systemd_spec.rb
specinfra-2.73.2 spec/command/module/service/systemd_spec.rb
specinfra-2.73.1 spec/command/module/service/systemd_spec.rb
specinfra-2.73.0 spec/command/module/service/systemd_spec.rb
specinfra-2.72.1 spec/command/module/service/systemd_spec.rb
specinfra-2.72.0 spec/command/module/service/systemd_spec.rb
specinfra-2.71.3 spec/command/module/service/systemd_spec.rb
specinfra-2.71.2 spec/command/module/service/systemd_spec.rb
specinfra-2.71.1 spec/command/module/service/systemd_spec.rb