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 committed Feb 22, 2018
1 parent 827b457 commit 1fe15fa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/acceptance/foreman_remote_file_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'spec_helper_acceptance'

describe 'remote_file works' do
let(:pp) do
configure = fact('osfamily') == 'RedHat' && fact('operatingsystem') != 'Fedora'
<<-EOS
foreman::remote_file {"test":
remote_location => "https://github.com/theforeman/puppet-foreman/archive/9.0.0.tar.gz",
}
EOS
end

it_behaves_like 'a idempotent resource'

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

0 comments on commit 1fe15fa

Please sign in to comment.