kitchen-pester 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +443 -0
- data/kitchen-pester.gemspec +11 -8
- data/lib/kitchen/verifier/pester.rb +308 -81
- data/lib/kitchen/verifier/pester_version.rb +31 -1
- data/lib/support/modules/PesterUtil/PesterUtil.psm1 +20 -0
- metadata +13 -62
- data/Gemfile +0 -29
- data/Rakefile +0 -57
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# Copyright (c) 2015 Steven Murawski
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
|
11
|
+
# all copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
# THE SOFTWARE.
|
|
20
|
+
|
|
1
21
|
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
|
2
22
|
|
|
3
23
|
function Install-ModuleFromNuget {
|
metadata
CHANGED
|
@@ -1,83 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-pester
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Murawski
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: rake
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: minitest
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '5.3'
|
|
34
|
-
- - "<"
|
|
35
|
-
- !ruby/object:Gem::Version
|
|
36
|
-
version: '5.16'
|
|
37
|
-
type: :development
|
|
38
|
-
prerelease: false
|
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
-
requirements:
|
|
41
|
-
- - "~>"
|
|
42
|
-
- !ruby/object:Gem::Version
|
|
43
|
-
version: '5.3'
|
|
44
|
-
- - "<"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '5.16'
|
|
47
|
-
- !ruby/object:Gem::Dependency
|
|
48
|
-
name: mocha
|
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "~>"
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '1.1'
|
|
54
|
-
type: :development
|
|
55
|
-
prerelease: false
|
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - "~>"
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '1.1'
|
|
61
13
|
- !ruby/object:Gem::Dependency
|
|
62
14
|
name: test-kitchen
|
|
63
15
|
requirement: !ruby/object:Gem::Requirement
|
|
64
16
|
requirements:
|
|
65
17
|
- - ">="
|
|
66
18
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
19
|
+
version: '3.6'
|
|
68
20
|
- - "<"
|
|
69
21
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: '
|
|
22
|
+
version: '5'
|
|
71
23
|
type: :runtime
|
|
72
24
|
prerelease: false
|
|
73
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
74
26
|
requirements:
|
|
75
27
|
- - ">="
|
|
76
28
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: '
|
|
29
|
+
version: '3.6'
|
|
78
30
|
- - "<"
|
|
79
31
|
- !ruby/object:Gem::Version
|
|
80
|
-
version: '
|
|
32
|
+
version: '5'
|
|
81
33
|
description: Skip all that Busser stuff and jump right into Pester.
|
|
82
34
|
email:
|
|
83
35
|
- steven.murawski@gmail.com
|
|
@@ -85,18 +37,17 @@ executables: []
|
|
|
85
37
|
extensions: []
|
|
86
38
|
extra_rdoc_files: []
|
|
87
39
|
files:
|
|
88
|
-
- Gemfile
|
|
89
40
|
- LICENSE
|
|
90
|
-
-
|
|
41
|
+
- README.md
|
|
91
42
|
- kitchen-pester.gemspec
|
|
92
43
|
- lib/kitchen/verifier/pester.rb
|
|
93
44
|
- lib/kitchen/verifier/pester_version.rb
|
|
94
45
|
- lib/support/modules/PesterUtil/PesterUtil.psm1
|
|
95
46
|
homepage: https://github.com/test-kitchen/kitchen-pester
|
|
96
47
|
licenses:
|
|
97
|
-
-
|
|
48
|
+
- MIT
|
|
98
49
|
metadata: {}
|
|
99
|
-
post_install_message:
|
|
50
|
+
post_install_message:
|
|
100
51
|
rdoc_options: []
|
|
101
52
|
require_paths:
|
|
102
53
|
- lib
|
|
@@ -104,15 +55,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
104
55
|
requirements:
|
|
105
56
|
- - ">="
|
|
106
57
|
- !ruby/object:Gem::Version
|
|
107
|
-
version: '
|
|
58
|
+
version: '3.1'
|
|
108
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
60
|
requirements:
|
|
110
61
|
- - ">="
|
|
111
62
|
- !ruby/object:Gem::Version
|
|
112
63
|
version: '0'
|
|
113
64
|
requirements: []
|
|
114
|
-
rubygems_version: 3.
|
|
115
|
-
signing_key:
|
|
65
|
+
rubygems_version: 3.5.9
|
|
66
|
+
signing_key:
|
|
116
67
|
specification_version: 4
|
|
117
68
|
summary: Test-Kitchen verifier for Pester.
|
|
118
69
|
test_files: []
|
data/Gemfile
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
# Specify your gem's dependencies in kitchen-pester.gemspec
|
|
4
|
-
gemspec
|
|
5
|
-
|
|
6
|
-
group :integration do
|
|
7
|
-
gem "berkshelf"
|
|
8
|
-
gem "kitchen-inspec"
|
|
9
|
-
gem "kitchen-azurerm"
|
|
10
|
-
gem "kitchen-chocolatey"
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
group :changelog do
|
|
14
|
-
gem "github_changelog_generator", "1.16.4"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
group :debug do
|
|
18
|
-
gem "pry", "~>0.13.1"
|
|
19
|
-
gem "pry-byebug", "~>3.9.0"
|
|
20
|
-
gem "pry-stack_explorer"
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
group :chefstyle do
|
|
24
|
-
gem "chefstyle"
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
group :docs do
|
|
28
|
-
gem "yard"
|
|
29
|
-
end
|
data/Rakefile
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
|
2
|
-
|
|
3
|
-
require "rake/testtask"
|
|
4
|
-
Rake::TestTask.new(:unit) do |t|
|
|
5
|
-
t.libs.push "lib"
|
|
6
|
-
t.test_files = FileList["spec/**/*_spec.rb"]
|
|
7
|
-
t.verbose = true
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
task test: :unit
|
|
11
|
-
|
|
12
|
-
begin
|
|
13
|
-
require "chefstyle"
|
|
14
|
-
require "rubocop/rake_task"
|
|
15
|
-
RuboCop::RakeTask.new(:style) do |task|
|
|
16
|
-
task.options += ["--display-cop-names", "--no-color"]
|
|
17
|
-
end
|
|
18
|
-
rescue LoadError
|
|
19
|
-
puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking."
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
desc "Run all quality tasks"
|
|
23
|
-
task quality: :style
|
|
24
|
-
|
|
25
|
-
begin
|
|
26
|
-
require "yard" unless defined?(YARD)
|
|
27
|
-
YARD::Rake::YardocTask.new
|
|
28
|
-
rescue LoadError
|
|
29
|
-
puts "yard is not available. (sudo) gem install yard to generate yard documentation."
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
task default: %i{test quality}
|
|
33
|
-
|
|
34
|
-
begin
|
|
35
|
-
require "github_changelog_generator/task"
|
|
36
|
-
require "kitchen/verifier/pester_version"
|
|
37
|
-
|
|
38
|
-
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
39
|
-
config.future_release = "v#{Kitchen::Verifier::PESTER_VERSION}"
|
|
40
|
-
config.issues = false
|
|
41
|
-
config.pulls = true
|
|
42
|
-
config.user = "test-kitchen"
|
|
43
|
-
config.project = "kitchen-pester"
|
|
44
|
-
end
|
|
45
|
-
rescue LoadError
|
|
46
|
-
puts "github_changelog_generator is not available." \
|
|
47
|
-
" (sudo) gem install github_changelog_generator to generate changelogs"
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
namespace :docs do
|
|
51
|
-
desc "Deploy docs"
|
|
52
|
-
task :deploy do
|
|
53
|
-
sh "cd docs && hugo"
|
|
54
|
-
sh "aws --profile chef-cd s3 sync docs/public s3://test-kitchen-legacy.cd.chef.co --delete --acl public-read"
|
|
55
|
-
sh "aws --profile chef-cd cloudfront create-invalidation --distribution-id EQD8MRW086SRT --paths '/*'"
|
|
56
|
-
end
|
|
57
|
-
end
|