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
@tknerr metadata deps not honored #717
Changes from 4 commits
1aac704
5be17d9
d52c93f
af71191
e1fadb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -407,3 +407,56 @@ Feature: install cookbooks from a Berksfile | |
An error occurred during Git execution: | ||
""" | ||
And the exit status should be "GitError" | ||
|
||
@focus | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gotta remove this focus tag |
||
Scenario: transitive dependencies in metadata | ||
Given the cookbook store contains a cookbook "fake" "1.0.0" with dependencies: | ||
| bacon | >= 0.0.0 | | ||
Given I write to "Berksfile" with: | ||
""" | ||
source "http://localhost:26210" | ||
|
||
metadata | ||
""" | ||
And I write to "metadata.rb" with: | ||
""" | ||
depends 'fake', '1.0.0' | ||
depends 'bacon', '0.2.0' | ||
""" | ||
And the Chef Server has cookbooks: | ||
| bacon | 0.1.0 | | ||
| bacon | 0.2.0 | | ||
| bacon | 1.0.0 | | ||
And the Berkshelf API server's cache is up to date | ||
When I successfully run `berks install` | ||
Then the cookbook store should have the cookbooks: | ||
| bacon | 0.2.0 | | ||
Then the output should contain: | ||
""" | ||
Installing bacon (0.2.0) | ||
""" | ||
|
||
@focus | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @reset can you take a look at this? It's still failing against master. It looks like we still trust local versions... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one too |
||
Scenario: transitive dependencies in metadata when cookbooks are downloaded | ||
Given the cookbook store contains a cookbook "fake" "1.0.0" with dependencies: | ||
| bacon | >= 0.0.0 | | ||
And the cookbook store has the cookbooks: | ||
| bacon | 1.0.0 | | ||
| bacon | 0.3.0 | | ||
| bacon | 0.2.0 | | ||
And I write to "Berksfile" with: | ||
""" | ||
source "http://localhost:26210" | ||
|
||
metadata | ||
""" | ||
And I write to "metadata.rb" with: | ||
""" | ||
depends 'fake', '1.0.0' | ||
depends 'bacon', '0.2.0' | ||
""" | ||
When I successfully run `berks install` | ||
Then the output should contain: | ||
""" | ||
Using bacon (0.2.0) | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotta remove the focus bits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left them in until we can figure out how to fix them (i.e. this PR is incomplete)