Skip to content

Commit

Permalink
Add remote_file acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
sean797 authored and mmoll committed Mar 11, 2018
1 parent 8c49e74 commit b69b160
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/acceptance/foreman_remote_file_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'spec_helper_acceptance'

describe 'remote_file works' do
let(:pp) do
<<-EOS
foreman::remote_file {"/var/tmp/test":
remote_location => "https://codeload.github.com/theforeman/puppet-foreman/tar.gz/9.0.0",
}
EOS
end

it_behaves_like 'a idempotent resource'

describe file('/var/tmp/test') do
its(:md5sum) { should eq '5ef89571e3775b4bc17e4f5a55d1c146' }
end
end

0 comments on commit b69b160

Please sign in to comment.