mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
fix description on sys_info.hostname tests
Signed-off-by: Eike Waldt <waldt@b1-systems.de>
This commit is contained in:
parent
354cf97e54
commit
474d70b78d
1 changed files with 3 additions and 3 deletions
|
@ -4,17 +4,17 @@ require "inspec/resources/sys_info"
|
|||
|
||||
describe "Inspec::Resources::SysInfo" do
|
||||
describe "sys_info" do
|
||||
it "check ssh config parsing for Ubuntu" do
|
||||
it "check sys_info.hostname on Ubuntu" do
|
||||
resource = MockLoader.new(:ubuntu1504).load_resource("sys_info")
|
||||
_(resource.hostname).must_equal "example.com"
|
||||
end
|
||||
|
||||
it "check ssh config parsing for Ubuntu" do
|
||||
it "check sys_info.hostname on Windows" do
|
||||
resource = MockLoader.new(:windows).load_resource("sys_info")
|
||||
_(resource.hostname).must_equal "WIN-CIV7VMLVHLD"
|
||||
end
|
||||
|
||||
it "check ssh config parsing for freebsd" do
|
||||
it "check sysinfo.hostname on freebsd" do
|
||||
resource = MockLoader.new(:freebsd10).load_resource("sys_info")
|
||||
_(resource.hostname).must_equal "The `sys_info.hostname` resource is not supported on your OS yet."
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue