summaryrefslogtreecommitdiff
path: root/spec/acceptance
AgeCommit message (Collapse)Author
2015-09-21Update is_a acceptance tests to only run on puppet4Morgan Haskel
2015-09-21Fix backwards compatibility from #511Morgan Haskel
Maintain the old behavior in the case where the optional second parameter isn't passed. Also, adding arity is backwards incompatible since stdlib still supports 2.7, so remove that.
2015-09-14Merge pull request #523 from DavidS/modules-2516-is_aBryan Jen
(MODULES-2561) add is_a function
2015-09-14Merge pull request #511 from dmitryilyin/parseyaml_defaultBryan Jen
[MODULES-2462] Improve parseyaml function
2015-09-14(MODULES-2516) Adds an is_a() functionDavid Schmitt
The data type system is very hard to understand. Many people don't understand why type_of([1,2,3]) == Array will fail, but type_of([1,2,3]) <= Array passes. This does a simpler validation that doesn't rely on explicit data types. Instead, use $foo = [1,2,3] if $foo.is_a(Array) { notify { 'This is an array': } } This is based on code by Ben Ford <ben.ford@puppetlabs.com>. * Added acceptance tests * Added dispatch * Improved unit tests * Added docs to README
2015-09-02(MAINT) fix up try_get_value acceptance testDavid Schmitt
2015-09-02Merge pull request #513 from dmitryilyin/fetchDavid Schmitt
Add a new function "try_get_value"
2015-09-01Add a new function "try_get_value"Dmitry Ilyin
* Extracts a value from a deeply-nested data structure * Returns default if a value could not be extracted
2015-08-25[MODULES-2462] Improve parseyaml functionDmitry Ilyin
* Add default value support Second argument will be returned if yaml cannot be parsed instead of false value * Update tests
2015-08-24(MODULE-2456) Modify union to accept more than two arraysJetroid
Add spec tests to test the new functionality: *Case for 3 arrays. *Case for 4 arrays. Modify README to note new functionality. This is for issue MODULE-2456, follow the precedent of MODULE-444. This change allows union to be much more useful, unioning many arrays in one line rather than in n lines. Additionally, as this is only added functionality, and does not affect the 2 array case that all modules currently using array are using, it should not affect any existing modules utilizing union. This is now useful, for example, for merging many arrays of resources (eg: packages.) to generate just one list with no duplicates, to avoid duplicate resource declarations.
2015-08-10Prep 4.8.0Hunter Haugen
2015-07-22(main) clean up fqdn_rand acceptance tests to work on windowsDavid Schmitt
2015-07-22(maint) Remove failing acceptance test for ensure_packagesDavid Schmitt
This only duplicates what's already being tested in ensure_packages_spec.rb but doesn't work on all our supported platforms.
2015-07-21disable pw_hash test on sles, as it only supports md5Hunter Haugen
2015-07-20(maint) Fix test to not assume is_pe fact on > 4.0.0 puppetTravis Fields
2015-06-02fqdn_rand_string: Add acceptance tests for custom charsetsEli Young
2015-06-02fqdn_rotate: Add acceptance tests for custom seedsEli Young
2015-06-01fqdn_rotate: Don't use the value itself as part of the random seedEli Young
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-01Convert tests to use plain rspec-puppetDavid Schmitt
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-04-10Fix acceptance tests for #405Colleen Murphy
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-09Fix unsupported platforms variable name in testsColleen Murphy
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-09Merge pull request #405 from elyscape/feature/fqdn_rand_stringsHunter Haugen
(MODULES-1715) Add FQDN-based random string generator
2015-04-05(MODULES-1737) Add pw_hash() functionEli Young
2015-03-31(MODULES-1715) Add fqdn_rand string generatorsEli Young
2015-02-01Add a ceiling function to complement the floor function.Adam Crews
2015-01-13Change all to eachHunter Haugen
The existence of this directory is behavior for each test, but will also stop rspec 3 from complaining.
2014-12-18Fix bad check in testMorgan Haskel
2014-12-04(MODULES-444) Acceptance for multiple arraysPeter Souter
Acceptance test to take multiple arrays for concatenation
2014-12-04(MODULES-444) Acceptance test for primitivesPeter Souter
`concat` should be able to concat arrays and primitives
2014-11-11Fix exclude windows test on ensure_packageTravis Fields
Update to fix ensure_resource as well
2014-11-11Correct type() logicHunter Haugen
It should NOT run if the future parser is enabled
2014-11-10Remove windows from ensure_package and ensure_resource testingTravis Fields
2014-11-10Merge pull request #354 from puppetlabs/4.3.xMorgan Haskel
4.3.x
2014-11-04Merge pull request #350 from cyberious/modules1413Morgan Haskel
MODULES-1413 Add ability for member to take numeric objects
2014-11-04MODULES-1413 Ability to for future parser to use member with FixNum typesTravis Fields
2014-11-04Merge branch '4.3.x'Travis Fields
Conflicts: spec/acceptance/ensure_packages_spec.rb spec/acceptance/ensure_resource_spec.rb
2014-11-04Fix the unless for test cases on ensure_package and ensure_resourceTravis Fields
Conflicts: spec/acceptance/ensure_packages_spec.rb spec/acceptance/ensure_resource_spec.rb
2014-10-30Merge branch '4.3.x'Travis Fields
2014-10-29Fix validate_cmd, previous addition of SystemCallError only works for Puppet ↵Travis Fields
3.7, previous version throw different exception. Wrapping in generic Exception catch all
2014-10-28Add windows test exclusion to ensure_resourceTravis Fields
2014-10-28Fix logic issue with not including windows for testing ensure_packages as ↵Travis Fields
ruby and gem are not on the install path
2014-10-28Merge remote-tracking branch 'origin/4.3.x' back to masterTravis Fields
2014-10-28Fix testcases for Future Parser and resolve issue with values_at in assuming ↵Travis Fields
that it was dealing with a string
2014-08-05Merge branch '4.3.x'Hunter Haugen
2014-07-08AIX has no facter network supportHunter Haugen
These functions take advantage of IP fact information and AIX does not appear to support dynamic interface detection in facter.
2014-06-26Gotta single quote yer typewriter buttonsHunter Haugen
2014-06-26Need quotes for spaces in pathHunter Haugen
2014-06-26has_ip_network doesn't work on windows eitherHunter Haugen
2014-06-25Sync filesColleen Murphy
2014-06-25Disable windows network stuff and quote pathHunter Haugen