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

Implement Policyfile evaluation #61

Merged
merged 3 commits into from
Jun 3, 2014
Merged

Conversation

danielsdeleo
Copy link
Contributor

This patch adds library code to evaluate a Policyfile and handle some of the expected common error cases. Also includes some (pending) test cases to describe how ChefDK should handle various Policyfile inputs when constructing a dependency graph and demands. A subsequent pull request will implement that behavior.

@sersut
Copy link

sersut commented May 29, 2014

Sweet first set @danielsdeleo.

I think it will be super helpful to have spec helpers like with_local_cookbook() with_community_site_cookbook() etc... so that we can compose any scenario we want in the future. 👍


require 'spec_helper'

describe "Build a graph from a policyfile" do
Copy link

Choose a reason for hiding this comment

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

Maybe:

describe 'Build a graph from a policyfile' do

@danielsdeleo
Copy link
Contributor Author

@sersut I'll look at how to best compose the tests as I work on them. Right now, it's easy enough to just write out the Policyfile as a string of ruby code.

@danielsdeleo danielsdeleo changed the title Sketch out test scenarios for Policyfile graph building Implement Policyfile evaluation Jun 3, 2014
@lamont-granquist
Copy link
Contributor

👍

@danielsdeleo danielsdeleo merged commit 41db2a6 into master Jun 3, 2014
@danielsdeleo danielsdeleo deleted the policyfile-build-graph branch June 3, 2014 19:59
@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