Sha256: f1b2e98277891a94eb22e5a23b26927c2271a0f90a1cb777ad34c3a25a2b39dd

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'RedHat'
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/redhat/lxc_spec.rb
serverspec-0.11.0 spec/redhat/lxc_spec.rb
serverspec-0.10.13 spec/redhat/lxc_spec.rb
serverspec-0.10.12 spec/redhat/lxc_spec.rb
serverspec-0.10.11 spec/redhat/lxc_spec.rb
serverspec-0.10.10 spec/redhat/lxc_spec.rb