Hunter Haugen
21feb4b1f1
Merge pull request #488 from cyberious/master
...
(maint) Fix test to not assume is_pe fact on > 4.0.0 puppet
2015-07-20 16:28:57 -07:00
Travis Fields
78e8c73671
(maint) Fix test to not assume is_pe fact on > 4.0.0 puppet
2015-07-20 15:51:39 -07:00
David Schmitt
1282649b91
Merge pull request #481 from tphoney/release_4.7.0
...
prep work for 4.7.0
2015-07-15 14:12:46 +01:00
tphoney
14709d625b
prep work for 4.7.0
...
add new improvements
puppet4 changes for testing
2015-07-15 14:06:34 +01:00
David Schmitt
a022441289
Merge pull request #485 from ghoneycutt/patch-2
...
Clarify that third argument to ensure_resource() is a hash
2015-07-14 09:47:22 +01:00
Garrett Honeycutt
f485e6e2eb
Clarify that third argument to ensure_resource() is a hash
2015-07-12 20:11:36 -04:00
TP Honey
01fe9dc15c
Merge pull request #484 from mhaskel/use_puppet_install_helper
...
Use puppet_install_helper
2015-07-10 17:17:09 +01:00
Morgan Haskel
224b644003
Use puppet_install_helper
2015-07-09 17:11:10 -07:00
TP Honey
a2026bf13b
Merge pull request #475 from DavidS/document-puppet4-compat
...
Document puppet 4 compatability in 4.6
2015-07-09 18:30:26 +01:00
Morgan Haskel
07c38e518a
Merge pull request #482 from DavidS/document_validate_slength_3rd_arg
...
Add validate_slength's optional 3rd arg to README
2015-07-09 10:20:37 -07:00
Hunter Haugen
b2aed66226
Merge pull request #479 from mklette/master
...
catch and rescue from looking up non-existent facts
2015-07-09 10:20:01 -07:00
Alexander Fisher
c64ecfb0c3
Add validate_slength's optional 3rd arg to README
2015-07-09 18:13:19 +01:00
Mathias Klette
e96a818782
catch and rescue from looking up non-existent facts when looking for 'kind'
...
facter (2.x) only provides facts without interface suffix for
* ipaddress
* netmask
'macaddress' and 'network' facts will always have the related interface
name appended. in turns lookupvar throws errors when strict_variables is
enabled.
2015-06-24 15:02:02 +02:00
David Schmitt
f820bb1560
Merge pull request #478 from drewfisher314/ticket/2134-add-solaris-12
...
Add support for Solaris 12
2015-06-22 10:27:10 +01:00
Drew Fisher
a6dcb23f89
Add support for Solaris 12
2015-06-19 17:14:21 -06:00
Travis Fields
67bc57bcb6
Merge pull request #477 from mhaskel/aio_fix
...
AIO uses puppet 4 so should return true for is_future_parser_enabled
2015-06-19 14:48:16 -07:00
Morgan Haskel
5381dbd4b4
AIO uses puppet 4 so should return true for is_future_parser_enabled
2015-06-19 14:29:42 -07:00
JT (Jonny)
ff81517e1c
Merge pull request #474 from DavidS/fix-getvar-specs
...
(maint) getvar: update spec to match implementation
2015-06-19 11:13:05 +01:00
David Schmitt
771320a830
Document puppet 4 compatability in 4.6
2015-06-18 14:51:35 +01:00
David Schmitt
c9e093f8d3
(maint) getvar: update spec to match implementation
2015-06-12 14:42:09 +01:00
David Schmitt
8267dbc149
Merge pull request #470 from Yelp/getvar_future_parser
...
Also catch :undefined_variable as thrown by future parser
2015-06-11 18:23:29 +01:00
David Schmitt
0191a3fb77
Merge pull request #472 from justinstoller/maint/master/set_puppet_version
...
(maint) update PUPPET_VERSION default to be 3.8.1
2015-06-09 15:49:14 +01:00
Justin Stoller
a41cfbd043
(maint) update PUPPET_VERSION default to be 3.8.1
2015-06-08 21:43:36 -07:00
TP Honey
237c4b5149
Merge pull request #471 from puppetlabs/travisci_update
...
Updated travisci file to remove allow_failures on Puppet4
2015-06-05 13:35:00 +01:00
Tomas Doran
212c498df3
Also catch :undefined_variable as thrown by future parser
2015-06-05 12:43:01 +01:00
Morgan Haskel
c69b75f88b
Merge pull request #469 from hunner/fix_time
...
Fix time() on 1.8.7
2015-06-04 10:51:41 -07:00
Hunter Haugen
ad4ca4cc34
Fix time() on 1.8.7
...
The time() function takes an argument of a timezone, and always returns
time in epoch format. The epoch format is the number of seconds that
have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap
seconds. This means that it is universally the same regardless of
timezones.
I don't know what the timezone argument is supposed to do, and it is not
documented. So lets just make 1.8.7 work like > 1.8.7
2015-06-04 09:40:52 -07:00
Jonathan Tripathy
650216e533
Updated travisci file to remove allow_failures on Puppet4
2015-06-04 14:21:00 +01:00
David Schmitt
0dd4f69424
Merge pull request #468 from kylog/camels-all-the-way-down
...
Fix spelling of camelcase
2015-06-03 18:22:51 +01:00
David Schmitt
09b427b426
Merge pull request #466 from elyscape/fix/improve_fqdn_acceptance_tests
...
Improve fqdn_rotate/fqdn_rand_string acceptance tests
2015-06-03 18:19:38 +01:00
Kylo Ginsberg
84f49d3a1c
(doc) Fix spelling of camelcase in CHANGELOG.md
2015-06-02 15:33:37 -07:00
Eli Young
98c2f283b0
fqdn_rand_string: Add acceptance tests for custom charsets
2015-06-02 12:02:30 -07:00
Eli Young
84279e90ab
fqdn_rotate: Add acceptance tests for custom seeds
2015-06-02 12:02:30 -07:00
TP Honey
f5f72f4b5a
Merge pull request #467 from DavidS/document-rspec-puppet-version-reqs
...
Gemfile: specify minimum rspec-puppet version
2015-06-02 12:23:39 +01:00
David Schmitt
1d6da9674e
Gemfile: specify minimum rspec-puppet version
...
Only 2.2 contains all the features we're currently using. Documenting
that in the Gemfile should make that clear.
2015-06-02 12:21:25 +01:00
David Schmitt
07e8b39615
Merge pull request #462 from elyscape/fix/fqdn_rotate_seeds_with_argument
...
fqdn_rotate: Don't use the value itself as part of the random seed
2015-06-02 12:05:19 +01:00
Eli Young
b436216fe6
fqdn_rotate: Add tests for custom seeds
2015-06-01 17:03:42 -07:00
Eli Young
d7c8460353
fqdn_rotate: Improve documentation
2015-06-01 16:19:07 -07:00
Eli Young
601f681787
fqdn_rotate: Don't use the value itself as part of the random seed
...
Previously, the random number generator was seeded with the array or
string to be rotated in addition to any values specifically provided for
seeding. This behavior is potentially insecure in that it allows an
attacker who can modify the source data to choose the post-shuffle
order.
2015-06-01 16:19:07 -07:00
Hunter Haugen
a383705fdb
Merge pull request #464 from DavidS/modules-1882-convert-to-rspec
...
(MODULES-1882) convert function tests to rspec-puppet
2015-06-01 13:36:25 -07:00
David Schmitt
18d4c21418
Remove unused puppet_spec code
...
This is copied and changed code from an older version of puppet's internal
test setup code. It does not work with puppet4.
2015-06-01 18:02:22 +01:00
David Schmitt
f3e79ddcd5
Convert tests to use plain rspec-puppet
...
Tests in the new style produces the following documentation output:
abs
should not eq nil
should run abs() and raise an Puppet::ParseError
should run abs(-34) and return 34
should run abs("-34") and return 34
should run abs(34) and return 34
should run abs("34") and return 34
2015-06-01 18:02:22 +01:00
David Schmitt
b62dff0c6e
spec_helper: implement an easy way for specs to confine to puppet version
...
Usage:
describe 'puppet3 behaviour', :unless => RSpec.configuration.puppet_future do
describe 'puppet4 behaviour', :if => RSpec.configuration.puppet_future do
2015-06-01 12:21:59 +01:00
David Schmitt
78bd9c8cbe
Add the missing symlinks to get puppet 4 pickup the functions from the environmentpath
2015-06-01 12:21:59 +01:00
David Schmitt
1fcce9082f
root all the gitignore patterns to avoid unintentional matches
2015-06-01 12:21:59 +01:00
David Schmitt
ad7d12e460
Remove duplicate rake task and enable metadata.json linting
...
The :validate task is already provided by
puppetlabs_spec_helper/rake_tasks and would check files twice.
The metadata.json linting is just good form.
2015-06-01 12:21:59 +01:00
David Schmitt
65b56c711d
Workaround the broken rspec-mocks support in rspec-puppet
2015-06-01 12:21:59 +01:00
David Schmitt
080d1637f0
Enable bundler caching on travis
2015-06-01 12:21:58 +01:00
David Schmitt
1ae9058518
Merge pull request #465 from igalic/patch-1
...
simplify mac address regex
2015-05-30 14:33:27 +01:00
Igor Galić
687600c30c
simplify mac address regex
...
let the computer do the counting and repetition and case
2015-05-29 20:13:21 +02:00