Sha256: 10975869b237d2e8be5ac003950ba840256518f21ccb62589898e9fa3ae0f5d6

Contents?: true

Size: 1.23 KB

Versions: 19

Compression:

Stored size: 1.23 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

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 = 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

19 entries across 19 versions & 1 rubygems

Version Path
beaker-3.37.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.36.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.35.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.34.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.33.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.32.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.31.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.30.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.29.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.28.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.27.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.26.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.25.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.24.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.23.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.22.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.21.1 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.21.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb
beaker-3.20.0 acceptance/tests/base/dsl/install_utils/clone_git_repo_on_test.rb