beaker-module_install_helper 0.1.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3eeee95c742bd6074ff8e98482fac63620dd4fcb
4
- data.tar.gz: a5533c57eac74a4e21c4a7bd5acacd51929c5281
2
+ SHA256:
3
+ metadata.gz: 9c5192677947674c9afe89bc03271fd1496458140556f66ec5d5765a892c31e7
4
+ data.tar.gz: 318f11f4d52851391ea4f266cc84ce01a84799604066b9d7ea7fa4caa4bdc1cd
5
5
  SHA512:
6
- metadata.gz: 59244038bb781c96d1457d7bbe05ce4414c94a37c885cb0b39c6844884e1b64b7e1b038e96db6a08a44dfc9c0b71fe6cc94925d90c763b85d2cf345230576871
7
- data.tar.gz: f10de01f4507d2285029639ba7bd74b3f21238263bf327707c2007cafc368556a2e00da7026bc3625c9f1b3aaca724dab724cb6169a2c2d8165cfdad29dd87d0
6
+ metadata.gz: e9d605bc7dae5ea9c9f3e89c36c89423ca006bd61b3930513dbe970fcbe52e0827737ec7a119aa2c4ba559ed4aef3b23f6404b7264587ad95ecebe4e700b48a0
7
+ data.tar.gz: 9c1d699e742bd6f800b8841027b5261aa11fec41e381a82866fbec27a75ddaad0a3765e161e83b6e77f6106ca7d9a792bdfabf08f6d8a7e03aaf93fc1a8fdd04
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,31 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ if: github.repository_owner == 'voxpupuli'
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Install Ruby 3.0
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: '3.0'
18
+ bundler: 'none'
19
+ - name: Build gem
20
+ run: gem build *.gemspec
21
+ - name: Publish gem to rubygems.org
22
+ run: gem push *.gem
23
+ env:
24
+ GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
25
+ - name: Setup GitHub packages access
26
+ run: |
27
+ mkdir -p ~/.gem
28
+ echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
29
+ chmod 0600 ~/.gem/credentials
30
+ - name: Publish gem to GitHub packages
31
+ run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
@@ -0,0 +1,35 @@
1
+ name: Test
2
+
3
+ on:
4
+ - pull_request
5
+ - push
6
+
7
+ env:
8
+ BUNDLE_WITHOUT: release
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ include:
17
+ - ruby: "2.4"
18
+ - ruby: "2.5"
19
+ - ruby: "2.6"
20
+ - ruby: "2.7"
21
+ - ruby: "3.0"
22
+ coverage: "yes"
23
+ env:
24
+ COVERAGE: ${{ matrix.coverage }}
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: Install Ruby ${{ matrix.ruby }}
28
+ uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ bundler-cache: true
32
+ - name: Run tests
33
+ run: bundle exec rake spec
34
+ - name: Verify gem builds
35
+ run: bundle exec gem build *.gemspec
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /.idea/
11
+ .vendor/
data/CHANGELOG.md CHANGED
@@ -1,29 +1,96 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5
+ ## [1.0.0](https://github.com/voxpupuli/beaker-module_install_helper/tree/1.0.0) (2021-11-03)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/v0.1.7...1.0.0)
8
+
9
+ **Closed issues:**
10
+
11
+ - Master fails to build in Travis [\#25](https://github.com/voxpupuli/beaker-module_install_helper/issues/25)
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Add beaker-puppet dependency, update gem versions, fix CI [\#31](https://github.com/voxpupuli/beaker-module_install_helper/pull/31) ([ekohl](https://github.com/ekohl))
16
+ - Add Dependabot & GH Actions for testing & release [\#27](https://github.com/voxpupuli/beaker-module_install_helper/pull/27) ([genebean](https://github.com/genebean))
17
+ - Allow passing in options to install\_module [\#26](https://github.com/voxpupuli/beaker-module_install_helper/pull/26) ([ekohl](https://github.com/ekohl))
18
+ - Don't attempt to modify possibly frozen strings [\#24](https://github.com/voxpupuli/beaker-module_install_helper/pull/24) ([beezly](https://github.com/beezly))
19
+
20
+ ## [v0.1.7](https://github.com/voxpupuli/beaker-module_install_helper/tree/v0.1.7) (2017-12-08)
21
+
22
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/v0.1.6...v0.1.7)
23
+
24
+ **Merged pull requests:**
25
+
26
+ - Release prep 0.1.7 [\#22](https://github.com/voxpupuli/beaker-module_install_helper/pull/22) ([pmcmaw](https://github.com/pmcmaw))
27
+ - Fix broken beaker dependency [\#21](https://github.com/voxpupuli/beaker-module_install_helper/pull/21) ([cdenneen](https://github.com/cdenneen))
28
+
29
+ ## [v0.1.6](https://github.com/voxpupuli/beaker-module_install_helper/tree/v0.1.6) (2017-12-08)
30
+
31
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/0.1.5...v0.1.6)
32
+
33
+ **Merged pull requests:**
34
+
35
+ - minor gemspec changes [\#20](https://github.com/voxpupuli/beaker-module_install_helper/pull/20) ([pmcmaw](https://github.com/pmcmaw))
36
+ - Release Prep for 0.1.6 [\#19](https://github.com/voxpupuli/beaker-module_install_helper/pull/19) ([pmcmaw](https://github.com/pmcmaw))
37
+ - \(BKR-1254\) Update for Unix::Host does not allow each [\#17](https://github.com/voxpupuli/beaker-module_install_helper/pull/17) ([cdenneen](https://github.com/cdenneen))
38
+
39
+ ## [0.1.5](https://github.com/voxpupuli/beaker-module_install_helper/tree/0.1.5) (2017-07-26)
40
+
41
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/0.1.4...0.1.5)
42
+
43
+ **Merged pull requests:**
44
+
45
+ - 0.1.5 fix uninitialized constant Net::HTTP [\#16](https://github.com/voxpupuli/beaker-module_install_helper/pull/16) ([hunner](https://github.com/hunner))
46
+ - Fix bug that causes a NoMethodError: undefined method `each' for nil:NilClass [\#15](https://github.com/voxpupuli/beaker-module_install_helper/pull/15) ([dhollinger](https://github.com/dhollinger))
47
+ - Correct markdown formatting [\#14](https://github.com/voxpupuli/beaker-module_install_helper/pull/14) ([ekohl](https://github.com/ekohl))
48
+
49
+ ## [0.1.4](https://github.com/voxpupuli/beaker-module_install_helper/tree/0.1.4) (2017-02-27)
50
+
51
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/0.1.3...0.1.4)
52
+
53
+ **Merged pull requests:**
54
+
55
+ - Fix get\_module\_source\_directory when module used with Rototiller [\#12](https://github.com/voxpupuli/beaker-module_install_helper/pull/12) ([wilson208](https://github.com/wilson208))
56
+
57
+ ## [0.1.3](https://github.com/voxpupuli/beaker-module_install_helper/tree/0.1.3) (2017-02-22)
58
+
59
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/0.1.2...0.1.3)
60
+
61
+ **Merged pull requests:**
62
+
63
+ - Fix beaker forge api not specified error [\#11](https://github.com/voxpupuli/beaker-module_install_helper/pull/11) ([wilson208](https://github.com/wilson208))
64
+
65
+ ## [0.1.2](https://github.com/voxpupuli/beaker-module_install_helper/tree/0.1.2) (2017-02-02)
66
+
67
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/0.1.1...0.1.2)
68
+
69
+ **Merged pull requests:**
70
+
71
+ - Minor version bump for release 0.1.2 [\#10](https://github.com/voxpupuli/beaker-module_install_helper/pull/10) ([wilson208](https://github.com/wilson208))
72
+ - \[MODULES-4312\] Install modules dependencies from alternative forge instances and install modules not specified in metadata.json [\#9](https://github.com/voxpupuli/beaker-module_install_helper/pull/9) ([wilson208](https://github.com/wilson208))
73
+
74
+ ## [0.1.1](https://github.com/voxpupuli/beaker-module_install_helper/tree/0.1.1) (2017-01-09)
75
+
76
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/0.1.0...0.1.1)
77
+
78
+ **Merged pull requests:**
79
+
80
+ - Release 0.1.1 containing fixes [\#8](https://github.com/voxpupuli/beaker-module_install_helper/pull/8) ([wilson208](https://github.com/wilson208))
81
+
82
+ ## [0.1.0](https://github.com/voxpupuli/beaker-module_install_helper/tree/0.1.0) (2017-01-04)
83
+
84
+ [Full Changelog](https://github.com/voxpupuli/beaker-module_install_helper/compare/2992a8637097a36d1452be05348f11715a587bc7...0.1.0)
6
85
 
7
- ## [0.1.7]
8
- ### Fixed
9
- - gemspec changes
86
+ **Merged pull requests:**
10
87
 
11
- ## [0.1.6]
12
- ### Fixed
13
- - (BKR-1254) Update for Unix::Host does not allow each
14
- - Rubocop failures
88
+ - Add maintainers file [\#7](https://github.com/voxpupuli/beaker-module_install_helper/pull/7) ([wilson208](https://github.com/wilson208))
89
+ - Add CONTRIBUTING.md, a README update and version bump before initial release [\#6](https://github.com/voxpupuli/beaker-module_install_helper/pull/6) ([wilson208](https://github.com/wilson208))
90
+ - Implement install\_module\_dependencies\_on method [\#5](https://github.com/voxpupuli/beaker-module_install_helper/pull/5) ([wilson208](https://github.com/wilson208))
91
+ - \[MODULES-4152\] Implement install\_module and install\_module\_on methods [\#3](https://github.com/voxpupuli/beaker-module_install_helper/pull/3) ([wilson208](https://github.com/wilson208))
92
+ - \[MODULES-4157\] Basic setup with stub methods and placeholder tests [\#2](https://github.com/voxpupuli/beaker-module_install_helper/pull/2) ([wilson208](https://github.com/wilson208))
15
93
 
16
- ## [0.1.5]
17
- ### Fixed
18
- - Documentation language updates
19
- - Rubocop fixes
20
- - Failure to load Net::HTTP
21
94
 
22
95
 
23
- [Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.5...HEAD
24
- [0.1.6]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.5...0.1.6
25
- [0.1.5]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.4...0.1.5
26
- [0.1.4]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.3...0.1.4
27
- [0.1.3]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.2...0.1.3
28
- [0.1.2]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.1...0.1.2
29
- [0.1.1]: https://github.com/olivierlacan/keep-a-changelog/compare/0.1.0...0.1.1
96
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile CHANGED
@@ -3,11 +3,10 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'beaker', '= 2.52.0' if RUBY_VERSION <= '2.1.6'
7
- gem 'beaker' if RUBY_VERSION > '2.1.6'
8
- gem 'bundler', '~> 1.9'
9
- gem 'rake', '~> 10.0'
10
- gem 'rspec', '~> 3'
6
+ gem 'beaker'
7
+ gem 'bundler', '>= 1.9', '< 3'
8
+ gem 'rake', '~> 13.0'
9
+ gem 'rspec', '~> 3.0'
11
10
  gem 'rubocop', require: false
12
11
  gem 'rubocop-rspec', require: false
13
12
  end
@@ -16,3 +15,12 @@ group :development do
16
15
  gem 'pry'
17
16
  gem 'pry-byebug'
18
17
  end
18
+
19
+ group :coverage, optional: ENV['COVERAGE']!='yes' do
20
+ gem 'simplecov-console', :require => false
21
+ gem 'codecov', :require => false
22
+ end
23
+
24
+ group :release do
25
+ gem 'github_changelog_generator', '>= 1.16.4', require: false if RUBY_VERSION >= '2.5'
26
+ end
data/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## beaker-module\_install\_helper
2
2
 
3
+ [![License](https://img.shields.io/github/license/voxpupuli/beaker-module_install_helper.svg)](https://github.com/voxpupuli/beaker-module_install_helper/blob/master/LICENSE)
4
+ [![Test](https://github.com/voxpupuli/beaker-module_install_helper/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/beaker-module_install_helper/actions/workflows/test.yml)
5
+ [![Release](https://github.com/voxpupuli/beaker-module_install_helper/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/beaker-module_install_helper/actions/workflows/release.yml)
6
+ [![RubyGem Version](https://img.shields.io/gem/v/beaker-module_install_helper.svg)](https://rubygems.org/gems/beaker-module_install_helper)
7
+ [![RubyGem Downloads](https://img.shields.io/gem/dt/beaker-module_install_helper.svg)](https://rubygems.org/gems/beaker-module_install_helper)
8
+ [![Donated by Puppet Inc](https://img.shields.io/badge/donated%20by-Puppet%20Inc-fb7047.svg)](#transfer-notice)
9
+
3
10
  This gem is simply an abstraction for the various functions that are performed within the `spec/spec_helper_acceptance.rb` files across the modules to standardise how these are implemented.
4
11
 
5
12
  ### Usage
@@ -55,3 +62,23 @@ BEAKER_FORGE_HOST=https://module-staging.puppetlabs.com BEAKER_FORGE_API=https:/
55
62
 
56
63
  ### Support
57
64
  No support is supplied or implied. Use at your own risk.
65
+
66
+ ## Transfer Notice
67
+
68
+ This plugin was originally authored by [Puppet Inc](http://puppet.com).
69
+ The maintainer preferred that [Vox Pupuli](https://voxpupuli.org) take ownership of the module for future improvement and maintenance.
70
+ Existing pull requests and issues were transferred over, please fork and continue to contribute here.
71
+
72
+ ## License
73
+
74
+ This gem is licensed under the Apache-2 license.
75
+
76
+ ## Release information
77
+
78
+ To make a new release, please do:
79
+ * update the version in the gemspec file
80
+ * Install gems with `bundle install --with release --path .vendor`
81
+ * generate the changelog with `bundle exec rake changelog`
82
+ * Check if the new version matches the closed issues/PRs in the changelog
83
+ * Create a PR with it
84
+ * After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  task default: %i[lint spec]
3
5
 
@@ -13,3 +15,18 @@ RSpec::Core::RakeTask.new(:spec) do |t|
13
15
  t.rspec_opts = ['--color']
14
16
  t.pattern = 'spec'
15
17
  end
18
+
19
+ begin
20
+ require 'rubygems'
21
+ require 'github_changelog_generator/task'
22
+ rescue LoadError
23
+ # github_changelog_generator isn't available, so we won't define a rake task with it
24
+ else
25
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
26
+ config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
27
+ config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
28
+ config.user = 'voxpupuli'
29
+ config.project = 'beaker-module_install_helper'
30
+ config.future_release = Gem::Specification.load("#{config.project}.gemspec").version
31
+ end
32
+ end
@@ -3,9 +3,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'beaker-module_install_helper'
6
- spec.version = '0.1.7'
7
- spec.authors = ['Puppet']
8
- spec.email = ['wilson@puppet.com']
6
+ spec.version = '1.0.0'
7
+ spec.authors = ['Vox Pupuli']
8
+ spec.email = ['voxpupuli@groups.io']
9
9
 
10
10
  spec.summary = 'A helper gem for use in a Puppet Modules ' \
11
11
  'spec_helper_acceptance.rb file'
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  'spec_helper_acceptance.rb file to help install the ' \
14
14
  'module under test and its dependencies on the system ' \
15
15
  'under test'
16
- spec.homepage = 'https://github.com/puppetlabs/beaker-module_install_helper'
16
+ spec.homepage = 'https://github.com/voxpupuli/beaker-module_install_helper'
17
17
  spec.license = 'Apache-2.0'
18
18
 
19
19
  spec.files = `git ls-files`.split("\n")
@@ -28,4 +28,7 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  # Run time dependencies
30
30
  spec.add_runtime_dependency 'beaker', '>= 2.0'
31
+ spec.add_runtime_dependency 'beaker-puppet', '~> 1.0'
32
+
33
+ spec.required_ruby_version = '>= 2.4.0'
31
34
  end
@@ -1,4 +1,5 @@
1
1
  require 'beaker'
2
+ require 'beaker-puppet'
2
3
 
3
4
  # Provides method for use in module test setup to install the module under
4
5
  # test and it's dependencies on the specified hosts
@@ -7,16 +8,18 @@ module Beaker::ModuleInstallHelper
7
8
 
8
9
  # This method calls the install_module_on method for each host which is a
9
10
  # master, or if no master is present, on all agent nodes.
10
- def install_module
11
- install_module_on hosts_to_install_module_on
11
+ def install_module(opts = {})
12
+ install_module_on(hosts_to_install_module_on, opts)
12
13
  end
13
14
 
14
15
  # This method will install the module under test on the specified host(s) from
15
16
  # the source on the local machine
16
- def install_module_on(host)
17
- copy_module_to(host,
18
- source: $module_source_dir,
19
- module_name: module_name_from_metadata)
17
+ def install_module_on(host, opts = {})
18
+ opts = {
19
+ source: $module_source_dir,
20
+ module_name: module_name_from_metadata
21
+ }.merge(opts)
22
+ copy_module_to(host, opts)
20
23
  end
21
24
 
22
25
  # This method calls the install_module_dependencies_on method for each
@@ -52,10 +55,10 @@ module Beaker::ModuleInstallHelper
52
55
  end
53
56
 
54
57
  def install_module_from_forge_on(hsts, mod_name, ver_req)
55
- mod_name.sub!('/', '-')
58
+ sub_mod_name = mod_name.sub('/', '-')
56
59
  dependency = {
57
- module_name: mod_name,
58
- version: module_version_from_requirement(mod_name, ver_req)
60
+ module_name: sub_mod_name,
61
+ version: module_version_from_requirement(sub_mod_name, ver_req)
59
62
  }
60
63
 
61
64
  install_module_dependencies_on(hsts, [dependency])
data/spec/spec_helper.rb CHANGED
@@ -1 +1,25 @@
1
+ begin
2
+ require 'simplecov'
3
+ require 'simplecov-console'
4
+ require 'codecov'
5
+ rescue LoadError
6
+ else
7
+ SimpleCov.start do
8
+ track_files 'lib/**/*.rb'
9
+
10
+ add_filter '/spec'
11
+
12
+ enable_coverage :branch
13
+
14
+ # do not track vendored files
15
+ add_filter '/vendor'
16
+ add_filter '/.vendor'
17
+ end
18
+
19
+ SimpleCov.formatters = [
20
+ SimpleCov::Formatter::Console,
21
+ SimpleCov::Formatter::Codecov,
22
+ ]
23
+ end
24
+
1
25
  require 'beaker/module_install_helper'
@@ -71,24 +71,48 @@ describe Beaker::ModuleInstallHelper do
71
71
  let(:module_source_dir) { '/a/b/c/d' }
72
72
  let(:host) { { 'roles' => %w[master database dashboard classifier] } }
73
73
 
74
- before do
75
- $module_source_dir = '/a/b/c/d'
76
- allow(File).to receive(:exist?).and_return(true)
77
- allow(File).to receive(:read).and_return('{"name": "puppetlabs-vcsrepo"}')
78
-
79
- allow_any_instance_of(Beaker::DSL::InstallUtils::ModuleUtils)
80
- .to receive(:copy_module_to)
81
- .with(anything)
82
- .and_return(false)
74
+ context 'without options' do
75
+ before do
76
+ $module_source_dir = '/a/b/c/d'
77
+ allow(File).to receive(:exist?).and_return(true)
78
+ allow(File).to receive(:read).and_return('{"name": "puppetlabs-vcsrepo"}')
79
+
80
+ allow_any_instance_of(Beaker::DSL::InstallUtils::ModuleUtils)
81
+ .to receive(:copy_module_to)
82
+ .with(anything)
83
+ .and_return(false)
84
+
85
+ allow_any_instance_of(Beaker::DSL::InstallUtils::ModuleUtils)
86
+ .to receive(:copy_module_to)
87
+ .with(host, source: module_source_dir, module_name: 'vcsrepo')
88
+ .and_return(true)
89
+ end
83
90
 
84
- allow_any_instance_of(Beaker::DSL::InstallUtils::ModuleUtils)
85
- .to receive(:copy_module_to)
86
- .with(host, source: module_source_dir, module_name: 'vcsrepo')
87
- .and_return(true)
91
+ it 'copy module to given host' do
92
+ expect(install_module_on(host)).to be true
93
+ end
88
94
  end
89
95
 
90
- it 'copy module to given host' do
91
- expect(install_module_on(host)).to be true
96
+ context 'with options' do
97
+ before do
98
+ $module_source_dir = '/a/b/c/d'
99
+ allow(File).to receive(:exist?).and_return(true)
100
+ allow(File).to receive(:read).and_return('{"name": "puppetlabs-vcsrepo"}')
101
+
102
+ allow_any_instance_of(Beaker::DSL::InstallUtils::ModuleUtils)
103
+ .to receive(:copy_module_to)
104
+ .with(anything)
105
+ .and_return(false)
106
+
107
+ allow_any_instance_of(Beaker::DSL::InstallUtils::ModuleUtils)
108
+ .to receive(:copy_module_to)
109
+ .with(host, source: module_source_dir, module_name: 'vcsrepo', protocol: 'rsync')
110
+ .and_return(true)
111
+ end
112
+
113
+ it 'copy module to given host' do
114
+ expect(install_module_on(host, protocol: 'rsync')).to be true
115
+ end
92
116
  end
93
117
  end
94
118
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-module_install_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Puppet
7
+ - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-08 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -38,29 +38,44 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: beaker-puppet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  description: A helper gem for use in a Puppet Modules spec_helper_acceptance.rb file
42
56
  to help install the module under test and its dependencies on the system under test
43
57
  email:
44
- - wilson@puppet.com
58
+ - voxpupuli@groups.io
45
59
  executables: []
46
60
  extensions: []
47
61
  extra_rdoc_files: []
48
62
  files:
63
+ - ".github/dependabot.yml"
64
+ - ".github/workflows/release.yml"
65
+ - ".github/workflows/test.yml"
49
66
  - ".gitignore"
50
67
  - ".rubocop.yml"
51
- - ".travis.yml"
52
68
  - CHANGELOG.md
53
69
  - CONTRIBUTING.md
54
70
  - Gemfile
55
71
  - LICENSE
56
- - MAINTAINERS
57
72
  - README.md
58
73
  - Rakefile
59
74
  - beaker-module_install_helper.gemspec
60
75
  - lib/beaker/module_install_helper.rb
61
76
  - spec/spec_helper.rb
62
77
  - spec/unit/beaker/module_install_helper_spec.rb
63
- homepage: https://github.com/puppetlabs/beaker-module_install_helper
78
+ homepage: https://github.com/voxpupuli/beaker-module_install_helper
64
79
  licenses:
65
80
  - Apache-2.0
66
81
  metadata: {}
@@ -72,18 +87,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
87
  requirements:
73
88
  - - ">="
74
89
  - !ruby/object:Gem::Version
75
- version: '0'
90
+ version: 2.4.0
76
91
  required_rubygems_version: !ruby/object:Gem::Requirement
77
92
  requirements:
78
93
  - - ">="
79
94
  - !ruby/object:Gem::Version
80
95
  version: '0'
81
96
  requirements: []
82
- rubyforge_project:
83
- rubygems_version: 2.6.8
97
+ rubygems_version: 3.2.22
84
98
  signing_key:
85
99
  specification_version: 4
86
100
  summary: A helper gem for use in a Puppet Modules spec_helper_acceptance.rb file
87
- test_files:
88
- - spec/spec_helper.rb
89
- - spec/unit/beaker/module_install_helper_spec.rb
101
+ test_files: []
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- script:
3
- - bundle exec rake lint spec
4
- notifications:
5
- email: false
6
- rvm:
7
- - 2.1.6
8
- - 2.3.0
data/MAINTAINERS DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "version": 1,
3
- "file_format": "This MAINTAINERS file format is described at http://pup.pt/maintainers",
4
- "issues": "https://github.com/puppetlabs/beaker-module_install_helper/issues",
5
- "people": [
6
- {
7
- "github": "wilson208",
8
- "name": "Wilson McCoubrey"
9
- }
10
- ]
11
- }