spec/integration/upload_spec.rb in knife-17.7.16 vs spec/integration/upload_spec.rb in knife-17.7.29
- old
+ new
@@ -1381,12 +1381,12 @@
file "groups/x.json", {}
file "invitations.json", [ "foo" ]
file "members.json", [ "bar" ]
file "org.json", { "full_name" => "wootles" }
file "nodes/x.json", { "normal" => { "tags" => [] } }
- file "policies/x-1.0.0.json", {}
- file "policies/blah-1.0.0.json", {}
+ file "policies/x-1.0.0.json", { "policy_group_list" => [ "x" ] }
+ file "policies/blah-1.0.0.json", { "policy_group_list" => [ "x" ] }
file "policy_groups/x.json", { "policies" => { "x" => { "revision_id" => "1.0.0" }, "blah" => { "revision_id" => "1.0.0" } } }
file "roles/x.json", {}
end
it "knife upload / uploads everything" do
@@ -1482,15 +1482,14 @@
cookbook_artifact "x", "1x1", { "metadata.rb" => cb_metadata("x", "1.0.0") }
data_bag "x", { "y" => { "a" => "b" } }
environment "x", { "description" => "foo" }
group "x", { "groups" => [ "admin" ] }
node "x", { "run_list" => [ "blah" ] }
- policy "x", "1.0.0", {}
- policy "x", "1.0.1", {}
- policy "y", "1.0.0", {}
+ policy "x", "1.0.0", { "policy_group_list" => [ "x" ] }
+ policy "y", "1.0.0", { "policy_group_list" => [ "x" ] }
policy_group "x", {
"policies" => {
- "x" => { "revision_id" => "1.0.1" },
+ "x" => { "revision_id" => "1.0.0" },
"y" => { "revision_id" => "1.0.0" },
},
}
role "x", { "run_list" => [ "blah" ] }
end