diff options
author | Bryan Jen <bryan.jen@gmail.com> | 2015-08-14 15:38:32 -0700 |
---|---|---|
committer | Bryan Jen <bryan.jen@gmail.com> | 2015-08-14 15:38:32 -0700 |
commit | d7534d7cfe98d62b8f0d9ae8adcc30bea483a1e2 (patch) | |
tree | cc617704a9e302b92976ea72d0d9b07b462917bc /spec/acceptance | |
parent | 5ef1b4740e1aab6672ee3971762c796c898ca639 (diff) | |
parent | 14c05f5d6c589bebc9f93eb117105c14ce7be6f1 (diff) | |
download | puppet-vcsrepo-d7534d7cfe98d62b8f0d9ae8adcc30bea483a1e2.tar.gz puppet-vcsrepo-d7534d7cfe98d62b8f0d9ae8adcc30bea483a1e2.tar.bz2 |
Merge pull request #261 from mhaskel/MODULES-2125
MODULES-2125 - Allow revision to be passed without source
Diffstat (limited to 'spec/acceptance')
-rw-r--r-- | spec/acceptance/create_repo_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/acceptance/create_repo_spec.rb b/spec/acceptance/create_repo_spec.rb index db0cd29..53a93c9 100644 --- a/spec/acceptance/create_repo_spec.rb +++ b/spec/acceptance/create_repo_spec.rb @@ -30,6 +30,22 @@ describe 'create a repo' do end end + context 'no source but revision provided' do + it 'should not fail (MODULES-2125)' do + pp = <<-EOS + vcsrepo { "#{tmpdir}/testrepo_blank_with_revision_repo": + ensure => present, + provider => git, + revision => 'master' + } + EOS + + # Run it twice and test for idempotency + apply_manifest(pp, :catch_failures => true) + apply_manifest(pp, :catch_changes => true) + end + end + context 'bare repo' do it 'creates a bare repo' do pp = <<-EOS |