Ashley Penney
1ce7dbb4c3
Merge pull request #208 from apenney/ppa-debian
...
Ensure apt::ppa fails on non-Ubuntu.
2014-01-09 15:28:20 -08:00
Ashley Penney
04ca249ee0
Fixes to make the tests run under Debian as well as Ubuntu.
2014-01-09 18:26:32 -05:00
Ashley Penney
558954bedf
Ensure apt::ppa fails on non-Ubuntu.
2014-01-09 14:35:17 -05:00
Ashley Penney
c2f0ed219e
Improve apt::force tests and ensure cleanup happens consistently.
2014-01-09 14:26:59 -05:00
Ashley Penney
16e57d4e45
Add additional acceptance testing.
...
This work adds a test for every parameter in every class/define in apt.
2014-01-09 12:09:22 -05:00
Ashley Penney
661c6731d7
Convert existing tests over to beakr-rspec.
2014-01-06 17:39:48 -05:00
Ryan Tandy
38c0208673
change include_class to contain_class in specs
...
include_class was deprecated starting from rspec-puppet 1.0.0.
2013-12-06 08:33:05 -08:00
Ashley Penney
9d32257f85
Merge pull request #188 from sd63/fix_regex_warning
...
escape more braces properly
2013-12-03 14:54:25 -08:00
Marco Nenciarini
935d3ce15b
Fix the name of sources.list.d file resource in apt::ppa
2013-12-02 13:40:22 +01:00
Ryan Tandy
0001a03cd9
escape more braces properly
...
Fixes a couple of rspec regex warnings.
2013-11-21 09:37:11 -08:00
Stefan van Wouw
67e8968fe0
Fixed tests for fe594950c5
...
We actually expect an extra space. The previous build failed because a test is issued for location='', which indeed results in 2 spaces between the architecture specification and the release. According to the sources.list man page a location is always required though (unlike the missing/empty location in the :default_params of the source_spec test).
2013-10-23 12:29:47 +02:00
Ashley Penney
d1e87d4774
Merge pull request #140 from hunner/apt_force
...
Handling of release parameter and apt provider in force manifest
2013-10-15 10:45:17 -07:00
lkoranda
7dd4a14848
Fixed tests for cf04f76
2013-10-14 14:27:17 +02:00
Ashley Penney
39cbeeb9d2
This work flips from onlyif to unless (mistakenly looked at the
...
wrong return code).
2013-10-08 10:50:30 -07:00
Ashley Penney
ee24679f6d
Fix other tests to include apt appropriately.
2013-10-02 14:46:00 -04:00
Ashley Penney
2f9c16a273
This switches us to doing a test -s
instead of checking for the
...
files existence as add-apt-repository --remove leaves a 0 byte file
behind instead of deleting everything properly.
2013-10-02 14:46:00 -04:00
Ashley Penney
621111ee73
Add initial rspec-system tests.
...
This covers:
apt::builddep
apt::key
apt::ppa
apt::source
apt
2013-10-02 12:49:22 -04:00
Dan Carley
e0926f370d
[ #153 ] Remove trailing whitespace from spec.
2013-09-16 13:57:44 +01:00
Dan Carley
dc88fe6ef6
[ #153 ] Install unattended configs after package
...
To ensure that the default configs from the package are always overwritten
within a single Puppet run.
2013-09-16 13:57:44 +01:00
Dan Carley
f90805dafd
[ #153 ] Test defaults for some unattended params
...
For params which have any logic embedded in the template:
- origins
- blacklist
- mail_to
- dl_limit
2013-09-16 13:57:44 +01:00
Dan Carley
f185a57cd6
[ #153 ] Variablise file paths in unattended spec
...
Reduce some duplication of long file paths.
2013-09-16 13:57:32 +01:00
Dan Carley
ea40999381
[ #153 ] Convert t/f params to bools and validate
...
Per lint check: http://puppet-lint.com/checks/quoted_booleans/
2013-09-16 09:06:15 +01:00
Dan Carley
2fea399a09
[ #153 ] Rename unattended_upgrades s/-/_/
...
It's preferable to use underscores rather than hyphens in class names. Refs:
- http://projects.puppetlabs.com/issues/5268
- http://docs.puppetlabs.com/puppet/3/reference/lang_reserved.html#classes-and-types
2013-09-16 08:53:01 +01:00
Philip Cohoe
ee047f6593
Added spec test for unattended-upgrades class
2013-09-13 23:39:09 +00:00
Hunter Haugen
5db24d8e33
Update specs for #145
2013-08-05 13:41:25 -07:00
Hunter Haugen
6cde028332
Merge pull request #145 from PierreGambarotto/master
...
ppa: fix empty environment definition in exec ressource when no proxy
2013-07-31 09:32:27 -07:00
Oleiade
1e940d19f6
Fix: ppa options support specs
2013-07-17 09:56:24 +02:00
Pierre Gambarotto
19fbdab794
ppa: fix empty environment definition in exec ressource when no proxy
2013-07-16 09:52:06 +02:00
Hunter Haugen
4d8a99aead
Adding specs for proxy and apt::ppa
2013-07-11 15:49:00 -07:00
Hunter Haugen
711420739d
Update specs to test all parameter cases
2013-07-03 13:11:18 -07:00
Hunter Haugen
9568ecf26d
Merge pull request #134 from spali/my_changes
...
replace aptitude with apt in apt::force
2013-07-02 13:54:12 -07:00
Thomas Spalinger
7c66ab5f39
fixed test for changing aptitude to apt-get
2013-07-02 21:59:26 +02:00
Hunter Haugen
46d47f79d2
Merge pull request #118 from opeckojo/apt-sources-arch
...
Add optional architecture qualifier to apt-sources
2013-07-02 11:48:06 -07:00
Hunter Haugen
91d917495e
Merge pull request #123 from ctrlaltdel/fix-required-packages
...
Install required_packages before 'apt-get update'
2013-07-02 11:37:39 -07:00
Mathieu Bornoz
414c57926c
apt::pin: handling all apt preferences properties
...
The two forms of APT preferences records (general & specific) can now be
completely and not partially defined. All distribution properties can be passed
as resource parameters. This change is totally backward-compatible.
2013-06-18 11:31:38 +02:00
Francois Deppierraz
37a0dcd0b6
Install required_packages before 'apt-get update'
...
This is necessary when required_packages contains GPG keys that are used for
authenticating other packages. Tested with package ubuntu-cloud-keyring which
is included in Ubuntu main and used by the Ubuntu Cloud Archive.
I think the same problem applies to other *-keyring packages as well.
2013-06-03 09:57:58 +00:00
Joe O'Pecko
b3d67c8937
Add optional architecture qualifier to apt-sources
2013-06-02 11:55:36 -07:00
Dean Reilly
d8e2cf24a5
Add spec test for removing proxy configuration.
2013-06-02 18:51:27 +01:00
Ken Barber
a7e6048103
Remove deprecation warnings for pin.pref.erb as well
...
Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-02 18:24:33 +01:00
Jarl Nicolson
ac86fab459
Changed PPA manifest and tests for new package which started in Quantal
2012-11-05 19:33:38 +10:00
Erik Dalén
75092fdbf1
( #16076 ) Ability to fill in pin explanation
...
Adds the ability to fill it in and sets a reasonable default.
2012-10-25 15:44:20 -04:00
Branan Purvine-Riley
bd68302783
Merge pull request #83 from dalen/pin_order
...
(#16070 ) Allow optional order parameter to apt::pin
2012-10-18 16:45:15 -07:00
Erik Dalén
40f8755217
( #16070 ) Allow optional order parameter to apt::pin
...
As the apt pinnings are parsed in ascending alphabetical order with
first match wins within a given scope it is useful to be able to specify
a ordering parameter. Then the name parameter can be kept to something
meaningful.
2012-08-23 11:25:17 +02:00
Steffen Zieger
d49dbb49ae
fix check of release parameter
2012-07-10 01:39:53 +02:00
Jonathan Araña Cruz
145a2853d4
Add «main» to Ubuntu backports repos.
2012-06-29 13:15:13 +02:00
Branan Purvine-Riley
918a3767ff
Switch to the new puppetlabs_spec_helper gem
2012-05-31 15:32:03 -07:00
Branan Purvine-Riley
7450a5ffc0
Fix the spec test for apt::source
...
the $location paramater is meant to be a deb location, so it should be
formatted as a URI.
2012-05-25 15:32:49 -07:00
Branan Purvine-Riley
ebd05e5c51
Fix spec tests
2012-05-25 11:23:54 -07:00
Branan Purvine-Riley
a4e1ee7508
fallback to the puppet modulepath if a module is missing from fixtures
2012-05-22 13:27:28 -07:00
Branan Purvine-Riley
fbe44e8b27
Remove recursive symlink from fixtures
2012-05-22 13:27:20 -07:00