mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
28 lines
579 B
Ruby
28 lines
579 B
Ruby
# encoding: utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano::Resources::Processes' do
|
|
describe 'processes' do
|
|
let(:resource) { loadResource('processes', '/bin/bash') }
|
|
|
|
it 'verify processes resource' do
|
|
_(resource.list).must_equal [{
|
|
user: 'root',
|
|
pid: '1',
|
|
cpu: '0.0',
|
|
mem: '0.0',
|
|
vsz: '18084',
|
|
rss: '3228',
|
|
tty: '?',
|
|
stat: 'Ss',
|
|
start: '14:15',
|
|
time: '0:00',
|
|
command: '/bin/bash'
|
|
}]
|
|
|
|
_(resource.list.length).must_equal 1
|
|
end
|
|
end
|
|
end
|