Sha256: 8bfdbdab0638717f34e00b5b59a178f590cc00286dc4c560937b2fb21321b210

Contents?: true

Size: 350 Bytes

Versions: 22

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

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

describe cgroup('group1') do
  let(:stdout) { "1\r\n" }
  its('cpuset.cpus') { should eq 1 }
  its(:command) { should eq "cgget -n -r cpuset.cpus group1 | awk '{print $2}'" }
end

describe cgroup('group1') do
  let(:stdout) { "1\r\n" }
  its('cpuset.cpus') { should_not eq 0 }
end

Version data entries

22 entries across 11 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/debian/cgroup_spec.rb
serverspec-0.11.1 spec/redhat/cgroup_spec.rb
serverspec-0.11.0 spec/redhat/cgroup_spec.rb
serverspec-0.11.0 spec/debian/cgroup_spec.rb
serverspec-0.10.13 spec/debian/cgroup_spec.rb
serverspec-0.10.13 spec/redhat/cgroup_spec.rb
serverspec-0.10.12 spec/debian/cgroup_spec.rb
serverspec-0.10.12 spec/redhat/cgroup_spec.rb
serverspec-0.10.11 spec/redhat/cgroup_spec.rb
serverspec-0.10.11 spec/debian/cgroup_spec.rb
serverspec-0.10.10 spec/debian/cgroup_spec.rb
serverspec-0.10.10 spec/redhat/cgroup_spec.rb
serverspec-0.10.9 spec/debian/cgroup_spec.rb
serverspec-0.10.9 spec/redhat/cgroup_spec.rb
serverspec-0.10.8 spec/debian/cgroup_spec.rb
serverspec-0.10.8 spec/redhat/cgroup_spec.rb
serverspec-0.10.7 spec/debian/cgroup_spec.rb
serverspec-0.10.7 spec/redhat/cgroup_spec.rb
serverspec-0.10.6 spec/redhat/cgroup_spec.rb
serverspec-0.10.6 spec/debian/cgroup_spec.rb