]>
review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/log
David Schmitt [Wed, 27 Sep 2017 13:21:57 +0000 (14:21 +0100)]
Update keyserver tests
David Schmitt [Tue, 26 Sep 2017 16:54:01 +0000 (17:54 +0100)]
Use fixed beaker-testmode_switcher gem from git master
David Schmitt [Tue, 26 Sep 2017 16:52:20 +0000 (17:52 +0100)]
More short ID usage to work on older Debian versions
David Schmitt [Tue, 26 Sep 2017 16:51:10 +0000 (17:51 +0100)]
Merge pull request #2 from james-stocks/wip
Use short id (8 chars) when deleting an apt-key
James Stocks [Tue, 26 Sep 2017 16:21:08 +0000 (16:21 +0000)]
Use short id (8 chars) when deleting an apt-key
See https://bugs.launchpad.net/ubuntu/+source/apt/+bug/
1481871 for why the full 40 characters cannot be used on some systems.
David Schmitt [Mon, 25 Sep 2017 14:34:23 +0000 (15:34 +0100)]
Merge pull request #1 from james-stocks/wip
Use UTC for apt_key2 created and expiry
james-stocks [Mon, 25 Sep 2017 13:57:07 +0000 (13:57 +0000)]
Use UTC for apt_key2 created and expiry
David Schmitt [Mon, 25 Sep 2017 09:53:15 +0000 (10:53 +0100)]
Undo nested context experiment
David Schmitt [Mon, 25 Sep 2017 09:51:53 +0000 (10:51 +0100)]
More acceptance test suite cleanups
David Schmitt [Mon, 25 Sep 2017 09:19:43 +0000 (10:19 +0100)]
Copy subkey fix from original provider
David Schmitt [Mon, 25 Sep 2017 09:17:31 +0000 (10:17 +0100)]
Fix more glitchy tests
David Schmitt [Mon, 25 Sep 2017 09:17:11 +0000 (10:17 +0100)]
Undo the id/name duplication; fixed in Resource API
David Schmitt [Mon, 25 Sep 2017 09:16:47 +0000 (10:16 +0100)]
Handle multiple gpg keys in the content attribute
David Schmitt [Mon, 25 Sep 2017 09:16:17 +0000 (10:16 +0100)]
Pull line.strip into key_list_lines
David Schmitt [Sat, 23 Sep 2017 18:07:03 +0000 (19:07 +0100)]
Refine key validation vs content; port more tests to testmode switcher
David Schmitt [Fri, 22 Sep 2017 19:38:52 +0000 (20:38 +0100)]
Snapshot
* Start converting acceptance tests to beaker-testmode_switcher
* Rename :id to :name attribute to match behaviour expected by puppet
* Update create() method to work in the common cases
* Update temp_key_file to be nicer, removed previous command usage
* Fix doc strings
* start using fedora gpg key for testing, to avoid collisions with existing keys on SUT
* start using puppetlabs_spec_helper fixtures to remove the key CLOBs from the test source
* start `puppet resource` testing
* apply rubocop autofixes
David Schmitt [Thu, 21 Sep 2017 10:44:29 +0000 (11:44 +0100)]
Remove Debian 6 special casing from test suite, as it is not supported anymore
David Schmitt [Thu, 21 Sep 2017 10:24:55 +0000 (11:24 +0100)]
Add basic create/delete handling
This still requires more work to match up to the original implementation,
but suffices for basic acceptance testing.
David Schmitt [Thu, 21 Sep 2017 10:05:16 +0000 (11:05 +0100)]
Change get to not use the Commands API for now
David Schmitt [Tue, 12 Sep 2017 14:12:12 +0000 (15:12 +0100)]
Apply rubocop fixes
David Schmitt [Tue, 12 Sep 2017 13:58:35 +0000 (14:58 +0100)]
Enable tracing on the smoke test to see failure locations
David Schmitt [Tue, 12 Sep 2017 13:56:35 +0000 (14:56 +0100)]
Change Gemfile to use public repo
David Schmitt [Tue, 12 Sep 2017 13:45:42 +0000 (14:45 +0100)]
Cleanup mock setup
David Schmitt [Tue, 12 Sep 2017 13:43:11 +0000 (14:43 +0100)]
Cleanup
David Schmitt [Tue, 12 Sep 2017 13:42:42 +0000 (14:42 +0100)]
Finish `get` method unit testing
David Schmitt [Tue, 12 Sep 2017 13:37:06 +0000 (14:37 +0100)]
Update to puppet-resource_api's rubocop config
David Schmitt [Mon, 11 Sep 2017 17:47:17 +0000 (18:47 +0100)]
Start setting up new-style unit tests; convert get() to new API
David Schmitt [Mon, 11 Sep 2017 17:46:38 +0000 (18:46 +0100)]
Hack acceptance tests to actually run
This is using a local build of the puppet-resource_api gem.
Modify as needed to get it to run in your local environment.
David Schmitt [Mon, 11 Sep 2017 16:50:33 +0000 (17:50 +0100)]
Enable local testing coverage recording
David Schmitt [Mon, 11 Sep 2017 15:14:40 +0000 (16:14 +0100)]
Update to use the puppet-resource_api gem
David Schmitt [Thu, 27 Jul 2017 17:55:03 +0000 (18:55 +0100)]
More logging functions
David Schmitt [Wed, 26 Jul 2017 15:36:56 +0000 (16:36 +0100)]
Run default pdk rubocop rules, update :kind to :behaviour
David Schmitt [Wed, 26 Jul 2017 15:30:15 +0000 (16:30 +0100)]
Fix type mismatch
David Schmitt [Wed, 26 Jul 2017 14:39:07 +0000 (15:39 +0100)]
Logger; fix a few things so that set() works
David Schmitt [Tue, 25 Jul 2017 15:00:30 +0000 (16:00 +0100)]
make the apt_key2 type work read-only
David Schmitt [Tue, 25 Jul 2017 15:00:04 +0000 (16:00 +0100)]
(maint) cut down travis matrix for quicker turnaround
David Schmitt [Wed, 21 Jun 2017 17:18:22 +0000 (18:18 +0100)]
snapshot
David Schmitt [Wed, 12 Apr 2017 15:23:04 +0000 (16:23 +0100)]
Start building out the next phase resource API shim
Helen [Fri, 25 Aug 2017 14:25:05 +0000 (15:25 +0100)]
Merge pull request #665 from tigercomputing/master
Ignore subkeys in apt-key's output
Helen [Mon, 21 Aug 2017 09:50:13 +0000 (10:50 +0100)]
Merge pull request #695 from pmcmaw/remove_debian6
(FM-6273) - Removing Debian 6
Paula McMaw [Mon, 21 Aug 2017 08:22:22 +0000 (09:22 +0100)]
(FM-6273) - Removing Debian 6
This is not supported any longer according to the following
documentation: https://docs.puppet.com/pe/latest/sys_req_os.html
TP Honey [Thu, 17 Aug 2017 13:11:21 +0000 (14:11 +0100)]
Merge pull request #694 from pmcmaw/rm_ubuntu
(MODULES-5501) - Remove unsupported Ubuntu
Paula McMaw [Thu, 17 Aug 2017 12:49:58 +0000 (13:49 +0100)]
(MODULES-5501) - Remove unsupported Ubuntu
Removing older version of Ubuntu that are not supported by the module.
TP Honey [Fri, 4 Aug 2017 13:07:07 +0000 (14:07 +0100)]
Merge pull request #690 from tpdownes/master
Allow user to modify loglevel of apt-get update Exec resource
TP Honey [Thu, 3 Aug 2017 10:06:28 +0000 (11:06 +0100)]
Merge pull request #693 from mauricemeyer/master
Fixed typo in "Configuring Apt from hiera example"
Maurice Meyer [Wed, 2 Aug 2017 13:25:41 +0000 (15:25 +0200)]
Fixed typo
Tom Downes [Tue, 1 Aug 2017 13:01:12 +0000 (08:01 -0500)]
Allow user to modify loglevel of apt-get update Exec resource so that its
execution goes unlogged
Hunter Haugen [Thu, 27 Jul 2017 23:09:34 +0000 (16:09 -0700)]
Merge pull request #692 from puppetlabs/maint-modsync-
915cde70e20
(maint) modulesync
915cde70e20
Glenn Sarti [Thu, 27 Jul 2017 21:53:16 +0000 (14:53 -0700)]
(maint) modulesync
915cde70e20
TP Honey [Tue, 11 Jul 2017 10:19:15 +0000 (11:19 +0100)]
Merge pull request #640 from ocadotechnology/dpkg_admin_lock
(MODULES-4118) Set dpkg option NoLocking in apt_updates fact
TP Honey [Tue, 11 Jul 2017 10:13:28 +0000 (11:13 +0100)]
Merge pull request #688 from puppetlabs/msync_modules5187
(MODULES-5187) mysnc puppet 5 and ruby 2.4
TP Honey [Tue, 11 Jul 2017 10:13:00 +0000 (11:13 +0100)]
Merge pull request #686 from hunner/bump_metadata
(MODULES-5144) Prep for puppet 5
Eric Putnam [Fri, 7 Jul 2017 18:26:18 +0000 (11:26 -0700)]
(maint) update sync.yml to not manage NOTICE
Eric Putnam [Thu, 6 Jul 2017 21:40:41 +0000 (14:40 -0700)]
(MODULES-5187) mysnc puppet 5 and ruby 2.4
Okumura Takahiro [Wed, 5 Jul 2017 08:42:20 +0000 (17:42 +0900)]
Fix broken markdown of CHANGELOG.md (#687)
* Fix broken markdown of CHANGELOG.md
Hunter Haugen [Mon, 26 Jun 2017 20:57:17 +0000 (13:57 -0700)]
(MODULES-5144) Prep for puppet 5
TP Honey [Mon, 5 Jun 2017 09:38:59 +0000 (10:38 +0100)]
Merge pull request #684 from puppetlabs/release
Release 4.1.0 Mergeback
Hunter Haugen [Thu, 1 Jun 2017 17:37:20 +0000 (10:37 -0700)]
Merge pull request #679 from arioch/fix_typo
Hunter Haugen [Thu, 1 Jun 2017 17:36:29 +0000 (10:36 -0700)]
Merge pull request #682 from eputnam/fail_message
this failure is related to os.name, not os.release.full
Paula McMaw [Thu, 1 Jun 2017 13:21:18 +0000 (14:21 +0100)]
Merge pull request #683 from HelenCampbell/rpreppy
4.1.0 Release Prep
Helen Campbell [Thu, 1 Jun 2017 11:03:15 +0000 (12:03 +0100)]
4.1.0 Release Prep
Hunter Haugen [Wed, 31 May 2017 22:30:40 +0000 (15:30 -0700)]
Merge pull request #677 from syseleven/fix-4913
https://tickets.puppetlabs.com/browse/MODULES-4913
Prior to this commit, apt_key always sent auth basic header when source
came from http(s). This might fail for some webservers (e.g. Amazon S3)
when empty auth basic is sent.
Now apt_key only sends the auth basic header when userinfo can
be parsed from the URL.
Please backport this to 2.4.x, since this is the release before incompatibility changes are made.
Eric Putnam [Tue, 30 May 2017 15:13:13 +0000 (08:13 -0700)]
Merge pull request #681 from HelenCampbell/emptystringing
Ensure release allows empty strings
Tom Duckering [Tue, 31 Jan 2017 17:59:40 +0000 (17:59 +0000)]
Test to ensure empty string allowed for $release in apt::source
Test added to make sure when release is set to an empty string the
source file is rendered correctly.
Eric Putnam [Fri, 26 May 2017 16:51:10 +0000 (09:51 -0700)]
(maint) fix incorrect error message
this failure is related to os.name, not os.release.full
Hunter Haugen [Thu, 25 May 2017 23:07:59 +0000 (16:07 -0700)]
Merge pull request #680 from eputnam/remove_dim
this module is not able to find a value for `$keyserver` when it is
included in postgresql, as stated in the ticket. this changes the module
back to using the params.pp model. we can revisit data in modules once
LTS moves up from 4.7.0. for now, we need the compatibility.
Eric Putnam [Wed, 24 May 2017 17:34:25 +0000 (10:34 -0700)]
(MODULES-4973) rip out data in modules
this module is not able to find a value for `$keyserver` when it is
included in postgresql, as stated in the ticket. this changes the module
back to using the params.pp model. we can revisit data in modules once
LTS moves up from 4.7.0. for now, we need the compatibility.
Tom De Vylder [Thu, 18 May 2017 14:06:12 +0000 (16:06 +0200)]
Fix typo in hiera example
Helen [Wed, 17 May 2017 14:37:47 +0000 (15:37 +0100)]
Merge pull request #678 from DavidS/revert-attribution-removal
Revert removal of Evolving Web's attribution in NOTICE file
David Schmitt [Wed, 17 May 2017 14:02:22 +0000 (15:02 +0100)]
Revert removal of Evolving Web's attribution in NOTICE file
This reverts commit part of
26608d1ae2d2a3668a49357cd00dad97ce01d7cf .
Stefan Andres [Mon, 15 May 2017 08:21:50 +0000 (10:21 +0200)]
(#4913) apt_key now does not always send auth basic
Prior to this commit, apt_key always sent auth basic header when source
came from http(s). This might fail for some webservers (e.g. Amazon S3)
when empty auth basic is sent.
Now apt_key only sends the auth basic header when userinfo can
be parsed from the URL.
Erick Banks [Fri, 28 Apr 2017 18:11:27 +0000 (11:11 -0700)]
Merge pull request #676 from puppetlabs/release
4.0.0 Mergeback
Hunter Haugen [Wed, 26 Apr 2017 18:34:24 +0000 (11:34 -0700)]
Merge branch 'master' into release
Hunter Haugen [Wed, 26 Apr 2017 18:30:11 +0000 (11:30 -0700)]
Merge pull request #672 from domcleal/architecture-fact
Fix architecture fact overriding unset `architecture` source option
Helen [Tue, 25 Apr 2017 15:56:26 +0000 (16:56 +0100)]
Merge pull request #674 from hunner/fix_specs
(maint) Fix for different versions
Hunter Haugen [Mon, 24 Apr 2017 19:02:04 +0000 (12:02 -0700)]
(maint) Fix for different versions
Eric Putnam [Mon, 24 Apr 2017 18:29:50 +0000 (11:29 -0700)]
Merge pull request #673 from hunner/secondRelease
Rebase of #668
Hunter Haugen [Mon, 24 Apr 2017 18:05:11 +0000 (11:05 -0700)]
(maint) bump version to 4.0.0
Hunter Haugen [Mon, 24 Apr 2017 17:20:20 +0000 (10:20 -0700)]
(maint) Unit test fixes
Helen Campbell [Tue, 4 Apr 2017 10:57:35 +0000 (11:57 +0100)]
Removal of deprecated functionality
Helen Campbell [Tue, 4 Apr 2017 09:12:18 +0000 (10:12 +0100)]
Removal of compat types and validate_legacy calls
Dominic Cleal [Mon, 24 Apr 2017 07:30:15 +0000 (08:30 +0100)]
Fix architecture fact overriding unset `architecture` source option
When the `architecture` parameter to apt::source wasn't set, the
`architecture` fact would be used instead, causing the source to always
be limited by the architecture of the host.
The EPP variable has been renamed to avoid clashing with the fact name.
Hunter Haugen [Fri, 21 Apr 2017 17:03:54 +0000 (10:03 -0700)]
Merge pull request #671 from puppetlabs/release
Release Mergeback
Hunter Haugen [Mon, 17 Apr 2017 16:52:42 +0000 (09:52 -0700)]
(maint) Clear facter before to avoid parallel pollution
Hunter Haugen [Wed, 12 Apr 2017 18:19:32 +0000 (11:19 -0700)]
(maint) Stub fact exists call with argument passed
I can't replicate what's going on, but I wonder if the stub is being
bypassed and the actual underlying debian filesystem is being hit. The
timestamps returned by the unit test are from just before the unit test
ran.
Hunter Haugen [Wed, 12 Apr 2017 03:38:37 +0000 (20:38 -0700)]
(maint) Move stubs for apt update fact
I can't reproduce this, so just a guess.
Hunter Haugen [Wed, 12 Apr 2017 02:17:05 +0000 (19:17 -0700)]
(maint) Two missed failures due to parallel specs
Eric Putnam [Wed, 12 Apr 2017 01:01:10 +0000 (18:01 -0700)]
Merge pull request #670 from hunner/fix_specs
(PUP-6856) Always define facts
Hunter Haugen [Wed, 12 Apr 2017 00:18:25 +0000 (17:18 -0700)]
(PUP-6856) Always define facts
If facts are not defined for hiera lookups, the lookup will fail instead
of falling back to common on puppet < 4.9.0
Hunter Haugen [Tue, 11 Apr 2017 22:50:45 +0000 (15:50 -0700)]
Merge pull request #667 from HelenCampbell/firstRelease
First Release prep for Puppet 4 language update
Helen Campbell [Tue, 20 Dec 2016 11:34:00 +0000 (11:34 +0000)]
Puppet 4 language update
Hailee Kenney [Fri, 7 Apr 2017 14:19:33 +0000 (15:19 +0100)]
Merge pull request #669 from puppetlabs/release
Release Mergeback
Paula McMaw [Thu, 6 Apr 2017 14:39:54 +0000 (15:39 +0100)]
Merge pull request #666 from HelenCampbell/release
2.4.0 Release Prep
Helen Campbell [Thu, 6 Apr 2017 11:13:14 +0000 (12:13 +0100)]
2.4.0 Release Prep
tiger-jmw [Wed, 5 Apr 2017 12:04:54 +0000 (13:04 +0100)]
Ignore subkeys in apt-key's output
The output of `apt-key adv --list-keys --with-colons --fingerprint --fixed-list-mode` is always a `pub` line followed by one of more `fpr` lines (for subkeys, if any). This can cause the wrong pairs of `pub` and `fpr` lines to be hashed, resulting in nonsense.
The ordering `pub`, `fpr`, `pub`, `fpr` is guaranteed by `apt-key`.
Therefore, this commit clears `fpr_line` when a `pub` line is encountered, to reset the grouping. The current code ignores subkeys anyway, so this is no more bad.
Helen [Tue, 4 Apr 2017 09:43:02 +0000 (10:43 +0100)]
Merge pull request #662 from puppetlabs/modules-4506
[msync] 786266 Implement puppet-module-gems, a45803 Remove metadata.json from locales config
Wilson McCoubrey [Wed, 29 Mar 2017 14:53:54 +0000 (15:53 +0100)]
[maint] Fix puppet-lint warnings introduced with 2.2.0 puppet-lint release
Wilson McCoubrey [Wed, 29 Mar 2017 10:46:41 +0000 (11:46 +0100)]
[msync] 786266 Implement puppet-module-gems, a45803 Remove metadata.json from locales config
Helen [Fri, 24 Mar 2017 11:34:41 +0000 (11:34 +0000)]
Merge pull request #660 from puppetlabs/modules-4528
[MODULES-4528] Replace Puppet.version.to_f version comparison from spec_helper.rb
Wilson McCoubrey [Wed, 22 Mar 2017 15:06:27 +0000 (15:06 +0000)]
[MODULES-4528] Replace Puppet.version.to_f version comparison from spec_helper.rb