summaryrefslogtreecommitdiff
path: root/spec/support/shared/integration
Commit message (Collapse)AuthorAgeFilesLines
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-023-5/+5
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-022-2/+2
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-023-3/+3
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-2/+2
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-143-26/+26
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-132-2/+2
| | | | chefstyle -a fixed 1044 occurrances
* bump up timeout for travisLamont Granquist2015-12-111-2/+2
|
* immediately_before -> beforeJohn Keiser2015-12-091-1/+1
|
* Fix testsJohn Keiser2015-12-091-0/+6
|
* Add tests for resource naming and creationJohn Keiser2015-05-131-5/+6
|
* Use expect syntax.Claire McQuin2014-10-291-5/+8
|
* Found some JSON pretty printing statements I missedtyler-ball2014-10-071-1/+1
|
* Gross hack: silence the mysterious post-test cleanup error while we investigate.Chris Doherty2014-09-151-1/+4
|
* Add org.json, members.json, invitations.json for full org downloadJohn Keiser2014-09-051-5/+7
| | | | and upload support
* Switch back to ChefZero::RSpec version 3jk/rspec_zero_3John Keiser2014-08-292-145/+5
| | | | And add some Enterprise tests (fix an acl delete issue)
* remove JSON gem usageLamont Granquist2014-08-111-1/+0
| | | | | | | | | should fully convert to using ffi-yajl there are still issues with JSON gem monkeypatching interacting with chef-zero and the spec tests so we keep the requires here for the json gem and the ffi_yajl/json_gem here. when ohai and chef-zero are fixed, we an just require ffi_yajl.
* Fix expected format of JSON errors in integration testsdanielsdeleo2014-08-101-1/+1
| | | | | | | | The format was previously not stable because chef-zero (or other test code) would `require 'json'` and undo ffi-yajl's monkey patches to the JSON gem. We would probably be better off if we can get out of the business of monkeypatching JSON or attempting to provide compatibility at all, in which case this commit could be reverted.
* Convert Chef Zero helpers to instance methodsdanielsdeleo2014-08-102-97/+229
| | | | | | | | | | | | | * Prefer instance methods to class methods for Chef Zero helpers. RSpec's design and feature set heavily favors using instance methods for test setup. This change will allow us to use let bindings and more naturally move common setup to shared contexts. * Temporarily copy ChefZero's RSpec features in-repo. master of Chef Zero is currently broken for unit testing. Copy the changes here for now so we can make progress. * Automatically generate a metadata file when using the "cookbook" helper function. This will be needed for a subsequent change that makes `name' required in metadata.
* Upgrade Chef Zero & remove PumaSeth Vargo2014-03-122-0/+43
| | | | | | | This commit upgrades Chef Zero to version 2.0.0, which removed Puma entirely. Chef no longer requires Puma at runtime, so it can be moved into the development gem group. Chef Zero 2.0 runs entirely in WEBrick and also uses less memory and a more direct threading approach.
* Add tests for start_chef_zero parameter in knifeJohn Keiser2013-10-021-1/+1
|
* Reset configuration before each testJohn Keiser2013-09-161-9/+0
|
* Use Chef::Config.reset in tests instead of save/load configJohn Keiser2013-09-132-10/+7
|
* Make chef_repo_path globally accessible across knife and chef-clientJohn Keiser2013-08-281-8/+3
|
* Add missing license to integration test files.sersut2013-06-141-0/+17
|
* Prevent integration tests from loading real configdanielsdeleo2013-06-101-0/+15
| | | | | | | | | | knife integration tests were picking up default config and therefore pointing at a chef-server other than the chef-zero test instance. This could potentially lead to data loss or manglement if the test code successfully runs against a production chef-server/org. To prevent the above, load a dummy config file with an added failsafe mechanism to ensure we've not loaded a real one.
* Restore Chef::Config after each testJohn Keiser2013-06-071-4/+4
|
* Don't load dependencies unless you run the command!John Keiser2013-06-071-2/+3
|
* Set cache dir to tmp for systems where we don't own /varJohn Keiser2013-06-071-36/+47
|
* Include Chef::Config before rspec to work with new Chef::Config detection in ↵John Keiser2013-06-071-1/+1
| | | | chef-zero
* Parallelize diff, download and uploadJohn Keiser2013-06-071-0/+4
|
* Reset config variables before each integration testjkeiser2013-06-071-1/+12
|
* Delete unused spec helpersjkeiser2013-06-071-141/+0
|
* [SPEC] Added versioned cookbooks spec for diffHo-Sheng Hsiao2013-06-071-5/+9
|
* [SPEC] Added upload and download specs with cookbook versionsHo-Sheng Hsiao2013-06-071-11/+69
| | | | - Specs assume that Chef requires name attribute in the metadata
* [SPEC] Reorganized download, upload, and diff integration specsHo-Sheng Hsiao2013-06-071-16/+101
| | | | | | - Added one_of_each_resource_in_chef_server macro - Added one_of_each_resource_in_repository macro - Reorganized specs so that adding in versioned cookbooks specs will be easier
* [SPEC] Added versioned cookbook helpers, added some upload specsHo-Sheng Hsiao2013-06-071-0/+21
|
* [COOKBOOKS] Fixed regressions when versioned_cookbooks is falseHo-Sheng Hsiao2013-06-071-2/+4
|
* Don't care about line ending differences on WindowsJohn Keiser2013-06-071-2/+7
|
* More knife upload tests, fix cookbook read not to warnjkeiser2013-06-071-5/+5
|
* Add knife upload tests; print warnings/errors on undeleteable thingsjkeiser2013-06-071-2/+14
|
* Fix bug where it thought you were in "cookbooks1" when you were really in ↵jkeiser2013-06-071-4/+9
| | | | "cookbooks123"
* Make cwd detection work when repo dir is a symlinkjkeiser2013-06-071-0/+28
|
* Capture Chef::Log warnings and errors in testsjkeiser2013-06-071-0/+12
|
* Remove old knife() test helpers, convert holdouts to new ↵jkeiser2013-06-071-47/+39
| | | | .should_fail/should_succeed
* Make deps report error when file does not existjkeiser2013-06-071-2/+52
|
* Fix deps errors, --no-recurse, add deps testsjkeiser2013-06-071-11/+19
|
* Don't display/diff empty/ignored cookbook directoriesjkeiser2013-06-071-7/+9
| | | | Also, add many chefignore tests
* Tests for empty and extra files/directoriesjkeiser2013-06-071-2/+10
|
* Add error test (missing file)jkeiser2013-06-071-3/+5
|
* Add --local tests, repository file/dir DSLjkeiser2013-06-071-25/+37
|