• 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
..
lib/puppet Loading commit data...
spec Loading commit data...