Added plain Symbol group name for unit test

This commit is contained in:
Kamjar Gerami 2015-12-04 02:16:01 +01:00
parent 5cbbbb5e28
commit f5f568b66b
No known key found for this signature in database
GPG Key ID: F1C36FD57C59CB03
1 changed files with 2 additions and 1 deletions

View File

@ -288,6 +288,7 @@ VF
"group2" => [iso_env.machine_names[1]],
"group3" => ["unknown", "#{machine.name}"],
"group4" => ["machine[1:2]", "machine[a:f]"],
"group6" => [machine.name],
"bar" => ["#{machine.name}", "group3"],
"bar:children" => ["group1", "group2", "group3", "group5"],
}
@ -306,7 +307,7 @@ VF
expect(inventory_content).to include("[group3]\n#{machine.name}\n\n")
# Accept Symbol datatype for group names
expect(inventory_content).to include("[group4]\n#{machine.name}\n\n")
expect(inventory_content).to include("[group6]\n#{machine.name}\n\n")
# Accept host range patterns
expect(inventory_content).to match(/(?:\[[a-z]:[a-z]\]|\[[0-9]+?:[0-9]+?\])/)