summaryrefslogtreecommitdiff
path: root/spec/functional
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>
* Revert Handling double quotes in powershell_outMatt Wrock2016-10-051-1/+5
| | | | Signed-off-by: Matt Wrock <matt@mattwrock.com>
* Merge pull request #5381 from ↵Bryan McLellan2016-10-051-5/+1
|\ | | | | | | | | MsysTechnologiesllc/nim/double_quotes_parsing_error Handling double quotes in powershell_out
| * Raising Mixlib::ShellOut::ShellCommandFailed exceptionNimishaS2016-10-031-1/+1
| | | | | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
| * Handling double quotes. Added specsNimishaS2016-09-301-5/+1
| | | | | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* | Merge pull request #5245 from chef/jk/knife-cookbook-delete-testThom May2016-10-041-59/+48
|\ \ | | | | | | Don't let knife cookbook delete tests print to stdout
| * | Don't let knife cookbook delete tests print to stdoutjk/knife-cookbook-delete-testJohn Keiser2016-09-081-59/+48
| | |
* | | 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-227-31/+41
| | | | | | | | | | | | | | | 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).
* Merge pull request #5223 from chef/jkeiser-patch-1Lamont Granquist2016-08-221-3/+2
|\ | | | | Stop logging "SIGQUIT is not a command" in tests
| * Stop logging "SIGQUIT is not a command" in testsjkeiser-patch-1John Keiser2016-08-181-3/+2
| | | | | | This looks like a typo was introduced; we're seeing this in the logs on nodes.
* | 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-1718-96/+106
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix race where lockfile can be created but not yet acquiredJohn Keiser2016-08-171-4/+8
|
* autofixing Style/WhileUntilModifier copLamont Granquist2016-08-161-6/+2
|
* autofixing Style/SpaceBeforeSemicolon copLamont Granquist2016-08-161-1/+1
|
* autofixing Style/SpaceBeforeComment copLamont Granquist2016-08-161-1/+1
|
* autofixing Style/RedundantException copLamont Granquist2016-08-161-1/+1
|
* autofixing Style/IndentAssignment copLamont Granquist2016-08-161-1/+1
|
* Remove race conditions from run_lock_specjk/run_lock_spec_raceJohn Keiser2016-08-051-10/+17
|
* Fix Powershell tests to acknowledge they sometimes return SI fieldJohn Keiser2016-08-031-2/+2
|
* 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-273-5/+5
| | | | | | | | | | | - 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
* Merge pull request #5035 from chef/choco_fixMatt Wrock2016-06-174-0/+0
|\ | | | | add an exit 0 to test choco packages so they dont break on 2008r2 with choco 0.9.10
| * add an exit 0 to test choco packages so they dont break on 2008r2 with choco ↵Matt Wrock2016-06-174-0/+0
| | | | | | | | 0.9.10
* | 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