summaryrefslogtreecommitdiff
path: root/spec/unit/provider/subversion_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Chef-16 git provider fixesLamont Granquist2020-04-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | The git provider now no longer checks out to a "deploy" branch by default and now checks out to the branch (with a remote upstream) or else checks out to a detatched head. The prior behavior can be restored by using "checkout branch 'deploy'". This also removes the SCM resource base class and replaces it with a resource partial and does some internal reorganization. It also introduces the RecipeDSLHelper for better functional tests and cleans up the functional tests of the git provider. Properties that were only ever implemented on the git provider were removed from the subversion provider where they had been inherited from the base class incorrectly. Some additional env var handling was added to the subversion handler in the process of sorting out the common properties, including HOME handling for alternative users. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-3/+3
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix 4 copsLamont Granquist2019-07-051-4/+8
| | | | | | | | | | | | | | - Layout/MultilineMethodCallBraceLayout - Layout/ClosingParenthesisIndentation - Layout/IndentFirstArgument EnforcedStyle: consistent - Layout/BlockEndNewline the first of these autocorrected to horrible looking code which exposed that we really needed the other three as well, which also cleaned up a bunch of other terrible looking code. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update wording in resource specs for attributes -> propertiesTim Smith2018-07-101-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Layout/DotPositionLamont Granquist2018-07-021-8/+8
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-9/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix remaining specs for popen4 removalLamont Granquist2017-04-011-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Unset http[s]_proxy in the subversion specStefano Rivera2016-11-181-0/+9
| | | | | | So it doesn't alter generated subversion commands. Signed-off-by: Stefano Rivera <stefanor@debian.org>
* Subversion provider should respect proxiesSalim Alam2016-03-221-14/+68
|
* convert MultilineOperationIndentation style to "indented"Lamont Granquist2016-02-121-18/+18
| | | | this looks nicer.
* autofixing whitespace copsLamont Granquist2016-02-051-15/+14
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | 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-021-1/+1
| | | 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"
* Use double quotes by defaultThom May2016-01-141-17/+17
| | | | | | | 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.
* Replace output_of_command with shell_out! in subversion providerSimon Detheridge2015-08-241-31/+50
| | | | output_of_command doesn't work properly on Windows (see chef/chef#1533)
* Subversion failes with "option ':command' is not a valid option for ↵Nitz2014-12-141-5/+5
| | | | | | | Mixlib::ShellOut" Improper use of `shell_out!`, which uses Mixlib Fixed #2633
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-80/+80
| | | | mechanically generated patch using transpec 2.3.7 gem
* spec and code fixes for subversion providerLamont Granquist2014-09-081-6/+5
|
* s/mock\(/double(/gLamont Granquist2014-01-291-7/+7
|
* s/stub!/stub/gLamont Granquist2014-01-291-29/+29
| | | | fix deprecation warnings
* Normalize whitespace on all filesSeth Vargo2013-09-261-1/+1
|
* 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-301-0/+281
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!