summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* replace thin w/ webrick for func. test serverdanielsdeleo2012-11-196-20/+34
|
* [CHEF-3617] create full path of run lock fileSeth Chisamore2012-11-171-2/+15
|
* [CHEF-3616] add cipher field to edbi metadatadanielsdeleo2012-11-161-0/+11
| | | | | | Adds "cipher" to the metadata fields for encrypted data bag items. This enables user-configurable ciphers in the future. Cipher is still hard-coded to aes-256-cbc for now.
* [CHEF-3392] remove unused `from_plain_hash` methoddanielsdeleo2012-11-151-4/+0
|
* [CHEF-3392] JSON serialize encrypted data bags, use random IVdanielsdeleo2012-11-144-6/+129
| | | | | | | * Use JSON instead of YAML to serialize encrypted data bag values before encrypting. * Use a random IV for each encrypted value for resilience against some types of crypto attacks. Fixes CHEF-3480.
* [CHEF-3604] why run assertions should pass on custom service commandsSeth Chisamore2012-11-131-0/+10
|
* [CHEF-3603] add init_command attribute to service resourceSeth Chisamore2012-11-132-0/+24
|
* Wire "force" default and override into nodedanielsdeleo2012-11-091-0/+12
| | | | | | The desired behavior works without this match because of method_missing on Chef::Node, but this makes the behavior tested, documented, and explicit.
* Add "force" level precedence to Node::Attributedanielsdeleo2012-11-091-0/+18
|
* [CHEF-2903] load attribute files in run_list orderdanielsdeleo2012-11-0723-0/+66
|
* refactor unix securable tests: make updated status explicitdanielsdeleo2012-11-061-24/+57
| | | | | splits tests for updated_by_last_action to their own examples so it's more explicit in the code and specdoc.
* assert starting state, remove atime checksdanielsdeleo2012-11-064-10/+40
| | | | | Chef will nearly always change the atime when inspecting the current state of the file; previous tests were passing by accident.
* verify updated/not updated for directory-like resourcesdanielsdeleo2012-11-061-23/+75
|
* verify updated/not updated for file-like resourcesdanielsdeleo2012-11-062-74/+183
|
* modify remote_directory tests to verify updated/not_updated statusdanielsdeleo2012-11-061-35/+136
|
* [CHEF-3564] Added a remote_directory testtylercloke2012-11-051-0/+15
| | | | that ensures that the new_resouce.updated_by_last_action state is properly captured when the dir contents change and when they don't.
* Finished refactoring converge and updated teststylercloke2012-11-0512-104/+12
| | | | so that converge and converge! are no longer a method in the provider and why_run, respectively. There is instead set_updated_status in provider. Everything is now converged in why_run's add_action, so neither of the converge methods should ever need to be called. Updated tests to reflect this. Removed all calls to converge, and replaced with set_updated_status only for tests that are looking at the update status of a provider, where the converge behavior has been mocked out.
* Hack out immediate converge actions to prove conceptdanielsdeleo2012-11-051-0/+3
|
* [OC-4668] fix file rm in test teardown for ruby 1.8danielsdeleo2012-11-051-1/+1
|
* [OC-4668] fix constant scoping ::File vs. Filedanielsdeleo2012-11-051-2/+2
|
* [OC-4668] move ohai into before(:all) in deploy_rev testdanielsdeleo2012-11-051-3/+5
|
* [OC-4668] cleanup revision deploy testsdanielsdeleo2012-11-051-26/+92
| | | | | | | | | * Use a single file to track order of operations between different steps in the tests * Use symbolic names when tracking order of operations so it's more human readable * Mark tests as unix_only, deploy doesn't support windows * Add tests that run a "migration"
* [OC-4668] explain expectation on restart testdanielsdeleo2012-11-051-0/+5
|
* [OC-4668] restore old file cache path after testsdanielsdeleo2012-11-051-0/+1
|
* [OC-4668] add functional tests for deploy_revisiondanielsdeleo2012-11-053-0/+425
|
* [CHEF-3499] add platform introspection to Nodedanielsdeleo2012-11-021-3/+2
|
* [CHEF-3499] convert node specs to use let() {}danielsdeleo2012-11-021-221/+222
|
* [CHEF-3499] move platform introspection tests into shared examplesdanielsdeleo2012-11-022-150/+170
|
* fix functional specs for lazy cookbook file loadingdanielsdeleo2012-11-021-1/+3
|
* Fix "platfrom" filename typodanielsdeleo2012-11-021-0/+0
|
* Move func test from f0db9a to the right spotBryan McLellan2012-11-021-0/+51
| | | | | The merge from 10-stable left this out on a limb because of the directory structure change.
* [CHEF-2936] ensure all default and override attrs go in node jsondanielsdeleo2012-11-022-2/+43
| | | | | | | | | | default and override attributes are now split into components, so all the components need to be merged together to generate the serialized representation of a node. Unfortunately, this means that serializing a node is now lossy because the information about which component default and override attributes belong to is lost. In practice, this is not a major issue, since automatic, override, and default attributes are cleared by chef for each run.
* [CHEF-2936] apply attributes at run list expansiondanielsdeleo2012-11-021-1/+29
| | | | | | Role and environment default/override attributes are now set on the node at run_list expansion time, using the appropriate new attribute components on Node::Attribute.
* [CHEF-2936] add role and environment components to Node::Attributedanielsdeleo2012-11-021-0/+38
| | | | | | | | | I reformatted Chef::Node::Attribute because the indentation was busted. The actual code change is that Attribute now has components for role_default, env_default, role_override, and env_override, and merges them according to the precedence given in the documentation. These new components are not yet wired in to Chef::Node, however.
* Fix syntax and force_encoding for 1.8danielsdeleo2012-10-311-1/+1
|
* [OC-3553] remove deprecated #rest_request and associated testsdanielsdeleo2012-10-311-190/+99
|
* [OC-3553] convert http_request provider to non-deprecated APIsdanielsdeleo2012-10-311-69/+28
|
* [OC-3553] add 304 NotModified support to raw_http_requestdanielsdeleo2012-10-311-0/+9
| | | | | | 304 support was previously in #run_request, which is deprecated and going away. To support If-Modified-Since in the http_request resource, we need to add support for 304 to the api we're keeping.
* Merge branch '10-stable'Bryan McLellan2012-10-306-138/+170
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: chef-expander/lib/chef/expander/version.rb chef-server-api/lib/chef-server-api/version.rb chef-server-webui/lib/chef-server-webui/version.rb chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef/lib/chef/node/attribute.rb lib/chef/node.rb
* | fight transient jenkins failures with rspec `at_least`Seth Chisamore2012-10-301-1/+1
| | | | | | Repeat after me: I HATE MOCKING.
* | [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-30436-0/+52330
|/ | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-0890-5816/+0
| | | | all with proper deps
* merging in fujins service resource and providerAdam Jacob2008-10-021-0/+100
|\
| * Pattern should default to service_name, updated specAJ Christensen2008-10-011-1/+5
| |
| * Init provider for service and relevant work in other providers. Updated ↵AJ Christensen2008-10-011-5/+5
| | | | | | | | resource spec a little.
| * Specifications for the Service resource, and necessary adjustments to the ↵AJ Christensen2008-10-011-0/+96
| | | | | | | | actual code to make specs pass.
* | Adding Chef::FileCache - a simpler replacement for FileStoreAdam Jacob2008-09-301-0/+124
|/
* adding script specAdam Jacob2008-09-221-0/+50
|
* Adding default node configAdam Jacob2008-09-221-0/+23
|
* Adding specs for new resource types, fixes to node, mixin::templateAdam Jacob2008-09-0815-338/+733
|