Sha256: 8fe4bf480ee648ca349372de304105df13afa751f080815b10b4c92bdb5ea9d1

Contents?: true

Size: 1.19 KB

Versions: 51

Compression:

Stored size: 1.19 KB

Contents

begin
  $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'lib'))

  require 'helpers/test_helper'

  require 'beaker/acceptance/install_utils'
  extend Beaker::Acceptance::InstallUtils
end

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 = tmpdir_on(host, 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

51 entries across 51 versions & 1 rubygems

Version Path
beaker-3.19.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.18.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.17.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.16.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.15.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.14.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.13.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.12.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.11.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.10.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.9.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.8.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.7.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.6.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-2.52.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.5.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.4.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.3.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.2.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.1.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb