summaryrefslogtreecommitdiff
path: root/spec/functional/resource
Commit message (Collapse)AuthorAgeFilesLines
* run the func tests on fedora, suseleap and others (#5519)Lamont Granquist2016-11-071-10/+7
| | | | | scientific linux, oracle, etc, etc... Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Mock users in functional group testsCOOL-597/use-all-for-assertionTom Duffield2016-10-211-0/+1
| | | | | | | Because `Provider::Group::Suse` expects users to exist, we need to mock out the `Etc` call that checks for our non-existent spec users. Signed-off-by: Tom Duffield <tom@chef.io>
* Update useradd test to account for new SUSE 12.1 behaviorTom Duffield2016-10-201-2/+4
| | | | | | | The `usermod` binary in SUSE 12.1 no longer throws an error if you attempt to unlock a user account that has no password. Signed-off-by: Tom Duffield <tom@chef.io>
* Allow deletion of registry_key without the need for users to pass type and ↵aliasgar162016-09-301-4/+110
| | | | | | data key in values hash. Signed-off-by: aliasgar16 <aliasgar.batterywala@msystechnologies.com>
* Fix for ifconfig resource's functional spec. (#5325)Aliasgar162016-09-221-0/+6
| | | | | | * Modified ifconfig resource's functional spec to handle persistent stateless network interface names on Ubuntu platform. * Implemented the review comments.
* clean up users left from terminated builds and use explicid UIDs and GIDsMatt Wrock2016-09-191-3/+11
|
* Updated functional spec as per review commentdheerajd-msys2016-09-141-1/+2
|
* Added functional specs for registry keydheerajd-msys2016-09-131-0/+9
|
* Merge pull request #5234 from ↵Bryan McLellan2016-09-071-0/+34
|\ | | | | | | | | MsysTechnologiesllc/ali/allow_symlink_directory_delete_on_windows Added code to handle deletion of directories on Windows that are symlinks.
| * Added functional RSpecs for the fix added here for symlink issue on windows.aliasgar162016-09-071-0/+34
| |
* | remove homedirs not owned by userLamont Granquist2016-08-241-1/+1
| | | | | | | | | | | | | | userdel -r will not remove a homedir not owned by the user, have to manually rm -rf it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | remove homedir in beforelcg/rewrite-linux-user-providerLamont Granquist2016-08-231-0/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add func spec for default and fix unit specsLamont Granquist2016-08-231-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add func test that manage_home is false by defaultLamont Granquist2016-08-231-0/+8
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix the useradd test filterslcg/fix-useradd-test-filtersLamont Granquist2016-08-231-0/+12
|/ | | | | | | try to document it a bit better so i don't accidentally delete it again. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixed CHEF-2205 so fix the func testlcg/fix-rhel-func-testsLamont Granquist2016-08-221-9/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* i think i need a napLamont Granquist2016-08-221-1/+1
|
* be less cleverLamont Granquist2016-08-221-30/+25
| | | | instance_eval ran into namespace issues
* try to fix el breaksLamont Granquist2016-08-221-1/+5
| | | | | | | the default behavior of the remove action changed to have manage_home set toi true to match the :create action Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* also fix typo in windowsLamont Granquist2016-08-221-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix typo in mac testsLamont Granquist2016-08-221-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* no need for provider-resolver hereLamont Granquist2016-08-222-2/+2
| | | | | | mac always gets dscl, windows always gets windows Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* use provider resolver to get right resourceLamont Granquist2016-08-221-33/+30
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix TinyServer races.jk/tinyserver-raceJohn Keiser2016-08-221-7/+16
| | | | | | | | | | | | | | | 1. Wait for the start callback rather than the do block, as it happens later. This prevents us from getting into many conditions where the start returns before the server is fully initialized, where if stop() is called too soon after start returns, it would cause exceptions. 2. Wait for the thread to finish completely 3. Use Thread.current.abort_on_exception` to show the actual listen errors, so that problems like this can be diagnosed. 4. Use :each to start and stop TinyServer so that race conditions like this are exposed earlier and more often (this will let us rid ourselves of them more quickly). 5. Use WEBrick::HTTPServer directly, which gets rid of the need for the complicated trap workaround (rack is the one that traps).
* user provider manage_home behavior and refactorLamont Granquist2016-08-191-1/+7
| | | | | | | | | split out the user provider into 1:1 resources. fix the behavior of the linux user provider to implement manage_home behavior correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-1711-68/+75
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing Style/RedundantException copLamont Granquist2016-08-161-1/+1
|
* autofixing Style/IndentAssignment copLamont Granquist2016-08-161-1/+1
|
* Fix Ruby 2.3 `symlink?` when symlink points to nonexistent fileJohn Keiser2016-08-031-6/+1
|
* Fix handling of empty string values for cron attrstm/empty_cron_attributesThom May2016-07-291-1/+1
| | | | | This is a rebase and clean up of #311 Signed-off-by: Thom May <thom@chef.io>
* Add failing functional tests for empty cron attrsThom May2016-07-261-0/+7
| | | | Signed-off-by: Thom May <thom@chef.io>
* Attributes v1.1 changeslcg/attributes-v1.1Lamont Granquist2016-06-272-4/+4
| | | | | | | | | | | - fixes *_unless behavior and set_unless_value_present hack from Chef 12 - simplifies rm_* code - introduces functional read/write/unlink/exist? API - deprecates method_missing access to attributes for Chef 13 - deprecates set/set_unless aliases for Chef 14 - removes MultiMash mess that I wrote for Chef 13 https://github.com/chef/chef/pull/5029 for more details
* skip and not pend failing dsc_script funcional testskip_dscMatt Wrock2016-06-171-1/+1
|
* Merge pull request #4998 from chef/smurawski/pend_dsc_script_credential_testSteven Murawski2016-06-061-0/+1
|\ | | | | Skip `ps_credential` test for `dsc_script` until proper test cert
| * skip the ps_credential test of dsc_script until we can get the right test certSteven Murawski2016-06-061-0/+1
| |
* | fixes #4968 and only retrieves the latest version of packages from chocolateychoco_arMatt Wrock2016-05-271-5/+0
|/
* Too much log output and unnecessary warnings! Suppress that shit.Kartik Null Cating-Subramanian2016-04-252-7/+5
|
* update to latest chefstyle - fix casecmptm/fix_casecmpThom May2016-04-201-1/+1
|
* Update specssalam/group-fixSalim Alam2016-04-071-4/+4
|
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-4/+4
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* Merge pull request #4617 from chef/lcg/chefstyle-perfLamont Granquist2016-03-042-2/+2
|\ | | | | Autofixing new Perf cops in 0.37.2
| * Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-232-2/+2
| | | | | | | | | | | | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* | better chef+ruby rspec constraintsLamont Granquist2016-03-031-2/+2
| | | | | | | | | | | | | | | | lets us use Gem::Dependency constraints directly as rspec constraints for matching Chef::Version and RUBY_VERSION. copies some magic sauce from bundler that does something similar
* | Revert "Merge pull request #4465 from ↵tm/revert_4465Thom May2016-03-021-3/+0
| | | | | | | | | | | | | | artursitarski/change-shell-for-locked-user" This reverts commit 94494e761763b877c3ef3b52eee9ac9df2186340, reversing changes made to a95a87d50c9e5af2fbd583afcf972880656d1a4b.
* | if no module name is found for a valid dsc resource default to ↵dscMatt Wrock2016-02-291-1/+1
| | | | | | | | PSDesiredStateConfiguration
* | Exclude git from the fips acceptance testsJay Mundrawala2016-02-252-2/+2
| | | | | | | | We don't have git on those boxes
* | enable HTTP winrm listener for dsc functional testsdsc_listenerMatt Wrock2016-02-231-0/+10
|/
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-193-3/+3
| | | | no enforced trailing comma on arguments...
* deal with 0.37.2 renamed copsLamont Granquist2016-02-182-5/+5
| | | | | | | | | | | | | | | 252 Style/TrailingCommaInLiteral 84 Style/TrailingCommaInArguments 15 Style/SpaceAroundKeyword -- 351 Total We already dealt with SpaceAroundKeyword under its old name SpaceBeforeModifierKeyword, it looks like it got stricter about spaces after keywords. TrailingComma also got split, and it looks like the TrailingCommaInArguments behavior is new?
* skip uid check for aix in user add functional testsMatt Wrock2016-02-181-16/+9
|