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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/CONTRIBUTING.md +1 -1
  4. data/Gemfile +5 -1
  5. data/README.md +1 -1
  6. data/lib/simp/command_utils.rb +21 -0
  7. data/lib/simp/componentinfo.rb +17 -0
  8. data/lib/simp/local_gpg_signing_key.rb +184 -81
  9. data/lib/simp/rake.rb +3 -10
  10. data/lib/simp/rake/build/build.rb +43 -27
  11. data/lib/simp/rake/build/constants.rb +5 -1
  12. data/lib/simp/rake/build/pkg.rb +167 -51
  13. data/lib/simp/rake/build/tar.rb +1 -1
  14. data/lib/simp/rake/helpers/version.rb +1 -1
  15. data/lib/simp/rake/pkg.rb +5 -1
  16. data/lib/simp/rake/pupmod/helpers.rb +2 -0
  17. data/lib/simp/rake/rubygem.rb +5 -1
  18. data/lib/simp/relchecks.rb +1 -1
  19. data/lib/simp/rpm.rb +13 -125
  20. data/lib/simp/rpm_signer.rb +321 -0
  21. data/spec/acceptance/00_pkg_rpm_custom_scriptlets_spec.rb +18 -19
  22. data/spec/acceptance/10_pkg_rpm_spec.rb +46 -48
  23. data/spec/acceptance/50_local_gpg_signing_key_spec.rb +7 -3
  24. data/spec/acceptance/55_build_pkg_signing_spec.rb +293 -42
  25. data/spec/acceptance/files/testpackage/README +8 -0
  26. data/spec/acceptance/files/testpackage/spec/classes/init_spec.rb +1 -0
  27. data/spec/acceptance/files/testpackage/spec/files/mock_something.rb +3 -0
  28. data/spec/acceptance/files/testpackage/utils/convert_v1_to_v2.rb +3 -0
  29. data/spec/acceptance/nodesets/default.yml +34 -109
  30. data/spec/acceptance/support/build_project_helpers.rb +32 -8
  31. data/spec/lib/simp/ci/gitlab_spec.rb +12 -13
  32. data/spec/lib/simp/command_utils_spec.rb +29 -0
  33. data/spec/lib/simp/componentinfo_spec.rb +10 -4
  34. data/spec/lib/simp/local_gpg_signing_key_spec.rb.beaker-only +115 -18
  35. data/spec/lib/simp/rake/build/helpers_spec.rb +3 -0
  36. data/spec/lib/simp/rake/build/rpmdeps_spec.rb +1 -2
  37. data/spec/lib/simp/rake/pupmod/fixtures/othermod/Gemfile +1 -10
  38. data/spec/lib/simp/rake/pupmod/fixtures/simpmod/README.md +2 -2
  39. data/spec/lib/simp/rake_spec.rb +2 -1
  40. data/spec/lib/simp/relchecks_check_rpm_changelog_spec.rb +20 -10
  41. data/spec/lib/simp/relchecks_compare_latest_tag_spec.rb +18 -18
  42. data/spec/lib/simp/rpm_signer_spec.rb +98 -0
  43. data/spec/lib/simp/rpm_spec.rb +1 -7
  44. data/spec/spec_helper.rb +1 -1
  45. data/spec/spec_helper_acceptance.rb +16 -3
  46. metadata +13 -69
  47. data/.travis.yml +0 -60
  48. data/spec/acceptance/20_pkg_rpm_upgrade_spec.rb +0 -236
  49. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/CHANGELOG +0 -2
  50. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/Rakefile +0 -3
  51. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/build/rpm_metadata/custom/overrides +0 -14
  52. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/build/rpm_metadata/requires +0 -1
  53. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-2.1/metadata.json +0 -33
  54. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/CHANGELOG +0 -2
  55. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/Rakefile +0 -3
  56. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/build/rpm_metadata/custom/overrides +0 -14
  57. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/build/rpm_metadata/requires +0 -1
  58. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-new-package-3.0/metadata.json +0 -33
  59. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/CHANGELOG +0 -2
  60. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/Rakefile +0 -3
  61. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/build/rpm_metadata/requires +0 -1
  62. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-1.0/metadata.json +0 -33
  63. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/CHANGELOG +0 -2
  64. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/Rakefile +0 -3
  65. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/build/rpm_metadata/requires +0 -1
  66. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.0/metadata.json +0 -33
  67. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/CHANGELOG +0 -2
  68. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/Rakefile +0 -3
  69. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/build/rpm_metadata/custom/overrides +0 -14
  70. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/build/rpm_metadata/requires +0 -1
  71. data/spec/acceptance/files/custom_scriptlet_triggers/pupmod-old-package-2.2/metadata.json +0 -33
  72. data/spec/acceptance/files/mock_packages/pupmod-puppetlabs-stdlib.spec +0 -32
  73. data/spec/acceptance/files/mock_packages/pupmod-simp-foo.spec +0 -32
  74. data/spec/acceptance/files/mock_packages/pupmod-simp-simplib.spec +0 -32
  75. data/spec/acceptance/files/mock_packages/rpmbuild.sh +0 -25
  76. data/spec/acceptance/files/mock_packages/simp-adapter.spec +0 -43
  77. data/spec/acceptance/files/mock_packages/simp-adapter/etc/simp/adapter_config.yaml +0 -3
  78. data/spec/acceptance/files/mock_packages/simp-adapter/usr/local/sbin/simp_rpm_helper +0 -495
  79. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/CHANGELOG +0 -2
  80. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/Rakefile +0 -3
  81. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/build/rpm_metadata/requires +0 -2
  82. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/data/os/CentOS.yaml +0 -2
  83. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/data/os/RedHat.yaml +0 -2
  84. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/hiera.yaml +0 -14
  85. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/manifests/init.pp +0 -2
  86. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-1.0/metadata.json +0 -37
  87. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/CHANGELOG +0 -5
  88. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/Rakefile +0 -3
  89. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/build/rpm_metadata/requires +0 -2
  90. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/data/os/CentOS.yaml +0 -2
  91. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/data/os/RedHat.yaml +0 -2
  92. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/hiera.yaml +0 -14
  93. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/manifests/init.pp +0 -3
  94. data/spec/acceptance/files/package_upgrades/pupmod-simp-testpackage-2.0/metadata.json +0 -37
  95. data/spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/suites/default/nodesets +0 -1
  96. data/spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/suites/default/nodesets +0 -1
  97. data/spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/suites/default/nodesets +0 -1
  98. data/spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/suites/default/nodesets +0 -1
  99. data/spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/suites/default/nodesets +0 -1
  100. data/spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/default/nodesets +0 -1
  101. data/spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/default/nodesets +0 -1
  102. data/spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/suites/default/nodesets +0 -1
  103. data/spec/lib/simp/ci/files/no_gitlab_config_without_tests/spec/acceptance/suites/default/nodesets +0 -1
  104. data/spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/nodesets/default.yml +0 -1
  105. data/spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/suites/default/nodesets +0 -1
  106. data/spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/suites/default/nodesets +0 -1
  107. data/spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/nodesets/default.yml +0 -1
  108. data/spec/lib/simp/files/build/testpackage.spec +0 -1
  109. data/spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/nodesets/default.yml +0 -1
  110. data/spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/suites/default/nodesets +0 -1
@@ -1,2 +0,0 @@
1
- * Sat Dec 13 2014 Richard Stallman <rms@gnu.org> - 1.0.0-0
2
- - Behold, there was a brave GNU world....
@@ -1,3 +0,0 @@
1
- require 'simp/rake/pkg'
2
-
3
- Simp::Rake::Pkg.new( File.dirname( __FILE__ ) )
@@ -1,2 +0,0 @@
1
- Requires: pupmod-simp-simplib >= 1.2.3
2
- Requires: pupmod-puppetlabs-stdlib >= 1.2.3
@@ -1,2 +0,0 @@
1
- ---
2
- testpackage::aliases : ['files','nisplus']
@@ -1,2 +0,0 @@
1
- ---
2
- testpackage::aliases : ['files','nisplus']
@@ -1,14 +0,0 @@
1
- ---
2
- version: 4
3
- datadir: data
4
- hierarchy:
5
- - name: "OS name"
6
- backend: yaml
7
- path: "os/%{facts.os.name}"
8
-
9
- - name: "OS family"
10
- backend: yaml
11
- path: "os/%{facts.os.family}"
12
-
13
- - name: "common"
14
- backend: yaml
@@ -1,37 +0,0 @@
1
- {
2
- "name": "simp-testpackage",
3
- "version": "1.0.0",
4
- "author": "simp",
5
- "summary": "A SIMP Test Package for Testing Test Things",
6
- "license": "Apache-2.0",
7
- "source": "https://github.com/simp/pupmod-imatest",
8
- "project_page": "https://github.com/simp/pupmod-imatest",
9
- "issues_url": "https://simp/project.atlassian.net",
10
- "tags": [ "simp", "test"],
11
- "dependencies": [
12
- {
13
- "name": "puppetlabs/stdlib",
14
- "version_requirement": ">= 1.1.0"
15
- },
16
- {
17
- "name": "simp/simplib",
18
- "version_requirement": ">= 1.1.0"
19
- }
20
- ],
21
- "operatingsystem_support": [
22
- {
23
- "operatingsystem": "CentOS",
24
- "operatingsystemrelease": [
25
- "6",
26
- "7"
27
- ]
28
- },
29
- {
30
- "operatingsystem": "RedHat",
31
- "operatingsystemrelease": [
32
- "6",
33
- "7"
34
- ]
35
- }
36
- ]
37
- }
@@ -1,5 +0,0 @@
1
- * Wed Dec 05 2018 Richard Stallman <rms@gnu.org> - 2.0.0-0
2
- - Remove unused data-in-modules files
3
-
4
- * Sat Dec 13 2014 Richard Stallman <rms@gnu.org> - 1.0.0-0
5
- - Behold, there was a brave GNU world....
@@ -1,3 +0,0 @@
1
- require 'simp/rake/pkg'
2
-
3
- Simp::Rake::Pkg.new( File.dirname( __FILE__ ) )
@@ -1,2 +0,0 @@
1
- Requires: pupmod-simp-simplib >= 1.2.3
2
- Requires: pupmod-puppetlabs-stdlib >= 1.2.3
@@ -1,2 +0,0 @@
1
- ---
2
- testpackage::aliases : ['files','nisplus']
@@ -1,2 +0,0 @@
1
- ---
2
- testpackage::aliases : ['files','nisplus']
@@ -1,14 +0,0 @@
1
- ---
2
- version: 4
3
- datadir: data
4
- hierarchy:
5
- - name: "OS name"
6
- backend: yaml
7
- path: "os/%{facts.os.name}"
8
-
9
- - name: "OS family"
10
- backend: yaml
11
- path: "os/%{facts.os.family}"
12
-
13
- - name: "common"
14
- backend: yaml
@@ -1,37 +0,0 @@
1
- {
2
- "name": "simp-testpackage",
3
- "version": "2.0.0",
4
- "author": "simp",
5
- "summary": "A SIMP Test Package for Testing Test Things",
6
- "license": "Apache-2.0",
7
- "source": "https://github.com/simp/pupmod-imatest",
8
- "project_page": "https://github.com/simp/pupmod-imatest",
9
- "issues_url": "https://simp/project.atlassian.net",
10
- "tags": [ "simp", "test"],
11
- "dependencies": [
12
- {
13
- "name": "puppetlabs/stdlib",
14
- "version_requirement": ">= 1.1.0"
15
- },
16
- {
17
- "name": "simp/simplib",
18
- "version_requirement": ">= 1.1.0"
19
- }
20
- ],
21
- "operatingsystem_support": [
22
- {
23
- "operatingsystem": "CentOS",
24
- "operatingsystemrelease": [
25
- "6",
26
- "7"
27
- ]
28
- },
29
- {
30
- "operatingsystem": "RedHat",
31
- "operatingsystemrelease": [
32
- "6",
33
- "7"
34
- ]
35
- }
36
- ]
37
- }
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/job_broken_link_nodeset/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/job_invalid_nodeset/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/job_invalid_suite/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/job_missing_nodeset/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/job_missing_suite_and_nodeset/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/multiple_invalid_jobs/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/multiple_valid_jobs/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/no_gitlab_config_with_tests/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/no_gitlab_config_without_tests/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/nodesets/centos.yml
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/suite_skeleton_only/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/valid_job_nodeset_dir_link/spec/acceptance/suites/default/../../nodesets
@@ -1 +0,0 @@
1
- spec/lib/simp/ci/files/valid_job_nodeset_link/spec/acceptance/suites/default/nodesets/centos.yml
@@ -1 +0,0 @@
1
- spec/lib/simp/files/build/../testpackage.spec
@@ -1 +0,0 @@
1
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/nodesets/centos-combined-x64.yml
@@ -1 +0,0 @@
1
- spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/acceptance/suites/default/../../nodesets