Sha256: d58294f4ad3c4f40c1f70439583fe9de262d4fbc4ca26c73d5029dd7ba413fc5

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Debian

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

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/debian/cgroup_spec.rb
serverspec-0.11.4 spec/debian/cgroup_spec.rb
serverspec-0.11.3 spec/debian/cgroup_spec.rb
serverspec-0.11.2 spec/debian/cgroup_spec.rb