Sha256: 9e91dc6fc4cfffd1a2eb64e03cd63ef2247a287d4888b8388d8984989bc1d593

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Gentoo'
end

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

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/gentoo/lxc_spec.rb
serverspec-0.11.0 spec/gentoo/lxc_spec.rb
serverspec-0.10.13 spec/gentoo/lxc_spec.rb
serverspec-0.10.12 spec/gentoo/lxc_spec.rb
serverspec-0.10.11 spec/gentoo/lxc_spec.rb
serverspec-0.10.10 spec/gentoo/lxc_spec.rb