Sha256: eae43eb66d476c403bcdea0ceb1975c42b90b817935247cea516ec8552a6baed

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Fedora

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

9 entries across 9 versions & 1 rubygems

Version Path
serverspec-1.11.0 spec/fedora/lxc_spec.rb
serverspec-1.10.0 spec/fedora/lxc_spec.rb
serverspec-1.9.1 spec/fedora/lxc_spec.rb
serverspec-1.9.0 spec/fedora/lxc_spec.rb
serverspec-1.8.0 spec/fedora/lxc_spec.rb
serverspec-1.7.1 spec/fedora/lxc_spec.rb
serverspec-1.7.0 spec/fedora/lxc_spec.rb
serverspec-1.6.0 spec/fedora/lxc_spec.rb
serverspec-1.5.0 spec/fedora/lxc_spec.rb