Hello everybody,
I have a requirement to create a Inspec test to check the swap space of a linux system and pass if the swap space is greater than or equal to a certain value say 4GB. Is there an appropriate matcher for the command resource ?
describe command(‘free | grep ‘Swap’ | awk ‘{print ($2) }’)’) do
its(‘stdout’) { should “be greater than” 4000 }
end
Also Please let me know if there is any other way i can do this test.
Thanks