Permalink
Commits on Jan 16, 2017
  1. Merge pull request #422 from domcleal/test-api-spec

    Fix naming of test_api specs so they run
    DavidS committed on GitHub Jan 16, 2017
  2. Merge pull request #438 from hashar/readme-tweaks

    Readme tweaks
    DavidS committed on GitHub Jan 16, 2017
Commits on Jan 13, 2017
  1. README: reword "Configure manifests" section

    The first paragraph was hard to gasp, rewrite it to make it slightly
    easier to read.
    Put link to puppet reference in a list.
    Update Puppet 4 reference version from 4.6 to 4.8 (latest).
    
    Mention the conf is usually done in spec/spec_helper.rb
    Add a few comments in the example configuration. Slightly refactor the
    code to avoid repeating File.dirname(File.expand_path(__FILE__)).
    hashar committed Jan 13, 2017
  2. README: ASCII tree with unicode

    Enhance the ASCII art representing the conventional directory
    structure:
    
    Suffix directories with a '/' to better differentiate them from regular
    file (same as `ls -F`).
    
    Use Unicode characters for slightly better rendering. That is the
    equivalent of `tree -AF. See Unicode block "Box Drawing":
    https://en.wikipedia.org/wiki/Box_Drawing
    
    Make it slightly smaller by removing vertical lines between a directory
    entry and the file it contains.
    hashar committed Jan 13, 2017
Commits on Jan 5, 2017
  1. Merge pull request #436 from domcleal/429-default-keyword

    Support 'default' keyword in params
    DavidS committed on GitHub Jan 5, 2017
  2. Support 'default' keyword in params

    Fixes #429
    domcleal committed Jan 5, 2017
  3. Merge pull request #423 from domcleal/type-aliases

    Add type_alias example group and allow_value(s) matchers
    DavidS committed on GitHub Jan 5, 2017
  4. Merge pull request #435 from domcleal/precondition-docs

    Document pre_condition override
    DavidS committed on GitHub Jan 5, 2017
  5. Add type_alias example group and allow_value(s) matchers

    New allow_value and allow_values matchers can test type aliases defined
    on Puppet 4.4+ to check that they do/don't accept certain values by
    building a test catalog with Puppet's assert_type function.
    
    These are available for specs with type :type_alias, under the directory
    specs/type_aliases/ that describe the alias name (e.g. My::TypeAlias).
    
    Fixes #402
    domcleal committed Oct 27, 2016
  6. Document pre_condition override

    Fixes #413
    domcleal committed Jan 5, 2017
  7. Merge pull request #433 from domcleal/430-spec-type-override

    Prefer spec's :type when given over the file path
    DavidS committed on GitHub Jan 5, 2017
  8. Prefer spec's :type when given over the file path

    Under rspec 3, the :type specified in the spec (e.g. :type => :class) is
    preferred over the file location to determine the example group type.
    This allows say, a class spec to be located within another directory
    such as spec/functions/. Not supported under rspec 2 due to the type's
    absence in the spec metadata.
    
    Fixes #430
    domcleal committed Jan 5, 2017
Commits on Nov 24, 2016
  1. Merge pull request #426 from DavidS/update-tests

    Rebase/integrate tests from #420
    DavidS committed on GitHub Nov 24, 2016
  2. Rebase/integrate tests from #420

    This constrains the title casing to Class titles, and adds
    unit tests.
    DavidS committed Nov 24, 2016
Commits on Nov 22, 2016
  1. Merge pull request #425 from shadow999/coverage_add_filter_issue

    Fixed RSpec::Puppet::Coverage.add_filter capitalize logic
    DavidS committed on GitHub Nov 22, 2016
Commits on Nov 21, 2016
  1. Fixed RSpec::Puppet::Coverage.add_filter capitalize logic

    - First character of whole name and first character after :: should be capitalized. This rule should be applied to both type name and resource title.
    Alex Le committed Nov 21, 2016
Commits on Oct 27, 2016
  1. Fix naming of test_api specs so they run

    Incorrectly named ever since they were added 7dddebd, updated to take
    into account the change of `subject` in 34220fc and rspec should/expect
    style changes.
    domcleal committed Oct 27, 2016
Commits on Oct 26, 2016
Commits on Oct 25, 2016
  1. Update version

    DavidS committed Oct 25, 2016
  2. Merge pull request #419 from rodjek/release-prep-2.5.0

    Release prep 2.5.0
    DavidS committed on GitHub Oct 25, 2016
Commits on Oct 24, 2016
  1. Update Changelog

    DavidS committed Oct 24, 2016
Commits on Sep 19, 2016
  1. Merge pull request #414 from DavidS/add-compile-testing

    Add proper testing for the compile matcher
    hunner committed on GitHub Sep 19, 2016
Commits on Sep 16, 2016
  1. Add proper testing for the compile matcher

    The bad_dep_host is a now-redundant test.
    DavidS committed Sep 16, 2016
Commits on Sep 7, 2016
  1. Merge pull request #412 from DavidS/modules-3737

    (MODULES-3737) Allow testing internal puppet 4 functions
    hunner committed on GitHub Sep 7, 2016
Commits on Sep 6, 2016
  1. (MODULES-3737) fix backwards compatibility with function subject.call

    Some function tests use subject.call to test for exceptions. The tests
    expect call() to take an array of arguments for v3 functions. The prior
    changes broke that, so this change introduces a new, uniform, way to
    execute functions, deprecating the old "call()".
    
    Originally those tests look something like this:
    
          expect {
            subject.call []
          }.to raise_error Puppet::ParseError, /Class foo::baz is private/
    
    but they should be modified to look like this:
    
          is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /Class foo::baz is private/)
    DavidS committed Sep 5, 2016
  2. (MODULES-3737) Allow testing internal puppet 4 functions

    Some puppet 4 functions require access to the scope, which needs to be
    provided through the loader.
    
    Since the loader override needs to be active during function evaluation,
    this also adds a wrapper for that func, and changes so that the func name
    is displayed properly.
    
    To reduce complexity of the rest of the code, a similar wrapper is
    introduced for puppet 3. This makes the rest of the code simpler.
    DavidS committed Sep 5, 2016
  3. Merge pull request #411 from kbarber/ticket/master/orch-1518-applicat…

    …ion-type
    
    (ORCH-1518) Introduce app_management testing support
    DavidS committed on GitHub Sep 6, 2016
  4. (ORCH-1518) Introduce app_management testing support

    This patch adds support the `app_management` feature added to Puppet in 4.3.
    
    It provides a new type `application` that can now be created much like a class
    or resource. It also enables the `app_management` setting automatically when
    the version of Puppet provided has this feature.
    
    To assist with passing resource references as required by application node mappings,
    this patch introduces the new `ref` helper to allow test writers to provide
    resource refs that appear as raw strings (instead of being quoted like normal strings).
    
    All this new support is documented in the README.md, and tests have been added
    to provide basic coverage for this new work.
    
    Signed-off-by: Ken Barber <ken@bob.sh>
    kbarber committed Aug 23, 2016
Commits on Sep 2, 2016
  1. Merge pull request #408 from leoarnold/issue407

    Make :undef spec more expressive. Closes #407
    DavidS committed on GitHub Sep 2, 2016
Commits on Sep 1, 2016
Commits on Aug 31, 2016
  1. Merge pull request #410 from DavidS/fix-quoting-issues

    Fix quoting issues
    hunner committed on GitHub Aug 31, 2016