summaryrefslogtreecommitdiff
path: root/spec/unit/provider/user_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix mistake I made in a specTim Smith2019-02-191-1/+1
| | | | | | These needed to not match for this spec to work as expected Signed-off-by: Tim Smith <tsmith@chef.io>
* Convert the user resource to use the resource DSLTim Smith2019-02-191-24/+24
| | | | | | This is one of the last ones that needed to be updated for the resource DSL. This gets us quite a bit of resource inspector goodness. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update wording in resource specs for attributes -> propertiesTim Smith2018-07-101-13/+13
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove a whole bunch more stubbed property stuff.Noah Kantrowitz2017-04-111-1/+1
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* user provider cleanupLamont Granquist2016-12-221-21/+19
| | | | | | | | * removes more run_command * converts to shell_out_compact * some other misc style cleanup Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Refactored Chef::Provider::User to short circuit and provider better ↵Geoffrey Hichborn2016-10-131-0/+6
| | | | | | comparison of home paths to fix Issue #5444 Signed-off-by: Geoffrey Hichborn <geoff@socialcast.com>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-2/+2
|
* auto fixing some rubocopsLamont Granquist2016-02-091-2/+2
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-4/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | 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-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-15/+15
| | | | | | | 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-131-2/+2
| | | | chefstyle -a fixed 1044 occurrances
* Merge pull request #3119 from cmluciano/cml/bug1586Phil Dibowitz2015-10-201-0/+9
|\ | | | | Fix condition of removing a group before user error.
| * Add recommended test from btmChristopher M. Luciano2015-10-121-0/+9
| |
* | Purge pending specscleanup-pendingdanielsdeleo2015-05-231-3/+3
|/ | | | RSpec isn't a bug database
* Provider::User: remove gecos#force_encoding existence check (ruby 1.8 ↵Xabier de Zuazo2015-01-271-1/+1
| | | | specific, issue #2497)
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-72/+72
| | | | mechanically generated patch using transpec 2.3.7 gem
* s/mock\(/double(/gLamont Granquist2014-01-291-8/+8
|
* s/stub!/stub/gLamont Granquist2014-01-291-26/+26
| | | | fix deprecation warnings
* [CHEF-4842] Fix comparison of user resources with non-ASCII commentsTobias Schmidt2013-12-041-0/+6
| | | | | | | | | | | | | | | | | In case a comment of a user resource includes non-ASCII characters, the comparison whether the resource was changed will always fail. Therefore, such user resources will get modified during every chef-client run. Example: user "marci" do comment "Márton Salomváry" # ... end So far, this resulted in a comparision of "M\xC3\xA1rton Salomv\xC3\xA1ry" with "Márton Salomváry" which fails, unless the encoding gets changed prior to the comparision.
* Normalize whitespace on all filesSeth Vargo2013-09-261-17/+17
|
* User provider does not update user when uid/gid are stringsEric Saxby2013-09-241-29/+21
| | | | | | Fixes [CHEF-4200]. If the user provider was sent UID as a string, comparing to the already-created user would always think that the user had changed.
* CHEF-4344: Clean up instances of 'the the' typo.Bryan McLellan2013-07-261-1/+1
|
* Finished refactoring converge and updated teststylercloke2012-11-051-16/+7
| | | | 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/+477
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!