[Pkg-puppet-devel] hiera licensing, problems with 1.9.1

Sven Mueller sven at incase.de
Tue Feb 28 12:47:49 UTC 2012


Hi.

Forgive me for contacting you directly, but I didn't really find a bug
tracker for hiera. Anyhow, why I contact you:
I would like to get hiera into Debian, but the license situation is a
little bit unclear. Your github repo (as well as the puppetlabs one)
contains a COPYING file which mentions the Apache license, but the
published gem metadata doesn't specify the license and the release tarball
for 0.3.0 also doesn't mention a license. It would help if the release
tarball would include this information.

On another note, I tried building a package from the gem anyway, but with
ruby 1.9.1, four tests fail when building the gem:

  1) Hiera::Backend#lookup should return the answer from the backend
     Failure/Error: Unable to find matching line from backtrace
       expected: "answer"
            got: "default" (using ==)
     # ./spec/unit/backend_spec.rb:213:in `block (3 levels) in <class:Hiera>'

  2) Hiera::Backend#lookup should retain the datatypes as returned by the
backend
     Failure/Error: Unable to find matching line from backtrace
       expected: "string"
            got: "default" (using ==)
     # ./spec/unit/backend_spec.rb:224:in `block (3 levels) in <class:Hiera>'

  3) Hiera::Backend#lookup should parse the answers based on resolution_type
     Failure/Error: Unable to find matching line from backtrace
     Mocha::ExpectationError:
       unexpected invocation: Hiera::Backend.resolve_answer(nil, :priority)
     # ./lib/hiera/backend.rb:166:in `lookup'
     # ./spec/unit/backend_spec.rb:249:in `block (3 levels) in <class:Hiera>'

  4) Hiera#logger= should fall back to the Console logger on failure
     Failure/Error: Unable to find matching line from backtrace
     Mocha::ExpectationError:
       unexpected invocation: Hiera.warn('Failed to load foo logger:
LoadError: cannot load such file -- hiera/foo_logger')
     # ./lib/hiera.rb:30:in `rescue in logger='
     # ./lib/hiera.rb:23:in `logger='
     # ./spec/unit/hiera_spec.rb:13:in `block (3 levels) in <top (required)>'

I am at a loss (especially due to my mediocre Ruby skills) what goes on in
these tests. Do you have any idea?

Kind regards,
Sven




More information about the Pkg-puppet-devel mailing list