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

tons of "Deprecation class overwrites LWRP resource" WARNING SPAM with chefspec #4668

Closed
lamont-granquist opened this issue Mar 4, 2016 · 1 comment
Assignees
Labels
Priority: Critical Fix immediately Type: Bug Does not work as expected.

Comments

@lamont-granquist
Copy link
Contributor

Description

See sous-chefs/apt#163 or chefspec/chefspec#642

Chef Version

12.7.2-ish

Replication Case

  • cookbook with a custom resource
  • a chefspec file with at least two chef runs in it (doesn't throw it with the default unit test from chef-dk because there's only one example)
  • must use the ServerRunner (SoloRunner does not throw the WARN)

Client Output

stuff like this:

% rspec
[2016-03-04T13:59:11-08:00] WARN: MultipackageInternal already exists!  Deprecation class overwrites Custom resource multipackage_internal from cookbook multipackage
[2016-03-04T13:59:11-08:00] WARN: FakeTestResource already exists!  Deprecation class overwrites Custom resource fake_test_resource from cookbook fake
.

Finished in 1.73 seconds (files took 0.99219 seconds to load)
2 examples, 0 failures


ChefSpec Coverage report generated...

  Total Resources:   3
  Touched Resources: 0
  Touch Coverage:    0.0%

Untouched Resources:

  multipackage_internal[collected packages install]   multipackage/libraries/multipackage_impl.rb:63
  multipackage_internal[collected packages remove]   multipackage/libraries/multipackage_impl.rb:63
  multipackage_internal[collected packages upgrade]   multipackage/libraries/multipackage_impl.rb:63
@tyler-ball
Copy link
Contributor

Verified this still exists with master of chef and master of chefspec

@tyler-ball tyler-ball assigned tyler-ball and unassigned jkeiser Mar 21, 2016
@thommay thommay added Type: Bug Does not work as expected. Priority: Critical Fix immediately and removed Bug labels Jan 25, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Priority: Critical Fix immediately Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

4 participants