summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2015-07-22adding support for hash in the size functiongcmalloc
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-07-09Use puppet_install_helperMorgan Haskel
2015-07-09Add validate_slength's optional 3rd arg to READMEAlexander Fisher
2015-06-19AIO uses puppet 4 so should return true for is_future_parser_enabledMorgan Haskel
2015-06-12(maint) getvar: update spec to match implementationDavid Schmitt
2015-06-08(maint) update PUPPET_VERSION default to be 3.8.1Justin Stoller
2015-06-04Merge pull request #469 from hunner/fix_timeMorgan Haskel
Fix time() on 1.8.7
2015-06-04Fix time() on 1.8.7Hunter Haugen
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-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: Add 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-01Remove unused puppet_spec codeDavid Schmitt
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-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-06-01spec_helper: implement an easy way for specs to confine to puppet versionDavid Schmitt
Usage: describe 'puppet3 behaviour', :unless => RSpec.configuration.puppet_future do describe 'puppet4 behaviour', :if => RSpec.configuration.puppet_future do
2015-06-01Add the missing symlinks to get puppet 4 pickup the functions from the ↵David Schmitt
environmentpath
2015-06-01Workaround the broken rspec-mocks support in rspec-puppetDavid Schmitt
2015-05-29Merge pull request #463 from CENGN/fix/master/file_line_multiple_afterDavid Schmitt
(MODULES-2071) Patch file_line provider to use multiple with after
2015-05-29 (MODULES-2071) Refactor file_line provider to contain logic to handle ↵Raymond Maika
parameter multiple in function handle_create_with_after Without this, file_line resource without the `match` parameter but with the `after` param will throw an error if there are multiple matches for the after expression. This patch creates the handling for the `multiple` parameter in handle_create_with_after. This allows you to add a line after the `after` expression if it appears at multiple points in a file. Updated reference to `file_line` in the README to reflect that the multiple parameter can be set when using `after` and/or `match` as the matching regex.
2015-05-27validate_integer, validate_numeric: explicitely reject hashes in arraysDavid Schmitt
Without this patch, Ruby 1.8's Hash#to_s behaviour causes [{1=>2}] to be treated as "12" when validating values.
2015-05-12Remove all the pops stuffHunter Haugen
The rspec-puppet matchers don't allow to check the return types, but this is a pretty rare thing to need to do anyway, so probably not worth patching rspec-puppet
2015-05-06range(): fix TypeError(can't convert nil into Integer) when using range syntaxDavid Schmitt
2015-05-05spec_helper: Remove unneccesary stubbingDavid Schmitt
This only roots all Facter instances into memory, while something already creates a new Facter instance each run.
2015-05-05spec_helper: use proper mocha import to avoid warningDavid Schmitt
2015-05-05spec_helper: set parser config if requestedDavid Schmitt
2015-05-05spec_helper_acceptance: fix FUTURE_PARSER usageDavid Schmitt
Use the more common "yes", instead of "true" to detect FUTURE_PARSER.
2015-05-05specs: move function specs to where rspec-puppet expects themDavid Schmitt
2015-04-23specs: loosen certain error expectations to make tests pass on future parserDavid Schmitt
2015-04-16Merge pull request #314 from amateo/feature/loadyaml_check_fileMorgan Haskel
Check if file exists before loading with loadyaml. If not, return nil
2015-04-13test case for when the file does not existAngel L. Mateo
2015-04-10Modules-2474: Only runs enhanced salts functional test on systems that ↵Bryan Jen
support it.
2015-04-10Merge pull request #433 from cmurphy/fix_acceptanceBryan Jen
Fix acceptance tests for #405
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-10Merge pull request #425 from jeffcoat/validate_augeas_specDavid Schmitt
Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure Even without the gem installed always, this is helpful to avoid errors should augeas be enabled/installed due to something else.
2015-04-09Merge pull request #431 from bmjen/file-line-refactorMorgan Haskel
File_line checks provided after param if no match is found
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-09Add spec tests and pulled in PR #427Travis Fields
Changed append line to open in 'w' mode and have to rewrite lines in order to append new line
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-03-10Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure.Mark Jeffcoat
2015-03-05If present, top-level domain must be alphabeticRod Montgomery
See RFC 1123, Section 2.1 http://tools.ietf.org/html/rfc1123#section-2
2015-03-05Merge pull request #422 from cyberious/assert_privateTP Honey
Assert private
2015-03-05Add private function back and forward to assert_private with deprecation warningTravis Fields
2015-03-05Merge pull request #369 from rfugina/dirname_typecheckHunter Haugen
Dirname typecheck
2015-03-05Rename private() to assert_private()Franz Pletz
As mentioned in #270, private is a reserved keyword in the future parser which is to be released with Puppet 4. As it stands, this function is not useable with the future parser so it needs to renamed. This is a breaking change.
2015-03-05Merge pull request #375 from ↵Hunter Haugen
poikilotherm/feature/master/validate_integer_and_numeric (MODULES-560) Add new functions validate_numeric() and validate_integer().
2015-03-03Add support for hashes in the prefix functionStefan Goethals
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>