Sha256: f71cc92722477dffd872835754f87e9c0c484ef1b6f60244a19c31e49be8d331

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'

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