diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-04-08 00:57:17 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-04-08 00:57:17 -0700 |
commit | 95eb1375f0647accd1b1a1569a7d0e3acc4a61e4 (patch) | |
tree | a58d6fddde4d7818dc33511ff8275c7b9f69f1c6 /spec/data | |
parent | 434f25ba07b5c0c50baa1e15b14a945bba3c3c3b (diff) | |
download | chef-95eb1375f0647accd1b1a1569a7d0e3acc4a61e4.tar.gz |
Adding chef-solo command, config examples, Chef::Log class, Chef::Log::Formatter, Chef::Compile, and all the tests
Diffstat (limited to 'spec/data')
-rw-r--r-- | spec/data/compile/cookbooks/test/attributes/george.rb | 1 | ||||
-rw-r--r-- | spec/data/compile/cookbooks/test/definitions/new_cat.rb | 5 | ||||
-rw-r--r-- | spec/data/compile/cookbooks/test/recipes/one.rb | 7 | ||||
-rw-r--r-- | spec/data/compile/cookbooks/test/recipes/two.rb | 7 | ||||
-rw-r--r-- | spec/data/compile/nodes/compile.rb | 5 | ||||
-rw-r--r-- | spec/data/cookbooks/openldap/attributes/default.rb | 2 | ||||
-rw-r--r-- | spec/data/cookbooks/openldap/definitions/client.rb | 2 | ||||
-rw-r--r-- | spec/data/cookbooks/openldap/definitions/server.rb | 2 | ||||
-rw-r--r-- | spec/data/cookbooks/openldap/recipes/one.rb | 15 | ||||
-rw-r--r-- | spec/data/nodes/default.rb | 15 | ||||
-rw-r--r-- | spec/data/nodes/test.example.com.rb | 15 | ||||
-rw-r--r-- | spec/data/nodes/test.rb | 2 |
12 files changed, 74 insertions, 4 deletions
diff --git a/spec/data/compile/cookbooks/test/attributes/george.rb b/spec/data/compile/cookbooks/test/attributes/george.rb new file mode 100644 index 0000000000..5df9567761 --- /dev/null +++ b/spec/data/compile/cookbooks/test/attributes/george.rb @@ -0,0 +1 @@ +george "washington"
\ No newline at end of file diff --git a/spec/data/compile/cookbooks/test/definitions/new_cat.rb b/spec/data/compile/cookbooks/test/definitions/new_cat.rb new file mode 100644 index 0000000000..a49b53348c --- /dev/null +++ b/spec/data/compile/cookbooks/test/definitions/new_cat.rb @@ -0,0 +1,5 @@ +define :new_cat, :is_pretty => true do + cat "#{params[:name]}" do + pretty_kitty params[:is_pretty] + end +end diff --git a/spec/data/compile/cookbooks/test/recipes/one.rb b/spec/data/compile/cookbooks/test/recipes/one.rb new file mode 100644 index 0000000000..7795cc1d4a --- /dev/null +++ b/spec/data/compile/cookbooks/test/recipes/one.rb @@ -0,0 +1,7 @@ +cat "loulou" do + pretty_kitty true +end + +new_cat "birthday" do + pretty_kitty false +end diff --git a/spec/data/compile/cookbooks/test/recipes/two.rb b/spec/data/compile/cookbooks/test/recipes/two.rb new file mode 100644 index 0000000000..01def1b2ac --- /dev/null +++ b/spec/data/compile/cookbooks/test/recipes/two.rb @@ -0,0 +1,7 @@ +cat "peanut" do + pretty_kitty true +end + +new_cat "fat peanut" do + pretty_kitty false +end diff --git a/spec/data/compile/nodes/compile.rb b/spec/data/compile/nodes/compile.rb new file mode 100644 index 0000000000..7f0664d5d6 --- /dev/null +++ b/spec/data/compile/nodes/compile.rb @@ -0,0 +1,5 @@ +## +# Nodes should have a unique name +## +name "compile" +recipes "test::one", "test::two" diff --git a/spec/data/cookbooks/openldap/attributes/default.rb b/spec/data/cookbooks/openldap/attributes/default.rb index 8c00028021..204ae9ed77 100644 --- a/spec/data/cookbooks/openldap/attributes/default.rb +++ b/spec/data/cookbooks/openldap/attributes/default.rb @@ -1,4 +1,4 @@ - +chef_env ||= nil case chef_env when "prod" ldap_server "ops1prod" diff --git a/spec/data/cookbooks/openldap/definitions/client.rb b/spec/data/cookbooks/openldap/definitions/client.rb index 37364925fb..ac81831d11 100644 --- a/spec/data/cookbooks/openldap/definitions/client.rb +++ b/spec/data/cookbooks/openldap/definitions/client.rb @@ -1,5 +1,5 @@ define :openldap_client, :mothra => "a big monster" do - cat "#{param[:name]}" do + cat "#{params[:name]}" do pretty_kitty true end end diff --git a/spec/data/cookbooks/openldap/definitions/server.rb b/spec/data/cookbooks/openldap/definitions/server.rb index f189f67ca8..2df437aa84 100644 --- a/spec/data/cookbooks/openldap/definitions/server.rb +++ b/spec/data/cookbooks/openldap/definitions/server.rb @@ -1,5 +1,5 @@ define :openldap_server, :mothra => "a big monster" do - cat "#{param[:name]}" do + cat "#{params[:name]}" do pretty_kitty true end end diff --git a/spec/data/cookbooks/openldap/recipes/one.rb b/spec/data/cookbooks/openldap/recipes/one.rb new file mode 100644 index 0000000000..e1c3cff92e --- /dev/null +++ b/spec/data/cookbooks/openldap/recipes/one.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com default" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/spec/data/nodes/default.rb b/spec/data/nodes/default.rb new file mode 100644 index 0000000000..e1c3cff92e --- /dev/null +++ b/spec/data/nodes/default.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com default" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/spec/data/nodes/test.example.com.rb b/spec/data/nodes/test.example.com.rb new file mode 100644 index 0000000000..9c374395bf --- /dev/null +++ b/spec/data/nodes/test.example.com.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/spec/data/nodes/test.rb b/spec/data/nodes/test.rb index d1288779f6..d968816d60 100644 --- a/spec/data/nodes/test.rb +++ b/spec/data/nodes/test.rb @@ -1,7 +1,7 @@ ## # Nodes should have a unique name ## -name "ops1prod" +name "test.example.com short" ## # Nodes can set arbitrary arguments |