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
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
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
Colleen Murphy
65116dafd5
Fix acceptance tests for #405
...
This fixes the acceptance tests by:
- Ensuring the fqdn_rand_string spec is passed undef as the second
parameter so that the seed is not used as the charset
- Ensuring the pw_hash spec is passed the key specifying the type of
hash, rather than the value that will be used to generate the
password
- Expecting puppet to report nil instead of empty string for undef
passwords
- Removing the fqdn_rand_base64 test because there is no such function
2015-04-10 09:15:15 -07:00
Colleen Murphy
e43f058296
Fix unsupported platforms variable name in tests
...
unsupported_platforms is not a valid identifier, and trying to use it
causes acceptance tests to error out before running any tests. The
correct identifier for the unsupported platforms constants is
UNSUPPORTED_PLATFORMS.
2015-04-09 15:53:16 -07:00
Hunter Haugen
8fba5c058b
Merge pull request #405 from elyscape/feature/fqdn_rand_strings
...
(MODULES-1715) Add FQDN-based random string generator
2015-04-09 10:45:38 -07:00
Eli Young
23be4020dd
(MODULES-1737) Add pw_hash() function
2015-04-05 17:21:17 -07:00
Eli Young
a82266c256
(MODULES-1715) Add fqdn_rand string generators
2015-03-31 17:33:04 -07:00
Adam Crews
53b1802a92
Add a ceiling function to complement the floor function.
2015-02-01 22:46:16 -08:00
Hunter Haugen
bfb526899f
Change all to each
...
The existence of this directory is behavior for each test, but will also
stop rspec 3 from complaining.
2015-01-13 17:21:28 -08:00
Morgan Haskel
31a6d89410
Fix bad check in test
2014-12-18 16:20:02 -08:00
Peter Souter
5e49c50458
(MODULES-444) Acceptance for multiple arrays
...
Acceptance test to take multiple arrays for concatenation
2014-12-04 14:15:33 +00:00
Peter Souter
7c570f75a5
(MODULES-444) Acceptance test for primitives
...
`concat` should be able to concat arrays and primitives
2014-12-04 14:15:03 +00:00
Travis Fields
3584485902
Fix exclude windows test on ensure_package
...
Update to fix ensure_resource as well
2014-11-11 16:41:53 -08:00
Hunter Haugen
970141e36a
Correct type() logic
...
It should NOT run if the future parser is enabled
2014-11-11 10:46:01 -08:00
Travis Fields
992ed8ffa8
Remove windows from ensure_package and ensure_resource testing
2014-11-10 16:34:05 -08:00
Morgan Haskel
850297b560
Merge pull request #354 from puppetlabs/4.3.x
...
4.3.x
2014-11-10 11:10:41 -08:00
Morgan Haskel
03f0ecd128
Merge pull request #350 from cyberious/modules1413
...
MODULES-1413 Add ability for member to take numeric objects
2014-11-04 15:29:25 -08:00
Travis Fields
f19aea5a75
MODULES-1413 Ability to for future parser to use member with FixNum types
2014-11-04 14:33:34 -08:00
Travis Fields
4bff0d2d61
Merge branch '4.3.x'
...
Conflicts:
spec/acceptance/ensure_packages_spec.rb
spec/acceptance/ensure_resource_spec.rb
2014-11-04 14:17:03 -08:00
Travis Fields
26e864f224
Fix the unless for test cases on ensure_package and ensure_resource
...
Conflicts:
spec/acceptance/ensure_packages_spec.rb
spec/acceptance/ensure_resource_spec.rb
2014-11-04 10:45:13 -08:00
Travis Fields
35c2dc7ca3
Merge branch '4.3.x'
2014-10-30 10:23:12 -07:00
Travis Fields
6c7da72c0f
Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception. Wrapping in generic Exception catch all
2014-10-29 20:03:07 -07:00
Travis Fields
2b1cc82d24
Add windows test exclusion to ensure_resource
2014-10-28 16:43:15 -07:00
Travis Fields
5497f83507
Fix logic issue with not including windows for testing ensure_packages as ruby and gem are not on the install path
2014-10-28 15:35:56 -07:00
Travis Fields
a6f3f781d1
Merge remote-tracking branch 'origin/4.3.x' back to master
2014-10-28 15:31:37 -07:00
Travis Fields
51f1d574d9
Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string
2014-10-28 15:27:24 -07:00
Hunter Haugen
2ba0e375e2
Merge branch '4.3.x'
2014-08-05 10:55:58 -07:00
Hunter Haugen
07462f2c36
AIX has no facter network support
...
These functions take advantage of IP fact information and AIX does not
appear to support dynamic interface detection in facter.
2014-07-08 13:45:36 -07:00
Hunter Haugen
ec607827ad
Gotta single quote yer typewriter buttons
2014-06-26 13:55:57 -07:00
Hunter Haugen
1b893ff653
Need quotes for spaces in path
2014-06-26 13:17:07 -07:00
Hunter Haugen
b93f71f0ce
has_ip_network doesn't work on windows either
2014-06-26 13:12:39 -07:00
Colleen Murphy
2fefd9c1e0
Sync files
2014-06-25 18:00:57 -07:00
Hunter Haugen
05b79dcabb
Disable windows network stuff and quote path
2014-06-25 10:16:06 -07:00
Hunter Haugen
0cac9fd048
Not enough escape velocity
2014-06-24 15:03:58 -07:00
Hunter Haugen
ca35be6480
Fix pe facts and slashes
2014-06-24 11:37:34 -07:00
Travis Fields
eb507c9a54
Fixed fqdn,getparam and has_interface_with spec tests
2014-06-23 23:27:59 -07:00
Hunter Haugen
f7b7c4a6ec
Windows needs a tmpdir path
2014-06-23 15:13:29 -07:00
Travis Fields
d38ccfc9d2
Merge pull request #280 from hunner/win_aug
...
Augeas isn't present on windows
2014-06-23 13:51:33 -07:00
Hunter Haugen
280d808eb4
Augeas isn't present on windows
2014-06-23 13:50:24 -07:00
Hunter Haugen
4b7162896a
OS X also has lo0 and can't manage user homedirs
2014-06-23 13:45:06 -07:00
Travis Fields
24a6fecc78
Add windows Nodesets and remove Beaker from Gemfile
2014-06-20 16:39:15 -07:00
Hunter Haugen
7eda161be8
Patch ensure_* tests
2014-06-20 10:41:43 -07:00
Hunter Haugen
197e2d7e70
(FM-1587) Fix test issues on solaris 10
...
- ensure_packages fails because Error: Sun packages must specify a package source
- ensure_resource fails for the same reason
- get_module_path fails because the modulepath is different
- has_interface_with fails because the interface is lo0 not lo
2014-06-19 15:38:23 -07:00
Morgan Haskel
af71faa247
Merge pull request #265 from apenney/fix-tests
...
Further fixes to tests for 14.04.
2014-06-03 15:01:12 -04:00
Ashley Penney
6010e9bd93
Further fixes to tests for 14.04.
2014-06-03 14:52:10 -04:00
Morgan Haskel
a364605f3b
Merge pull request #264 from apenney/fixes-for-tests
...
Fixes for PE3.3.
2014-06-03 11:15:20 -04:00
Ashley Penney
08f7553fb6
Fixes for PE3.3.
2014-06-03 11:11:08 -04:00
Ashley Penney
14c9155745
Prepare a 4.2.1 release.
2014-05-09 16:57:32 +02:00