Initial rubocop support for ChefSpec tests.
Per the mailing list thread, introducing Rubocop as a replacement for Tailor. Assuming Jenkins likes this, more pedantic patches will follow to make Rubocop happy. So far this is just spacing issues and adding UTF-8 headers, but more work will need to be done to remove all of the changes for the .rubocop-todo.yml Addresses: blueprint rubocop-for-block-storage Change-Id: Ibb11739e452016c101995a371d031faeeb7e7683
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
#
|
||||
# Cookbook Name:: openstack-block-storage
|
||||
|
||||
require_relative "spec_helper"
|
||||
|
||||
describe "openstack-block-storage::volume" do
|
||||
@@ -60,8 +64,8 @@ describe "openstack-block-storage::volume" do
|
||||
end
|
||||
|
||||
it "configures netapp dfm password" do
|
||||
::Chef::Recipe.any_instance.stub(:service_password).with("netapp").
|
||||
and_return "netapp-pass"
|
||||
::Chef::Recipe.any_instance.stub(:service_password).with("netapp")
|
||||
.and_return "netapp-pass"
|
||||
chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS do |n|
|
||||
n.set["openstack"]["block-storage"]["volume"]["driver"] = "cinder.volume.drivers.netapp.iscsi.NetAppISCSIDriver"
|
||||
end
|
||||
@@ -72,8 +76,8 @@ describe "openstack-block-storage::volume" do
|
||||
end
|
||||
|
||||
it "configures rbd password" do
|
||||
::Chef::Recipe.any_instance.stub(:service_password).with("rbd").
|
||||
and_return "rbd-pass"
|
||||
::Chef::Recipe.any_instance.stub(:service_password).with("rbd")
|
||||
.and_return "rbd-pass"
|
||||
chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS do |n|
|
||||
n.set["openstack"]["block-storage"]["volume"]["driver"] = "cinder.volume.drivers.RBDDriver"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user