Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

Validate source options for cookbooks #138

Merged
merged 1 commit into from
Aug 27, 2014

Conversation

danielsdeleo
Copy link
Contributor

Invalid source options in a Policyfile.rb will now be detected as the Policyfile.rb is read and reported as errors. To keep the tests passing I had to disable tests that specified chef-server as a cookbook source, since that isn't implemented in cookbook-omnifetch (and we probably won't implement that until Chef Server adds the /universe endpoint).

@danielsdeleo
Copy link
Contributor Author

/cc @opscode/client-engineers

it "sets the source of the cookbook to the git URL" do
# Chef server isn't yet supported in cookbook-omnifetch (pending /universe endpoint in Chef Server)
# We have to skip at the example definition level or else we fail in the before block
skip "sets the source of the cookbook to the git URL" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you want pending here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe? I don't really get the utility of the way pending behaves in rspec 3, but if you think it's super awesome, maybe you can explain why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this out, and I found that when you use pending in RSpec 3, the example isn't listed as "pending" in the test report. I prefer that these examples show up as pending in the test report so they're more visible, so I'm gonna stick with skip even though pending is probably what rspec wants me to do.

@danielsdeleo danielsdeleo force-pushed the validate-policyfile-input branch from 95bcd5a to 25e0157 Compare August 27, 2014 17:56
@danielsdeleo danielsdeleo merged commit 25e0157 into master Aug 27, 2014
@danielsdeleo danielsdeleo deleted the validate-policyfile-input branch August 27, 2014 18:01
ksubrama pushed a commit that referenced this pull request Jan 11, 2016
Disable chef-solo runs on windows.
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants