Sha256: 2dae86a314af344c212c7aa3738f157a7d91b74d36373e43f8138294256689aa

Contents?: true

Size: 408 Bytes

Versions: 37

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Debian

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/debian/lxc_spec.rb
serverspec-1.10.0 spec/debian/lxc_spec.rb
serverspec-1.9.1 spec/debian/lxc_spec.rb
serverspec-1.9.0 spec/debian/lxc_spec.rb
serverspec-1.8.0 spec/debian/lxc_spec.rb
serverspec-1.7.1 spec/debian/lxc_spec.rb
serverspec-1.7.0 spec/debian/lxc_spec.rb
serverspec-1.6.0 spec/debian/lxc_spec.rb
serverspec-1.5.0 spec/debian/lxc_spec.rb
serverspec-1.4.2 spec/debian/lxc_spec.rb
serverspec-1.4.1 spec/debian/lxc_spec.rb
serverspec-1.4.0 spec/debian/lxc_spec.rb
serverspec-1.3.0 spec/debian/lxc_spec.rb
serverspec-1.2.0 spec/debian/lxc_spec.rb
serverspec-1.1.0 spec/debian/lxc_spec.rb
serverspec-1.0.0 spec/debian/lxc_spec.rb
serverspec-0.16.0 spec/debian/lxc_spec.rb
serverspec-0.15.5 spec/debian/lxc_spec.rb
serverspec-0.15.4 spec/debian/lxc_spec.rb
serverspec-0.15.3 spec/debian/lxc_spec.rb