Sha256: ebdb2f1911a6f00319ad7179c0094569393fe171efabcc33722446e7d48cf6e7

Contents?: true

Size: 408 Bytes

Versions: 37

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::RedHat

describe lxc('ct01') do
  it { should exist }
  its(:command) { should eq "lxc-ls -1 | grep -w ct01" }
end

describe lxc('invalid-ct') do
  it { should_not exist }
end

describe lxc('ct01') do
  it { should be_running }
  its(:command) { should eq "lxc-info -n ct01 -t RUNNING"}
end

describe lxc('invalid-ct') do
  it { should_not be_running }
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
serverspec-1.11.0 spec/redhat/lxc_spec.rb
serverspec-1.10.0 spec/redhat/lxc_spec.rb
serverspec-1.9.1 spec/redhat/lxc_spec.rb
serverspec-1.9.0 spec/redhat/lxc_spec.rb
serverspec-1.8.0 spec/redhat/lxc_spec.rb
serverspec-1.7.1 spec/redhat/lxc_spec.rb
serverspec-1.7.0 spec/redhat/lxc_spec.rb
serverspec-1.6.0 spec/redhat/lxc_spec.rb
serverspec-1.5.0 spec/redhat/lxc_spec.rb
serverspec-1.4.2 spec/redhat/lxc_spec.rb
serverspec-1.4.1 spec/redhat/lxc_spec.rb
serverspec-1.4.0 spec/redhat/lxc_spec.rb
serverspec-1.3.0 spec/redhat/lxc_spec.rb
serverspec-1.2.0 spec/redhat/lxc_spec.rb
serverspec-1.1.0 spec/redhat/lxc_spec.rb
serverspec-1.0.0 spec/redhat/lxc_spec.rb
serverspec-0.16.0 spec/redhat/lxc_spec.rb
serverspec-0.15.5 spec/redhat/lxc_spec.rb
serverspec-0.15.4 spec/redhat/lxc_spec.rb
serverspec-0.15.3 spec/redhat/lxc_spec.rb