Sha256: bbdc306ebb6bac427c552d3b403875d213b827344ecc1711a8749e41e8c995fe

Contents?: true

Size: 1.03 KB

Versions: 54

Compression:

Stored size: 1.03 KB

Contents

require 'beaker-puppet'

confine :except, :platform => /^solaris-10/

test_name 'Clone from git' do

  PACKAGES = {
    :redhat => [
      'git',
    ],
    :debian => [
      ['git', 'git-core'],
    ],
    :solaris_11 => [
      ['git', 'developer/versioning/git'],
    ],
    :solaris_10 => [
      'coreutils',
      'curl', # update curl to fix "CURLOPT_SSL_VERIFYHOST no longer supports 1 as value!" issue
      'git',
    ],
    :windows => [
      'git',
    ],
    :sles => [
      'git-core',
    ]
  }


  install_packages_on(hosts, PACKAGES, :check_if_exists => true)

  # implicitly tests build_giturl() and lookup_in_env()
  hosts.each do |host|
    on host, "echo #{GitHubSig} >> $HOME/.ssh/known_hosts"
    testdir = host.tmpdir(File.basename(__FILE__))

    step 'should be able to successfully clone a git repo' do
      results = clone_git_repo_on(host, "#{testdir}", extract_repo_info_from(build_git_url('hiera')))
      assert_match( %r{From.*github\.com[:/]puppetlabs/hiera}, result.output, 'Did not find clone')
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
beaker-puppet-1.29.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.28.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.27.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.26.3 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.26.2 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.26.1 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.26.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.25.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.24.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.23.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.22.2 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.22.1 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.22.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.21.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.20.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.19.2 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.19.1 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.19.0 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.18.15 acceptance/tests/clone_git_repo_on_test.rb
beaker-puppet-1.18.14 acceptance/tests/clone_git_repo_on_test.rb