Move temporary certificate file creation into spec helper
This commit is contained in:
Родитель
e6139a2084
Коммит
1e3d9a3136
1
Rakefile
1
Rakefile
|
@ -24,7 +24,6 @@ require 'rspec/core'
|
|||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |spec|
|
||||
spec.pattern = FileList['spec/unit/**/*_spec.rb']
|
||||
touch "AzureLinuxCert.pem"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:functional) do |spec|
|
||||
|
|
|
@ -15,6 +15,10 @@ require 'chef/knife/azure_server_create'
|
|||
require 'chef/knife/azure_server_describe'
|
||||
require 'chef/knife/azure_image_list'
|
||||
|
||||
require 'fileutils'
|
||||
#Create an empty mock certificate file
|
||||
FileUtils.touch('AzureLinuxCert.pem')
|
||||
|
||||
def tmpFile filename
|
||||
tmpdir = 'tmp'
|
||||
Dir::mkdir tmpdir unless FileTest::directory?(tmpdir)
|
||||
|
|
Загрузка…
Ссылка в новой задаче