Failing test case for #407
This commit is contained in:
parent
6300bebe72
commit
270da0da80
|
@ -55,6 +55,19 @@ class ChefSoloProvisionerTest < Test::Unit::TestCase
|
|||
remote_path = "#{@action.config.provisioning_path}/chef-solo-0"
|
||||
assert_equal [[:host, local_path, remote_path]], @action.expanded_folders([:host, path])
|
||||
end
|
||||
|
||||
should "expand multiple host folders properly" do
|
||||
cookbooks_path = "cookbooks"
|
||||
cookbooks_local_path = File.expand_path(cookbooks_path, @env.root_path)
|
||||
cookbooks_remote_path = "#{@action.config.provisioning_path}/chef-solo-0"
|
||||
roles_path = "roles"
|
||||
roles_local_path = File.expand_path(roles_path, @env.root_path)
|
||||
roles_remote_path = "#{@action.config.provisioning_path}/chef-solo-1"
|
||||
|
||||
assert_not_equal @action.expanded_folders([:host, cookbooks_path])[0].last, @action.expanded_folders([:host, roles_path])[0].last
|
||||
assert_equal [[:host, cookbooks_local_path, cookbooks_remote_path]], @action.expanded_folders([:host, cookbooks_path])
|
||||
assert_equal [[:host, roles_local_path, roles_remote_path]], @action.expanded_folders([:host, roles_path])
|
||||
end
|
||||
end
|
||||
|
||||
context "guest paths" do
|
||||
|
|
Loading…
Reference in New Issue