• Adrien Thebo's avatar
    (maint) Use a real scope object for terminus testing · 4013d322
    Adrien Thebo authored
    Changes coming in Puppet 5.0.0 change how Puppet::Parser::Resource
    instances set default values; in specific they do so upon object
    construction which requires a functioning(ish) scope object. The
    Puppetdb terminus specs were relying on the scope object being
    relatively simple and easily stubbed but this change in defaults makes
    it much harder to treat the scope object as an easily stubbed object.
    
    To simplify stubbing and potentially reduce future breakage this commit
    changes the scope stubbing to partially stub a full scope object instead
    of creating a pure stub object and adding methods as necessary. By using
    a full scope object we can let the internal APIs of Puppet handle
    implementation changes.
    4013d322
Name
Last commit
Last update
acceptance Loading commit data...
config/image_templates Loading commit data...
contrib Loading commit data...
dev-resources Loading commit data...
documentation Loading commit data...
ext Loading commit data...
locales Loading commit data...
puppet Loading commit data...
resources Loading commit data...
src/puppetlabs/puppetdb Loading commit data...
test/puppetlabs/puppetdb Loading commit data...
test-resources Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Gemfile Loading commit data...
LICENSE.txt Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
NOTICE.txt Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
config.sample.ini Loading commit data...
project.clj Loading commit data...