Sha256: 402b5a40cdeb68d7e3a5297b7ab8127b0fc8c4348bfbe7524eaec36cfe6e94f2

Contents?: true

Size: 339 Bytes

Versions: 14

Compression:

Stored size: 339 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Fedora

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

14 entries across 14 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/fedora/cgroup_spec.rb
serverspec-1.15.0 spec/fedora/cgroup_spec.rb
serverspec-1.14.0 spec/fedora/cgroup_spec.rb
serverspec-1.13.0 spec/fedora/cgroup_spec.rb
serverspec-1.12.0 spec/fedora/cgroup_spec.rb
serverspec-1.11.0 spec/fedora/cgroup_spec.rb
serverspec-1.10.0 spec/fedora/cgroup_spec.rb
serverspec-1.9.1 spec/fedora/cgroup_spec.rb
serverspec-1.9.0 spec/fedora/cgroup_spec.rb
serverspec-1.8.0 spec/fedora/cgroup_spec.rb
serverspec-1.7.1 spec/fedora/cgroup_spec.rb
serverspec-1.7.0 spec/fedora/cgroup_spec.rb
serverspec-1.6.0 spec/fedora/cgroup_spec.rb
serverspec-1.5.0 spec/fedora/cgroup_spec.rb