Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't test puppet 4 since 3.17.1 #279

Open
alexjfisher opened this issue Sep 7, 2020 · 1 comment
Open

Can't test puppet 4 since 3.17.1 #279

alexjfisher opened this issue Sep 7, 2020 · 1 comment

Comments

@alexjfisher
Copy link
Member

I know Puppet 4 is EOL, but onceover is a great tool to help migrate to newer versions (and the gemspec says puppet 4 is still supported).

I think something in #272 is the cause.

role::example: failed
  errors:
    superclass mismatch for class User
      factsets: solaris10

I can get a better error message by running rspec directly.

export PDK_PUPPET_VERSION=4
pdk bundle exec rspec .onceover/spec/classes/role__example_on_solaris10_spec.rb
Failures:

  1) role::example using fact set solaris10
     Failure/Error: class User < ADSIObject; end

     TypeError:
       superclass mismatch for class User
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:54:in `<module:ADSI>'
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:52:in `<module:Windows>'
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:51:in `rescue in block (3 levels) in <top (required)>'
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:44:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # LoadError:
     #   cannot load such file -- ffi
     #   /home/alex/.rvm/gems/ruby-2.1.9/gems/rspec-puppet-2.7.10/lib/rspec-puppet/monkey_patches.rb:360:in `require'
@alexjfisher
Copy link
Member Author

FWIW, I also have to explicitly add --format OnceoverFormatter when running with Puppet 4/Ruby 2.1.9 or I don't get any output as to why the test failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant