inspec/test/integration/default/virtualization_spec.rb
Takaaki Furukawa 4f34e3eb83 Add support for virtualization resource (#1803)
* Add support for virtualization resource

Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>

* Add some methods and documentation

Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>

* Refactor collect_data_linux method

Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>

* Remove unnecessary hash from virtualization resource and update examples

Signed-off-by: Takaaki Furukawa <takaaki.frkw@gmail.com>
2017-06-07 14:10:29 +02:00

7 lines
166 B
Ruby

# encoding: utf-8
if ENV['DOCKER'] && os.linux?
describe virtualization do
its('system') { should eq 'docker' }
its('role') { should eq 'guest' }
end
end