summaryrefslogtreecommitdiff
path: root/spec/unit/provider/git_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* CHEF-3940: Raise an error if we cannot find the userBryan McLellan2013-11-261-0/+4
| | | | We need the user to find their HOME, and we don't want to guess about the HOME.
* [CHEF-3940] ensure $HOME matches user executing `git`Seth Chisamore2013-11-261-4/+9
| | | | | | Certain versions of `git` misbehave if git configuration is inaccessible in $HOME. We need to ensure $HOME matches the user who is executing `git` not the user running Chef.
* some tests for the enable_checkout optionJohn Goulah2013-11-261-0/+15
|
* CHEF-4248: Fix Ruby 1.8 incompatibilitiesBryan McLellan2013-09-171-5/+3
|
* Fix botched rebaseJack Foy2013-07-191-2/+0
|
* Remove stray :focus from specJack Foy2013-07-191-1/+1
|
* Update specs to encompass scm timeout attributeJack Foy2013-07-191-10/+34
|
* [CHEF-955] Refactored remote url update conditionsPawel Kozlowski2013-06-181-0/+49
|
* [CHEF-955] Test fixes after rebasing the branchPawel Kozlowski2013-06-181-26/+6
| | | | Removed uneeded 'converge' commands and some log_level param assumptions from spec
* [CHEF-955] Made setup_remote_tracking_branches parameters to be requiredPawel Kozlowski2013-06-181-43/+10
| | | | | Removed uncessary complexity with checking for presence of both parameters for setup_remote_tracking_branches.
* [CHEF-955] Test refactoring and formatting cleanupPawel Kozlowski2013-06-181-68/+72
| | | | | Organized the remote branches setup tests into describe blocks. Removed some trailing spaces.
* [CHEF-955] Updated remote branch url change commandPawel Kozlowski2013-06-181-2/+2
| | | | | Using 'git config' instead of 'git remote --set-url' to assure compatibility with git < 1.7.0
* [CHEF-955] Refactored add_remotes function to use setup remote tracking branchesPawel Kozlowski2013-06-181-42/+34
|
* [CHEF-955] Added tests to document the current state of add_remote methodPawel Kozlowski2013-06-181-0/+60
|
* [CHEF-955] Added condition running remote set-url only when neccessaryPawel Kozlowski2013-06-181-2/+22
|
* [CHEF-955] Changed behavior of setup_remote_tracking_branches methodPawel Kozlowski2013-06-181-9/+86
| | | | | Refactored the method to use appropriate git command depending on the current status of git config.
* [CHEF-955] Refactored remote tracking setup tests into a separate contextPawel Kozlowski2013-06-181-19/+32
|
* [CHEF-955] Turned on remote tracking branch setup for 'origin' remote in git ↵Pawel Kozlowski2013-06-181-0/+18
| | | | provider
* remove log level special casing from git resourcedanielsdeleo2013-06-121-15/+19
| | | | | live stream is no longer enabled by default in mixin/shellout, so the special casing is now increasing noise and very annoying in tests.
* Apparently git.exe on windows only works with double quotes.sersut2013-06-051-4/+4
| | | | | | | Conflicts: lib/chef/provider/git.rb spec/unit/provider/git_spec.rb
* Use quotes instead of shellwords so that escaping is done correctly on windows.sersut2013-06-051-4/+4
| | | | | | | Conflicts: lib/chef/provider/git.rb spec/unit/provider/git_spec.rb
* CHEF-4239: Quote git repository attribute to handle spacesBryan McLellan2013-06-041-5/+5
|
* Fix unit tests for [CHEF-2750]Steffen Gebert2013-05-241-0/+2
|
* [CHEF-2420] Support annotated tags in the git providerSeth Falcon2013-05-241-5/+15
| | | | | | | | | | | | | | | | | | | | | | Annotated tags have their own SHA and also point to a SHA in the git repo. Using git ls-remote $REPO $TAG* the tagged SHAs can be identified by the '^{}' suffix appended to the corresponding tag name. When resolving the remote reference, we now search for $TAG* and use the SHA of the tagged commit (with ^{}) if it is there and otherwise use the SHA with an exact match for $TAG (to avoid capturing anything extra via the glob used to return refs). If no revision is specified, we force 'HEAD' in the git ls-remote call to constrain what can come back from the remote. Further, we protect against a badly chosen annotated tag named 'HEAD'. The functional test suite includes a git bundle of a small example repo. We found that locally cloning this bundle provided the closest simulation of `git ls-remote` behavior. YMMV depending on git version. The test suite could be extended to improve overall coverage, but does verify the desired behavior for annotated tags.
* Finished refactoring converge and updated teststylercloke2012-11-051-10/+0
| | | | 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.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+352
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!