simp-rake-helpers 5.11.2 → 5.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +5 -1
- data/README.md +1 -1
- data/lib/simp/command_utils.rb +21 -0
- data/lib/simp/componentinfo.rb +17 -0
- data/lib/simp/local_gpg_signing_key.rb +184 -81
- data/lib/simp/rake.rb +3 -10
- data/lib/simp/rake/build/build.rb +43 -27
- data/lib/simp/rake/build/constants.rb +5 -1
- data/lib/simp/rake/build/pkg.rb +167 -51
- data/lib/simp/rake/build/tar.rb +1 -1
- data/lib/simp/rake/helpers/version.rb +1 -1
- data/lib/simp/rake/pkg.rb +5 -1
- data/lib/simp/rake/pupmod/helpers.rb +2 -0
- data/lib/simp/rake/rubygem.rb +5 -1
- data/lib/simp/relchecks.rb +1 -1
- data/lib/simp/rpm.rb +13 -125
- data/lib/simp/rpm_signer.rb +321 -0
- data/spec/acceptance/00_pkg_rpm_custom_scriptlets_spec.rb +18 -19
- data/spec/acceptance/10_pkg_rpm_spec.rb +46 -48
- data/spec/acceptance/50_local_gpg_signing_key_spec.rb +7 -3
- data/spec/acceptance/55_build_pkg_signing_spec.rb +293 -42
- data/spec/acceptance/files/testpackage/README +8 -0
- data/spec/acceptance/files/testpackage/spec/classes/init_spec.rb +1 -0
- data/spec/acceptance/files/testpackage/spec/files/mock_something.rb +3 -0
- data/spec/acceptance/files/testpackage/utils/convert_v1_to_v2.rb +3 -0
- data/spec/acceptance/nodesets/default.yml +34 -109
- data/spec/acceptance/support/build_project_helpers.rb +32 -8
- data/spec/lib/simp/ci/gitlab_spec.rb +12 -13
- data/spec/lib/simp/command_utils_spec.rb +29 -0
- data/spec/lib/simp/componentinfo_spec.rb +10 -4
- data/spec/lib/simp/local_gpg_signing_key_spec.rb.beaker-only +115 -18
- data/spec/lib/simp/rake/build/helpers_spec.rb +3 -0
- data/spec/lib/simp/rake/build/rpmdeps_spec.rb +1 -2
- data/spec/lib/simp/rake/pupmod/fixtures/othermod/Gemfile +1 -10
- data/spec/lib/simp/rake/pupmod/fixtures/simpmod/README.md +2 -2
- data/spec/lib/simp/rake_spec.rb +2 -1
- data/spec/lib/simp/relchecks_check_rpm_changelog_spec.rb +20 -10
- data/spec/lib/simp/relchecks_compare_latest_tag_spec.rb +18 -18
- data/spec/lib/simp/rpm_signer_spec.rb +98 -0
- data/spec/lib/simp/rpm_spec.rb +1 -7
- data/spec/spec_helper.rb +1 -1
- data/spec/spec_helper_acceptance.rb +16 -3
- metadata +13 -69
- data/.travis.yml +0 -60
- data/spec/acceptance/20_pkg_rpm_upgrade_spec.rb +0 -236
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/CHANGELOG +0 -2
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/Rakefile +0 -3
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/build/rpm_metadata/custom/overrides +0 -14
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/build/rpm_metadata/requires +0 -1
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/metadata.json +0 -33
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/CHANGELOG +0 -2
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/Rakefile +0 -3
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/build/rpm_metadata/custom/overrides +0 -14
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/build/rpm_metadata/requires +0 -1
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/metadata.json +0 -33
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/CHANGELOG +0 -2
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/Rakefile +0 -3
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/build/rpm_metadata/requires +0 -1
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/metadata.json +0 -33
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/CHANGELOG +0 -2
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/Rakefile +0 -3
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/build/rpm_metadata/requires +0 -1
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/metadata.json +0 -33
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/CHANGELOG +0 -2
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/Rakefile +0 -3
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/build/rpm_metadata/custom/overrides +0 -14
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/build/rpm_metadata/requires +0 -1
- data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/metadata.json +0 -33
- data/spec/acceptance/files/mock_packages/pupmod-puppetlabs-stdlib.spec +0 -32
- data/spec/acceptance/files/mock_packages/pupmod-simp-foo.spec +0 -32
- data/spec/acceptance/files/mock_packages/pupmod-simp-simplib.spec +0 -32
- data/spec/acceptance/files/mock_packages/rpmbuild.sh +0 -25
- data/spec/acceptance/files/mock_packages/simp-adapter.spec +0 -43
- data/spec/acceptance/files/mock_packages/simp-adapter/etc/simp/adapter_config.yaml +0 -3
- data/spec/acceptance/files/mock_packages/simp-adapter/usr/local/sbin/simp_rpm_helper +0 -495
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/CHANGELOG +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/Rakefile +0 -3
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/build/rpm_metadata/requires +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/data/os/CentOS.yaml +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/data/os/RedHat.yaml +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/hiera.yaml +0 -14
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/manifests/init.pp +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/metadata.json +0 -37
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/CHANGELOG +0 -5
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/Rakefile +0 -3
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/build/rpm_metadata/requires +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/data/os/CentOS.yaml +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/data/os/RedHat.yaml +0 -2
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/hiera.yaml +0 -14
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/manifests/init.pp +0 -3
- data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/metadata.json +0 -37
- data/spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/no_gitlab_config_without_tests/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/nodesets/default.yml +0 -1
- data/spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/suites/default/nodesets +0 -1
- data/spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/nodesets/default.yml +0 -1
- data/spec/lib/simp/files/build/testpackage.spec +0 -1
- data/spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/nodesets/default.yml +0 -1
- data/spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/suites/default/nodesets +0 -1
@@ -4,7 +4,10 @@ require 'spec_helper'
|
|
4
4
|
describe Simp::Rake::Build::Helpers do
|
5
5
|
before :each do
|
6
6
|
dir = File.expand_path( '../../files/simp_build', File.dirname( __FILE__ ) )
|
7
|
+
env = ENV['SIMP_RPM_dist'].dup
|
8
|
+
ENV['SIMP_RPM_dist'] = '.el7'
|
7
9
|
@obj = Simp::Rake::Build::Helpers.new( dir )
|
10
|
+
ENV['SIMP_RPM_dist'] = env
|
8
11
|
end
|
9
12
|
|
10
13
|
describe "#initialize" do
|
@@ -32,8 +32,7 @@ describe 'Simp::Rake::Build::RpmDeps#get_version_requires' do
|
|
32
32
|
}.to raise_error(SIMPRpmDepVersionException)
|
33
33
|
end
|
34
34
|
|
35
|
-
|
36
|
-
pending do
|
35
|
+
it( nil, :pending => "FIXME regex doesn't catch this" ) do
|
37
36
|
expect{
|
38
37
|
Simp::Rake::Build::RpmDeps::get_version_requires(pkg, '<= 3.0.0')
|
39
38
|
}.to raise_error(SIMPRpmDepVersionException)
|
@@ -1,18 +1,9 @@
|
|
1
1
|
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
2
2
|
|
3
|
-
puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : ['>=
|
3
|
+
puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : ['>= 5.5']
|
4
4
|
gem 'metadata-json-lint'
|
5
5
|
gem 'puppet', puppetversion
|
6
6
|
gem 'puppetlabs_spec_helper', '>= 1.0.0'
|
7
7
|
gem 'puppet-lint', '>= 1.0.0'
|
8
8
|
gem 'facter', '>= 1.7.0'
|
9
9
|
gem 'rspec-puppet'
|
10
|
-
|
11
|
-
# rspec must be v2 for ruby 1.8.7
|
12
|
-
if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
|
13
|
-
gem 'rspec', '~> 2.0'
|
14
|
-
gem 'rake', '~> 10.0'
|
15
|
-
else
|
16
|
-
# rubocop requires ruby >= 1.9
|
17
|
-
gem 'rubocop'
|
18
|
-
end
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
Start with a one- or two-sentence summary of what the module does and/or what
|
23
23
|
problem it solves. This is your 30-second elevator pitch for your module.
|
24
|
-
Consider including OS and Puppet version
|
24
|
+
Consider including OS and Puppet version compatibility, and any other
|
25
25
|
information users will need to quickly assess the module's viability within
|
26
26
|
their environment.
|
27
27
|
|
@@ -33,7 +33,7 @@ management, etc.), this is the time to mention it.
|
|
33
33
|
### This is a SIMP module
|
34
34
|
|
35
35
|
This module is a component of the [System Integrity Management
|
36
|
-
Platform](https://
|
36
|
+
Platform](https://simp-project.com), a
|
37
37
|
compliance-management framework built on Puppet.
|
38
38
|
|
39
39
|
If you find any issues, they may be submitted to our [bug
|
data/spec/lib/simp/rake_spec.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'simp/relchecks'
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
|
+
rpm_version = Simp::RPM.version
|
5
|
+
|
4
6
|
describe 'Simp::RelChecks.check_rpm_changelog' do
|
5
7
|
let(:files_dir) {
|
6
8
|
File.join( File.dirname(__FILE__), 'files', File.basename(__FILE__, '.rb'))
|
@@ -31,19 +33,27 @@ describe 'Simp::RelChecks.check_rpm_changelog' do
|
|
31
33
|
|
32
34
|
context 'with changelog errors' do
|
33
35
|
it 'fails for a Puppet module' do
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
if Gem::Version.new(rpm_version) > Gem::Version.new('4.15.0')
|
37
|
+
skip("RPM #{rpm_version} does not properly process changelog entries")
|
38
|
+
else
|
39
|
+
component_dir = File.join(files_dir, 'module_with_misordered_entries')
|
40
|
+
component_spec = File.join(templates_dir, 'simpdefault.spec')
|
41
|
+
|
42
|
+
expect{ Simp::RelChecks.check_rpm_changelog(component_dir, component_spec) }.
|
43
|
+
to raise_error(/ERROR: Invalid changelog for module_with_misordered_entries/)
|
44
|
+
end
|
39
45
|
end
|
40
46
|
|
41
47
|
it 'fails for a non-Puppet asset' do
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
48
|
+
if Gem::Version.new(rpm_version) > Gem::Version.new('4.15.0')
|
49
|
+
skip("RPM #{rpm_version} does not properly process changelog entries")
|
50
|
+
else
|
51
|
+
component_dir = File.join(files_dir, 'asset_with_misordered_entries')
|
52
|
+
component_spec = File.join(component_dir, 'build', 'asset_with_misordered_entries.spec')
|
53
|
+
|
54
|
+
expect{ Simp::RelChecks.check_rpm_changelog(component_dir, component_spec) }.
|
55
|
+
to raise_error(/ERROR: Invalid changelog for asset_with_misordered_entries/)
|
56
|
+
end
|
47
57
|
end
|
48
58
|
end
|
49
59
|
end
|
@@ -10,17 +10,17 @@ describe 'Simp::RelChecks.compare_latest_tag' do
|
|
10
10
|
|
11
11
|
context 'with no project errors' do
|
12
12
|
it 'reports no tags for a project with no tags' do
|
13
|
-
Simp::RelChecks.
|
14
|
-
Simp::RelChecks.
|
13
|
+
expect(Simp::RelChecks).to receive(:`).with('git fetch -t origin 2>/dev/null').and_return("\n")
|
14
|
+
expect(Simp::RelChecks).to receive(:`).with('git tag -l').and_return("\n")
|
15
15
|
|
16
16
|
expect{ Simp::RelChecks.compare_latest_tag(component_dir) }.
|
17
17
|
to output(" No tags exist from origin\n").to_stdout
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'reports no new tag required when no files have changed' do
|
21
|
-
Simp::RelChecks.
|
22
|
-
Simp::RelChecks.
|
23
|
-
Simp::RelChecks.
|
21
|
+
expect(Simp::RelChecks).to receive(:`).with('git fetch -t origin 2>/dev/null').and_return("\n")
|
22
|
+
expect(Simp::RelChecks).to receive(:`).with('git tag -l').and_return("1.0.0-pre\n1.0.0\n1.1.0\n")
|
23
|
+
expect(Simp::RelChecks).to receive(:`).with('git diff tags/1.1.0 --name-only').and_return("\n")
|
24
24
|
|
25
25
|
msg = " No new tag required: No significant files have changed since '1.1.0' tag\n"
|
26
26
|
expect{ Simp::RelChecks.compare_latest_tag(component_dir) }.
|
@@ -28,10 +28,10 @@ describe 'Simp::RelChecks.compare_latest_tag' do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'reports no new tag required when no significant files have changed' do
|
31
|
-
Simp::RelChecks.
|
32
|
-
Simp::RelChecks.
|
33
|
-
Simp::RelChecks.
|
34
|
-
".travis.yml\nRakefile\nGemfile.lock\nspec/some_spec.rb\ndoc/index.html\nrakelib/mytasks.rake\n")
|
31
|
+
expect(Simp::RelChecks).to receive(:`).with('git fetch -t origin 2>/dev/null').and_return("\n")
|
32
|
+
expect(Simp::RelChecks).to receive(:`).with('git tag -l').and_return("1.0.0\nv1.0.1\n1.1.0\n")
|
33
|
+
expect(Simp::RelChecks).to receive(:`).with('git diff tags/1.1.0 --name-only').and_return(
|
34
|
+
".travis.yml\nRakefile\nREFERENCE.md\nGemfile.lock\nspec/some_spec.rb\ndoc/index.html\nrakelib/mytasks.rake\n")
|
35
35
|
|
36
36
|
msg = " No new tag required: No significant files have changed since '1.1.0' tag\n"
|
37
37
|
expect{ Simp::RelChecks.compare_latest_tag(component_dir) }.
|
@@ -39,9 +39,9 @@ describe 'Simp::RelChecks.compare_latest_tag' do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'reports a new tag is required for significant changes with bumped version' do
|
42
|
-
Simp::RelChecks.
|
43
|
-
Simp::RelChecks.
|
44
|
-
Simp::RelChecks.
|
42
|
+
expect(Simp::RelChecks).to receive(:`).with('git fetch -t origin 2>/dev/null').and_return("\n")
|
43
|
+
expect(Simp::RelChecks).to receive(:`).with('git tag -l').and_return("1.0.0\n1.1.0-RC01\n")
|
44
|
+
expect(Simp::RelChecks).to receive(:`).with('git diff tags/1.0.0 --name-only').and_return(
|
45
45
|
"CHANGELOG\nmetadata.json\nmanifest/init.pp\n")
|
46
46
|
|
47
47
|
msg = <<-EOM
|
@@ -58,9 +58,9 @@ NOTICE: New tag of version '1.1.0' is required for 3 changed files:
|
|
58
58
|
|
59
59
|
context 'with project errors' do
|
60
60
|
it 'fails when latest version < latest tag' do
|
61
|
-
Simp::RelChecks.
|
62
|
-
Simp::RelChecks.
|
63
|
-
Simp::RelChecks.
|
61
|
+
expect(Simp::RelChecks).to receive(:`).with('git fetch -t origin 2>/dev/null').and_return("\n")
|
62
|
+
expect(Simp::RelChecks).to receive(:`).with('git tag -l').and_return("1.0.0\n1.2.0\n")
|
63
|
+
expect(Simp::RelChecks).to receive(:`).with('git diff tags/1.2.0 --name-only').and_return(
|
64
64
|
"CHANGELOG\nmetadata.json\nmanifest/init.pp\n")
|
65
65
|
|
66
66
|
expect{ Simp::RelChecks.compare_latest_tag(component_dir) }.
|
@@ -68,9 +68,9 @@ NOTICE: New tag of version '1.1.0' is required for 3 changed files:
|
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'fails when significant file changes need a version bump' do
|
71
|
-
Simp::RelChecks.
|
72
|
-
Simp::RelChecks.
|
73
|
-
Simp::RelChecks.
|
71
|
+
expect(Simp::RelChecks).to receive(:`).with('git fetch -t origin 2>/dev/null').and_return("\n")
|
72
|
+
expect(Simp::RelChecks).to receive(:`).with('git tag -l').and_return("1.0.0\n1.1.0\n")
|
73
|
+
expect(Simp::RelChecks).to receive(:`).with('git diff tags/1.1.0 --name-only').and_return(
|
74
74
|
"manifest/init.pp\n")
|
75
75
|
|
76
76
|
expect{ Simp::RelChecks.compare_latest_tag(component_dir) }.
|
@@ -0,0 +1,98 @@
|
|
1
|
+
require 'simp/rpm_signer'
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'tmpdir'
|
5
|
+
|
6
|
+
|
7
|
+
describe Simp::RpmSigner do
|
8
|
+
|
9
|
+
before :all do
|
10
|
+
@tmp_dir = Dir.mktmpdir('spec_test__rpm_signer')
|
11
|
+
@gpg_keydir = File.join(@tmp_dir, 'dev')
|
12
|
+
end
|
13
|
+
|
14
|
+
after :all do
|
15
|
+
FileUtils.remove_entry_secure(@tmp_dir)
|
16
|
+
end
|
17
|
+
|
18
|
+
let(:verbose) { ENV['VERBOSE'].to_s =~ /^(yes|true)$/ }
|
19
|
+
let(:gpg_email_name) { 'gatekeeper@simp.development.key' }
|
20
|
+
let(:passphrase) { 'dev_passphrase' }
|
21
|
+
let(:key_id) { '722B97A808E7DAEA' }
|
22
|
+
let(:key_size) { 4096 }
|
23
|
+
let(:key_info) { {
|
24
|
+
:dir => @gpg_keydir,
|
25
|
+
:name => gpg_email_name,
|
26
|
+
:key_id => key_id,
|
27
|
+
:key_size => key_size,
|
28
|
+
:password => passphrase
|
29
|
+
} }
|
30
|
+
|
31
|
+
let(:gpg_cmd) { "gpg --with-colons --homedir=#{@gpg_keydir} --list-keys '<#{gpg_email_name}>' 2>&1" }
|
32
|
+
let(:key_list_output) { <<~EOM
|
33
|
+
tru::1:1521838828:0:3:1:5
|
34
|
+
pub:e:4096:1:722B97A808E7DAEA:1521838554:1523048154::-:::sc::::::23::0:
|
35
|
+
fpr:::::::::5DD3E8D45C99780DCA7D0B83722B97A808E7DAEA:
|
36
|
+
uid:e::::1521838554::773C55CA511CCE31244D86D4AB70F6499024695F::SIMP Development (Development key 1521838554) <gatekeeper@simp.development.key>::::::::::0:
|
37
|
+
EOM
|
38
|
+
}
|
39
|
+
|
40
|
+
# The bulk of load_key is tested in the acceptance test. These tests are
|
41
|
+
# a few edge cases.
|
42
|
+
context '.load_key' do
|
43
|
+
context 'key info missing from files' do
|
44
|
+
before :each do
|
45
|
+
allow(Simp::RpmSigner).to receive(:which).with('gpg').and_return('/usr/bin/gpg')
|
46
|
+
FileUtils.mkdir_p(@gpg_keydir)
|
47
|
+
end
|
48
|
+
|
49
|
+
after :each do
|
50
|
+
FileUtils.rm_rf(@gpg_keydir)
|
51
|
+
Simp::RpmSigner.clear_gpg_keys_cache
|
52
|
+
end
|
53
|
+
|
54
|
+
it 'should prompt user for key email and passphrase when not in files' do
|
55
|
+
expect($stdin).to receive(:gets).and_return(gpg_email_name, passphrase)
|
56
|
+
expect(Simp::RpmSigner).to receive(:`).with(gpg_cmd).and_return(key_list_output)
|
57
|
+
|
58
|
+
expect(Simp::RpmSigner.load_key(@gpg_keydir, verbose)).to eq (key_info)
|
59
|
+
|
60
|
+
# verifies returning info from the cache, otherwise user would be prompted again
|
61
|
+
# and expectation on $stdin would fail
|
62
|
+
expect(Simp::RpmSigner.load_key(@gpg_keydir, verbose)).to eq (key_info)
|
63
|
+
end
|
64
|
+
|
65
|
+
it "should read the passphrase from the 'password' file" do
|
66
|
+
File.open(File.join(@gpg_keydir, 'password'),'w') { |file| file.puts passphrase }
|
67
|
+
expect($stdin).to receive(:gets).and_return(gpg_email_name)
|
68
|
+
expect(Simp::RpmSigner).to receive(:`).with(gpg_cmd).and_return(key_list_output)
|
69
|
+
|
70
|
+
expect(Simp::RpmSigner.load_key(@gpg_keydir, verbose)).to eq (key_info)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context 'errors' do
|
75
|
+
it 'should fail when gpg does not exist' do
|
76
|
+
expect(Simp::RpmSigner).to receive(:which).with('gpg').and_return(nil)
|
77
|
+
expect { Simp::RpmSigner.load_key(@gpg_keydir, verbose) }.to raise_error(
|
78
|
+
/Cannot sign RPMs without 'gpg'/)
|
79
|
+
end
|
80
|
+
|
81
|
+
it 'should fail when keydir does not exist' do
|
82
|
+
expect(Simp::RpmSigner).to receive(:which).with('gpg').and_return('/usr/bin/gpg')
|
83
|
+
expect { Simp::RpmSigner.load_key(@gpg_keydir, verbose) }.to raise_error(
|
84
|
+
/Could not find GPG keydir/)
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'should fail when key info cannot be retrieved via gpg' do
|
88
|
+
FileUtils.mkdir_p(@gpg_keydir)
|
89
|
+
expect(Simp::RpmSigner).to receive(:which).with('gpg').and_return('/usr/bin/gpg')
|
90
|
+
expect($stdin).to receive(:gets).and_return(gpg_email_name, passphrase)
|
91
|
+
expect(Simp::RpmSigner).to receive(:`).with(gpg_cmd).and_return('')
|
92
|
+
|
93
|
+
expect { Simp::RpmSigner.load_key(@gpg_keydir, verbose) }.to raise_error(
|
94
|
+
/Error getting GPG key ID or Key size metadata/)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
data/spec/lib/simp/rpm_spec.rb
CHANGED
@@ -237,7 +237,7 @@ describe Simp::RPM do
|
|
237
237
|
ENV['SIMP_RPM_dist'] = @pre_env
|
238
238
|
end
|
239
239
|
it 'returns dist' do
|
240
|
-
Simp::RPM.
|
240
|
+
allow(Simp::RPM).to receive(:system_dist).and_return('.testdist')
|
241
241
|
rpm_obj = Simp::RPM.new( @rpm_file )
|
242
242
|
d_rpm_obj = Simp::RPM.new( @d_rpm_file )
|
243
243
|
spec_obj = Simp::RPM.new( @spec_file )
|
@@ -366,11 +366,5 @@ describe Simp::RPM do
|
|
366
366
|
|
367
367
|
describe '.create_rpm_build_metadata' do
|
368
368
|
end
|
369
|
-
|
370
|
-
describe '.load_key' do
|
371
|
-
end
|
372
|
-
|
373
|
-
describe '.signrpm' do
|
374
|
-
end
|
375
369
|
=end
|
376
370
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,22 +1,35 @@
|
|
1
1
|
require 'beaker-rspec'
|
2
|
+
require 'tmpdir'
|
3
|
+
require 'yaml'
|
2
4
|
require 'simp/beaker_helpers'
|
3
5
|
include Simp::BeakerHelpers
|
4
|
-
require 'tmpdir'
|
5
|
-
require 'pry' if ENV['PRY'] == 'yes'
|
6
6
|
|
7
7
|
require 'acceptance/support/simp_rake_helpers'
|
8
8
|
$LOAD_PATH.unshift(File.expand_path('../acceptance/support',__FILE__))
|
9
9
|
|
10
|
+
unless ENV['BEAKER_provision'] == 'no'
|
11
|
+
hosts.each do |host|
|
12
|
+
# Install Puppet
|
13
|
+
if host.is_pe?
|
14
|
+
install_pe
|
15
|
+
else
|
16
|
+
install_puppet
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
10
21
|
|
11
22
|
RSpec.configure do |c|
|
12
23
|
# provide helper methods to individual examples AND example groups
|
13
24
|
c.include Simp::BeakerHelpers::SimpRakeHelpers
|
14
25
|
c.extend Simp::BeakerHelpers::SimpRakeHelpers
|
15
26
|
|
27
|
+
# ensure that environment OS is ready on each host
|
28
|
+
fix_errata_on hosts
|
29
|
+
|
16
30
|
# Readable test descriptions
|
17
31
|
c.formatter = :documentation
|
18
32
|
|
19
|
-
# Configure all nodes in nodeset
|
20
33
|
c.before :suite do
|
21
34
|
end
|
22
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rake-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simp-beaker-helpers
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
version: '3.0'
|
75
75
|
- - "<"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
77
|
+
version: '8.0'
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -84,7 +84,7 @@ dependencies:
|
|
84
84
|
version: '3.0'
|
85
85
|
- - "<"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
87
|
+
version: '8.0'
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
89
|
name: puppet-lint
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
@@ -273,7 +273,6 @@ extra_rdoc_files: []
|
|
273
273
|
files:
|
274
274
|
- ".gitignore"
|
275
275
|
- ".rspec"
|
276
|
-
- ".travis.yml"
|
277
276
|
- CHANGELOG.md
|
278
277
|
- CONTRIBUTING.md
|
279
278
|
- Gemfile
|
@@ -282,6 +281,7 @@ files:
|
|
282
281
|
- Rakefile
|
283
282
|
- bin/simp_rake_helpers
|
284
283
|
- lib/simp/ci/gitlab.rb
|
284
|
+
- lib/simp/command_utils.rb
|
285
285
|
- lib/simp/componentinfo.rb
|
286
286
|
- lib/simp/local_gpg_signing_key.rb
|
287
287
|
- lib/simp/packer/iso_vars_json.rb
|
@@ -316,10 +316,10 @@ files:
|
|
316
316
|
- lib/simp/rake/rubygem.rb
|
317
317
|
- lib/simp/relchecks.rb
|
318
318
|
- lib/simp/rpm.rb
|
319
|
+
- lib/simp/rpm_signer.rb
|
319
320
|
- lib/simp/yum.rb
|
320
321
|
- spec/acceptance/00_pkg_rpm_custom_scriptlets_spec.rb
|
321
322
|
- spec/acceptance/10_pkg_rpm_spec.rb
|
322
|
-
- spec/acceptance/20_pkg_rpm_upgrade_spec.rb
|
323
323
|
- spec/acceptance/30_pkg_misc_spec.rb
|
324
324
|
- spec/acceptance/50_local_gpg_signing_key_spec.rb
|
325
325
|
- spec/acceptance/55_build_pkg_signing_spec.rb
|
@@ -341,66 +341,24 @@ files:
|
|
341
341
|
- spec/acceptance/files/build/project_skeleton/README.md
|
342
342
|
- spec/acceptance/files/build/project_skeleton/Rakefile
|
343
343
|
- spec/acceptance/files/build/project_skeleton/src/assets/simp/build/simp.spec
|
344
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/CHANGELOG
|
345
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/Rakefile
|
346
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/build/rpm_metadata/custom/overrides
|
347
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/build/rpm_metadata/requires
|
348
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/metadata.json
|
349
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/CHANGELOG
|
350
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/Rakefile
|
351
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/build/rpm_metadata/custom/overrides
|
352
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/build/rpm_metadata/requires
|
353
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/metadata.json
|
354
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/CHANGELOG
|
355
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/Rakefile
|
356
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/build/rpm_metadata/requires
|
357
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/metadata.json
|
358
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/CHANGELOG
|
359
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/Rakefile
|
360
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/build/rpm_metadata/requires
|
361
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/metadata.json
|
362
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/CHANGELOG
|
363
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/Rakefile
|
364
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/build/rpm_metadata/custom/overrides
|
365
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/build/rpm_metadata/requires
|
366
|
-
- spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/metadata.json
|
367
|
-
- spec/acceptance/files/mock_packages/pupmod-puppetlabs-stdlib.spec
|
368
|
-
- spec/acceptance/files/mock_packages/pupmod-simp-foo.spec
|
369
|
-
- spec/acceptance/files/mock_packages/pupmod-simp-simplib.spec
|
370
|
-
- spec/acceptance/files/mock_packages/rpmbuild.sh
|
371
|
-
- spec/acceptance/files/mock_packages/simp-adapter.spec
|
372
|
-
- spec/acceptance/files/mock_packages/simp-adapter/etc/simp/adapter_config.yaml
|
373
|
-
- spec/acceptance/files/mock_packages/simp-adapter/usr/local/sbin/simp_rpm_helper
|
374
344
|
- spec/acceptance/files/module/CHANGELOG
|
375
345
|
- spec/acceptance/files/module/Rakefile
|
376
346
|
- spec/acceptance/files/module/metadata.json
|
377
347
|
- spec/acceptance/files/module_with_misordered_entries/CHANGELOG
|
378
348
|
- spec/acceptance/files/module_with_misordered_entries/Rakefile
|
379
349
|
- spec/acceptance/files/module_with_misordered_entries/metadata.json
|
380
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/CHANGELOG
|
381
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/Rakefile
|
382
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/build/rpm_metadata/requires
|
383
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/data/os/CentOS.yaml
|
384
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/data/os/RedHat.yaml
|
385
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/hiera.yaml
|
386
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/manifests/init.pp
|
387
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/metadata.json
|
388
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/CHANGELOG
|
389
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/Rakefile
|
390
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/build/rpm_metadata/requires
|
391
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/data/os/CentOS.yaml
|
392
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/data/os/RedHat.yaml
|
393
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/hiera.yaml
|
394
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/manifests/init.pp
|
395
|
-
- spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/metadata.json
|
396
350
|
- spec/acceptance/files/simplib/CHANGELOG
|
397
351
|
- spec/acceptance/files/simplib/Rakefile
|
398
352
|
- spec/acceptance/files/simplib/build/rpm_metadata/requires
|
399
353
|
- spec/acceptance/files/simplib/metadata.json
|
400
354
|
- spec/acceptance/files/testpackage/CHANGELOG
|
355
|
+
- spec/acceptance/files/testpackage/README
|
401
356
|
- spec/acceptance/files/testpackage/Rakefile
|
402
357
|
- spec/acceptance/files/testpackage/build/rpm_metadata/requires
|
403
358
|
- spec/acceptance/files/testpackage/metadata.json
|
359
|
+
- spec/acceptance/files/testpackage/spec/classes/init_spec.rb
|
360
|
+
- spec/acceptance/files/testpackage/spec/files/mock_something.rb
|
361
|
+
- spec/acceptance/files/testpackage/utils/convert_v1_to_v2.rb
|
404
362
|
- spec/acceptance/files/testpackage_custom_scriptlet/CHANGELOG
|
405
363
|
- spec/acceptance/files/testpackage_custom_scriptlet/Rakefile
|
406
364
|
- spec/acceptance/files/testpackage_custom_scriptlet/build/rpm_metadata/custom/overrides
|
@@ -451,27 +409,21 @@ files:
|
|
451
409
|
- spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/nodesets/centos.yml
|
452
410
|
- spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/nodesets/oel.yml
|
453
411
|
- spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/suites/default/class_spec.rb
|
454
|
-
- spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/suites/default/nodesets
|
455
412
|
- spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/nodesets/default.yml
|
456
413
|
- spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/nodesets/oel.yml
|
457
414
|
- spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/suites/default/class_spec.rb
|
458
|
-
- spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/suites/default/nodesets
|
459
415
|
- spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/nodesets/default.yml
|
460
416
|
- spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/nodesets/oel.yml
|
461
417
|
- spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/suites/default/class_spec.rb
|
462
|
-
- spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/suites/default/nodesets
|
463
418
|
- spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/nodesets/default.yml
|
464
419
|
- spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/nodesets/oel.yml
|
465
420
|
- spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/suites/default/class_spec.rb
|
466
|
-
- spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/suites/default/nodesets
|
467
421
|
- spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/nodesets/default.yml
|
468
422
|
- spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/nodesets/oel.yml
|
469
423
|
- spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/suites/default/class_spec.rb
|
470
|
-
- spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/suites/default/nodesets
|
471
424
|
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/nodesets/default.yml
|
472
425
|
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/nodesets/oel.yml
|
473
426
|
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/default/class_spec.rb
|
474
|
-
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/default/nodesets
|
475
427
|
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/feature-1/feature-1_spec.rb
|
476
428
|
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/feature_2/feature_2_spec.rb
|
477
429
|
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/feature_2/nodesets/default.yml
|
@@ -479,7 +431,6 @@ files:
|
|
479
431
|
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/nodesets/default.yml
|
480
432
|
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/nodesets/oel.yml
|
481
433
|
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/default/class_spec.rb
|
482
|
-
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/default/nodesets
|
483
434
|
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/feature-1/feature-1_spec.rb
|
484
435
|
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/feature_2/feature_2_spec.rb
|
485
436
|
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/feature_2/nodesets/default.yml
|
@@ -488,32 +439,26 @@ files:
|
|
488
439
|
- spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/nodesets/default.yml
|
489
440
|
- spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/nodesets/oel.yml
|
490
441
|
- spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/suites/default/class_spec.rb
|
491
|
-
- spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/suites/default/nodesets
|
492
442
|
- spec/lib/simp/ci/files/no_gitlab_config_without_tests/spec/acceptance/nodesets/default.yml
|
493
443
|
- spec/lib/simp/ci/files/no_gitlab_config_without_tests/spec/acceptance/nodesets/oel.yml
|
494
|
-
- spec/lib/simp/ci/files/no_gitlab_config_without_tests/spec/acceptance/suites/default/nodesets
|
495
444
|
- spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/nodesets/centos.yml
|
496
|
-
- spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/nodesets/default.yml
|
497
445
|
- spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/nodesets/oel.yml
|
498
|
-
- spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/suites/default/nodesets
|
499
446
|
- spec/lib/simp/ci/files/valid_job_global_nodeset/spec/acceptance/nodesets/default.yml
|
500
447
|
- spec/lib/simp/ci/files/valid_job_global_nodeset/spec/acceptance/nodesets/oel.yml
|
501
448
|
- spec/lib/simp/ci/files/valid_job_global_nodeset/spec/acceptance/suites/default/class_spec.rb
|
502
449
|
- spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/nodesets/default.yml
|
503
450
|
- spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/nodesets/oel.yml
|
504
451
|
- spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/suites/default/class_spec.rb
|
505
|
-
- spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/suites/default/nodesets
|
506
452
|
- spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/class_spec.rb
|
507
453
|
- spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/nodesets/centos.yml
|
508
|
-
- spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/nodesets/default.yml
|
509
454
|
- spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/nodesets/oel.yml
|
510
455
|
- spec/lib/simp/ci/files/valid_job_suite_nodeset/spec/acceptance/suites/default/class_spec.rb
|
511
456
|
- spec/lib/simp/ci/files/valid_job_suite_nodeset/spec/acceptance/suites/default/nodesets/default.yml
|
512
457
|
- spec/lib/simp/ci/files/valid_job_suite_nodeset/spec/acceptance/suites/default/nodesets/oel.yml
|
513
458
|
- spec/lib/simp/ci/gitlab_spec.rb
|
459
|
+
- spec/lib/simp/command_utils_spec.rb
|
514
460
|
- spec/lib/simp/componentinfo_changelog_regex_spec.rb
|
515
461
|
- spec/lib/simp/componentinfo_spec.rb
|
516
|
-
- spec/lib/simp/files/build/testpackage.spec
|
517
462
|
- spec/lib/simp/files/componentinfo_spec/asset_missing_release/build/asset_missing_release.spec
|
518
463
|
- spec/lib/simp/files/componentinfo_spec/asset_missing_version/build/asset_missing_version.spec
|
519
464
|
- spec/lib/simp/files/componentinfo_spec/asset_with_dist_in_release/build/asset_with_dist_in_release.spec
|
@@ -616,9 +561,7 @@ files:
|
|
616
561
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/manifests/service.pp
|
617
562
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/metadata.json
|
618
563
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/nodesets/centos-combined-x64.yml
|
619
|
-
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/nodesets/default.yml
|
620
564
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/suites/default/class_spec.rb
|
621
|
-
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/suites/default/nodesets
|
622
565
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/classes/init_spec.rb
|
623
566
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper.rb
|
624
567
|
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
|
@@ -627,6 +570,7 @@ files:
|
|
627
570
|
- spec/lib/simp/relchecks_check_rpm_changelog_spec.rb
|
628
571
|
- spec/lib/simp/relchecks_compare_latest_tag_spec.rb
|
629
572
|
- spec/lib/simp/relchecks_create_tag_changelog_spec.rb
|
573
|
+
- spec/lib/simp/rpm_signer_spec.rb
|
630
574
|
- spec/lib/simp/rpm_spec.rb
|
631
575
|
- spec/spec_helper.rb
|
632
576
|
- spec/spec_helper_acceptance.rb
|
@@ -651,7 +595,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
651
595
|
version: '0'
|
652
596
|
requirements: []
|
653
597
|
rubyforge_project:
|
654
|
-
rubygems_version: 2.7.
|
598
|
+
rubygems_version: 2.7.6.3
|
655
599
|
signing_key:
|
656
600
|
specification_version: 4
|
657
601
|
summary: SIMP rake helpers
|