Set the pin priority before adding the source (Fix #10449)
Fix (#10451) - apt::ppa fails to "apt-get update" when new PPA source is added
include_src parameter in example; Whitespace cleanup

In the apt::source example, include the include_src parameter.  Clean-up
whitespace in the example to be consistent with the style guide.
(#10451) Add test coverage to apt::ppa

This commit adds test coverage for apt::ppa.

This test coverage is suficient to verify the
code changes that resolve the issue with
aptitude update not being called when ppas were
added (#10451).
Merge pull request #9 from bodepd/10451_fix_apt_update_refresh

10451 fix apt update refresh
(#11413) Update dpkg query used by apt::force

This patch fixes the query used by apt::force to
determine rather or not the package is installed.

Previously, the expression was not specific enough and
could not lead to false positives in cases where a package
name is contained within another package name (puppet could be
incorrectly determined as being installed if puppet-common is
installed)

This commit resolves that by improving the query expression.
(#11413) Add spec test for apt::force to verify changes to unless

In the Previous commits, the query being done by the
apt::force install command was not strict enough and
could lead to false positives.

These queries represented by the unless parameter have been
resolved in another commit. This commit accompanies that commit
and adds basic unit tests to correspond to the changes.
Merge pull request #8 from cwarden/source-example-improvement

include_src parameter in example; Whitespace cleanup
Merge pull request #11 from bodepd/11413_apt_force_query_fix

11413 apt force query fix
(#11953) Apt::force passes $version to aptitude

Previously, even if $version were passed to apt::force, aptitude would just
install the default version of the package available. This updates the aptitude
call to use the version string if it exists. If no version is passed, or if it
is false, no version is added to the aptitude call.  This also updates the
rspec-puppet tests for the define, to reflect the changes to the exec.
Merge pull request #12 from haus/11953_fix_apt_force_version

(#11953) Apt::force passes $version to aptitude
Merge pull request #4 from webfactory/pin_before_source

Suggested fix for #10449
(#12094) Replace name with path in file resources

When the name is used with a file resource, it becomes difficult to test the
resource using rspec-puppet, as the name parameter gets aliased to path. So to
maintain consistency between tests and manifests, this replaces all name
parameters in file resources with the equivalent path parameter.
(#12094) Add rspec-puppet tests for apt

This commit adds full coverage for the apt module as it currently exists. It
adds rspec-puppet tests for the defines (apt::builddep, apt::force, apt::pin,
apt::ppa, apt::source) and classes (apt, debian::testing, debian::unstable,
apt::params, apt::release).
(#12094) Remove deprecated spec.opts file

Rspec no longer uses the spec.opts file, and this particular file also uses
options for rspec that are no longer honored or available, like loadby. So this
commit removes the file. Users that want to customize rspec behavior should use
a .rspec file in the repository root or in their home directory.
(#12094) Replace chained .with_* with a hash

The hash passing to the with method is cleaner and closer to puppet code, so
all of the with_$param have been replaced with with($hash). This also
includes two minor whitspace changes to unstable.pp and source.pp.
This also replaces the ternary switch on param_set with a hash merge,
which is cleaner and will support more use cases.
Merge pull request #14 from haus/ticket/12094_add_spec_tests

Ticket/12094 add spec tests
(#12529) Add parameter to support setting a proxy for apt

This commit adds two class parameter to apt that can be used to
specify a proxy to use with apt.

  - proxy_host
  - proxy_port
Merge pull request #15 from bodepd/proxysupport

(#12529) Add parameter to support setting a proxy for apt
(#12529) Add unit test for apt proxy settings

This commit adds unit tests to validate that the
apt proxy is configured as expected when the class
parameter proxy_host is set as a class parameter for
the apt class.