spec/kitchen/data_munger_spec.rb in test-kitchen-1.23.2 vs spec/kitchen/data_munger_spec.rb in test-kitchen-1.23.3
- old
+ new
@@ -2693,11 +2693,11 @@
describe "lifecycle_hooks stuff" do
it "handles a single global hook" do
DataMunger.new(
{
lifecycle: {
- pre_create: "echo foo"
+ pre_create: "echo foo",
},
platforms: [{ name: "plat" }],
suites: [{ name: "sweet" }],
},
{}
@@ -2728,23 +2728,23 @@
it "handles hooks in platforms and suites" do
DataMunger.new(
{
lifecycle: {
pre_create: "echo foo",
- post_create: "echo post"
+ post_create: "echo post",
},
platforms: [{
name: "plat",
lifecycle: {
- pre_create: "echo bar"
- }
+ pre_create: "echo bar",
+ },
}],
suites: [{
name: "sweet",
lifecycle: {
- pre_create: "echo baz"
- }
+ pre_create: "echo baz",
+ },
}],
},
{}
).lifecycle_hooks_data_for("sweet", "plat").must_equal(
pre_create: ["echo foo", "echo bar", "echo baz"],
@@ -2754,14 +2754,14 @@
it "munges a global legacy pre_create_command" do
DataMunger.new(
{
driver: {
- pre_create_command: "echo bar"
+ pre_create_command: "echo bar",
},
lifecycle: {
- pre_create: "echo foo"
+ pre_create: "echo foo",
},
platforms: [{ name: "plat" }],
suites: [{ name: "sweet" }],
},
{}
@@ -2772,22 +2772,22 @@
it "munges a platform/suite legacy pre_create_commands" do
DataMunger.new(
{
lifecycle: {
- pre_create: "echo foo"
+ pre_create: "echo foo",
},
platforms: [{
name: "plat",
driver: {
- pre_create_command: "echo bar"
- }
+ pre_create_command: "echo bar",
+ },
}],
suites: [{
name: "sweet",
driver: {
- pre_create_command: "echo baz"
- }
+ pre_create_command: "echo baz",
+ },
}],
},
{}
).lifecycle_hooks_data_for("sweet", "plat").must_equal(
pre_create: ["echo foo", { local: "echo bar" }, { local: "echo baz" }]