summaryrefslogtreecommitdiff
path: root/spec/integration/knife/data_bag_from_file_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-01-15 13:07:58 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-01-15 13:07:58 -0800
commit990974ca5cd44df0c77bb6a12fc57a3c32b92e23 (patch)
tree5779719f58254764e57eb9cacde85837295fd2f6 /spec/integration/knife/data_bag_from_file_spec.rb
parent4be1ebe66460efb0535e500d6ecb52a147346519 (diff)
downloadchef-990974ca5cd44df0c77bb6a12fc57a3c32b92e23.tar.gz
changes for rubocop engine upgrades.lcg/rubocop-upgrades
this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/integration/knife/data_bag_from_file_spec.rb')
-rw-r--r--spec/integration/knife/data_bag_from_file_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/integration/knife/data_bag_from_file_spec.rb b/spec/integration/knife/data_bag_from_file_spec.rb
index afaafc1e6b..5083153e91 100644
--- a/spec/integration/knife/data_bag_from_file_spec.rb
+++ b/spec/integration/knife/data_bag_from_file_spec.rb
@@ -47,7 +47,7 @@ describe "knife data bag from file", :workstation do
"cipher": "aes-256-cbc"
}
}
-EOM
+ EOM
file "data_bags/bar/round_trip.json", <<~EOM
{
"name": "data_bag_item_bar_round_trip",
@@ -70,33 +70,33 @@ EOM
}
}
}
-EOM
+ EOM
end
it "uploads a single file" do
knife("data bag from file foo #{db_dir}/foo/bar.json").should_succeed stderr: <<~EOM
Updated data_bag_item[foo::bar]
-EOM
+ EOM
end
it "uploads a single encrypted file" do
knife("data bag from file foo #{db_dir}/foo/encrypted.json").should_succeed stderr: <<~EOM
Updated data_bag_item[foo::encrypted]
-EOM
+ EOM
end
it "uploads a file in chef's internal format" do
pending "chef/chef#4815"
knife("data bag from file bar #{db_dir}/bar/round_trip.json").should_succeed stderr: <<~EOM
Updated data_bag_item[bar::round_trip]
-EOM
+ EOM
end
it "uploads many files" do
knife("data bag from file foo #{db_dir}/foo/bar.json #{db_dir}/foo/bzr.json").should_succeed stderr: <<~EOM
Updated data_bag_item[foo::bar]
Updated data_bag_item[foo::bzr]
-EOM
+ EOM
end
it "uploads a whole directory" do
@@ -107,7 +107,7 @@ EOM
cat
dog
encrypted
-EOM
+ EOM
end
end