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-0.15.2 spec/redhat/lxc_spec.rb
serverspec-0.15.1 spec/redhat/lxc_spec.rb
serverspec-0.15.0 spec/redhat/lxc_spec.rb
serverspec-0.14.4 spec/redhat/lxc_spec.rb
serverspec-0.14.3 spec/redhat/lxc_spec.rb
serverspec-0.14.2 spec/redhat/lxc_spec.rb
serverspec-0.14.1 spec/redhat/lxc_spec.rb
serverspec-0.14.0 spec/redhat/lxc_spec.rb
serverspec-0.13.7 spec/redhat/lxc_spec.rb
serverspec-0.13.6 spec/redhat/lxc_spec.rb
serverspec-0.13.5 spec/redhat/lxc_spec.rb
serverspec-0.13.4 spec/redhat/lxc_spec.rb
serverspec-0.13.3 spec/redhat/lxc_spec.rb
serverspec-0.13.2 spec/redhat/lxc_spec.rb
serverspec-0.13.1 spec/redhat/lxc_spec.rb
serverspec-0.13.0 spec/redhat/lxc_spec.rb
serverspec-0.12.0 spec/redhat/lxc_spec.rb