Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove hashrocket syntaxlcg/remove-hashrockets | Lamont Granquist | 2018-06-25 | 2 | -37/+37 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | add sensitive feature | dheerajd-msys | 2018-06-15 | 1 | -6/+6 |
| | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com> | ||||
* | [MSYS-629] Added username,password validation for elavated option (#151) | Nimisha Sharad | 2017-08-09 | 1 | -3/+13 |
| | | | | | | * Added username,password validation for elavated option Signed-off-by: nimisha <nimisha.sharad@clogeny.com> | ||||
* | Update error messages to indicate user who lacks privilege on Windows | Bryan McLellan | 2017-07-19 | 1 | -1/+1 |
| | | | | | | | In some cases the user running mixlib-shellout needs additional privileges, in other cases the user we're trying to run the process as needs them. Signed-off-by: Bryan McLellan <btm@loftninjas.org> | ||||
* | Launch process with elevated token | NimishaS | 2017-07-19 | 1 | -0/+8 |
| | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com> | ||||
* | spec cleanup and some light refactoringlcg/cleanup2 | Lamont Granquist | 2017-02-01 | 1 | -176/+131 |
| | | | | | | | | | | | | | | | - mostly cleans up the windows specs so its easier to read the API out of them and removes some of the very brittle internal testing - refactors the 'which' logic a bit. trying to converge towards the chef/chef version and eventually extracting common code so that do not have to maintain 10+ slightly different copies everywhere. - adds the Mixlib::ShellOut::EmptyWindowsCommand exception because letting CreateProcessW throw a generic SystemCallError is pretty much useless to everyone. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | remove largely useless Utils class | Lamont Granquist | 2017-01-27 | 2 | -12/+11 |
| | | | | | | | | its just a collection of private methods, they should be private methods retain a method in the class that was being used externally. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Resolve most chefstyle warnings | Tim Smith | 2016-10-07 | 3 | -380/+381 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Require Ruby 2.1+deprecate | Tim Smith | 2016-08-22 | 2 | -14/+1 |
| | | | | | | Just removes some 1.9 logic from testing. Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | add logging message if attempting to kill critical processsmurawski/agressive_termination | Steven Murawski | 2016-06-06 | 1 | -5/+7 |
| | |||||
* | Keep `kill_process_tree` from killing protected system processes. | Steven Murawski | 2016-05-24 | 1 | -3/+43 |
| | |||||
* | convert environment hash keys to strings | Evan Tschuy | 2015-11-10 | 1 | -0/+8 |
| | | | | | | | by converting the hash keys to strings, we can use symbols in our environment blocks: environment {FOO: 'bar', SHELL: 'zsh'} | ||||
* | improve the test to more accurately detrermine if child process is killed | Matt Wrock | 2015-10-20 | 1 | -8/+5 |
| | |||||
* | kill all windows child processes when the command times out | Matt Wrock | 2015-09-24 | 1 | -0/+13 |
| | |||||
* | make tests pass when run by a domain joined user | Matt Wrock | 2015-09-24 | 1 | -2/+2 |
| | |||||
* | prevent shellout from attempting to execute a directory on windows | Matt Wrock | 2015-09-11 | 1 | -0/+2 |
| | |||||
* | have failing test | Matt Wrock | 2015-09-11 | 1 | -0/+29 |
| | |||||
* | Added comment for bugjdm/test | Jay Mundrawala | 2015-08-26 | 1 | -0/+10 |
| | |||||
* | Don't use presence of fd to check if fd's were inherited | Jay Mundrawala | 2015-08-26 | 1 | -2/+4 |
| | | | | | | | | | This is breaking on windows with ruby 2.0.0p645. The issue seems to be that there is something at the fd, but it's not the file descriptor from the parent. Instead, we're now testing that both the fd exists and the file contains the contents that were written | ||||
* | force expect syntax | Lamont Granquist | 2015-05-15 | 1 | -0/+3 |
| | |||||
* | rspec3ification | Lamont Granquist | 2015-05-15 | 3 | -283/+350 |
| | |||||
* | Merge pull request #94 from chef/lcg/no-getpgrp | Lamont Granquist | 2015-05-15 | 1 | -6/+6 |
|\ | | | | | remove getpgrp back to setsid | ||||
| * | remove getpgrp back to setsidlcg/no-getpgrp | Lamont Granquist | 2015-05-15 | 1 | -6/+6 |
| | | |||||
* | | Fix 2 ruby warnings for uninitialized variables | danielsdeleo | 2015-05-15 | 1 | -0/+3 |
|/ | |||||
* | Merge pull request #78 from BackSlasher/add-login | Lamont Granquist | 2015-05-14 | 1 | -1/+83 |
|\ | | | | | with_logon now simulates login in unix | ||||
| * | Added TODO for next major | Nitz | 2015-02-15 | 1 | -0/+3 |
| | | |||||
| * | Option "login" now simulates login in unix | Nitz | 2015-02-15 | 1 | -1/+80 |
| | | | | | | | | | | | | | | | | | | Added: * Secondary groups from etc files * Set environment variables like `su` would * Set primary group to user's primary group if no other group specified All only if `login` is set | ||||
* | | Change mixlib spec test to pass on windows by invoking powershell explicitly.ksubrama/test_fix | Kartik Null Cating-Subramanian | 2015-04-21 | 1 | -1/+1 |
| | | |||||
* | | Add some test coverage for timeouts on windows | Jay Mundrawala | 2014-12-18 | 1 | -99/+115 |
| | | |||||
* | | The process no longer inherit LC_ALL from the parent. Update spec to ↵ | Jay Mundrawala | 2014-12-17 | 1 | -8/+3 |
|/ | | | | | | | | | refelect that. This fixes a spec that was broken on Windows by 767ea4fc19cb29a55a81a55d1a13643ae3108f4c from PR https://github.com/opscode/mixlib-shellout/pull/58 It seems the Unix spec was updated to reflect this change, but the Windows was not | ||||
* | Merge pull request #57 from ClogenyTechnologies/kd/processgrp-fix | lamont-granquist | 2014-09-11 | 1 | -11/+14 |
|\ | | | | | aix getpgid fails when called from parent and parent and child have different session | ||||
| * | removed emulated Errno::ESRCH | kaustubh-d | 2014-09-10 | 1 | -10/+11 |
| | | |||||
| * | raise Errno::ESRCH in spec for aix | kaustubh-d | 2014-08-27 | 1 | -1/+1 |
| | | |||||
| * | fix getpgid issue on aix | kaustubh-d | 2014-08-27 | 1 | -2/+4 |
| | | |||||
* | | control ENV['LC_ALL'] global better | Lamont Granquist | 2014-09-03 | 1 | -10/+9 |
| | | | | | | | | fixes travis failure that did not fail on my desktop | ||||
* | | remove LC_ALL default environment variable | Lamont Granquist | 2014-08-28 | 1 | -13/+8 |
| | | | | | | | | now that we no longer support ruby 1.8.7 its time to retire this | ||||
* | | aix does not allow resetting real uid once the euid is changed to non-root. | kaustubh-d | 2014-08-27 | 3 | -0/+27 |
| | | |||||
* | | remove #clean_parent_file_descriptors which is not required now. | kaustubh-d | 2014-08-25 | 1 | -14/+0 |
|/ | |||||
* | Simplify live_stream vs live_stdout vs live_stderr based on PR comments | Max Lincoln | 2014-07-17 | 1 | -22/+34 |
| | |||||
* | Support separate live stream for stderr | Max Lincoln | 2014-07-17 | 1 | -4/+78 |
| | |||||
* | Correct spelling in spec files | Tyler Cipriani | 2014-05-16 | 1 | -5/+5 |
| | |||||
* | Merge pull request #26 from akshaykarle/master | Serdar Sutay | 2014-05-13 | 1 | -2/+7 |
|\ | | | | | [#MIXLIB-19] Copy stderr to live_stream along with stdout of the subprocess | ||||
| * | Fix a broken spec | Akshay Karle | 2014-01-06 | 1 | -4/+3 |
| | | |||||
| * | Add a spec for showing stderr to live_stream. | Akshay Karle | 2014-01-06 | 1 | -0/+6 |
| | | |||||
* | | marking some unix_only tests unix_only | Lamont Granquist | 2014-04-08 | 1 | -2/+2 |
| | | |||||
* | | [MIXLIB-6] Add comment describing why the test was changed, per Dan DeLeo. | Julian C. Dunn | 2014-04-01 | 1 | -0/+2 |
| | | |||||
* | | [MIXLIB-6] Use conditional to determine whether to use /tmp or /bin as a cwd ↵ | Julian C. Dunn | 2014-04-01 | 1 | -1/+1 |
| | | | | | | | | for the test. | ||||
* | | [MIXLIB-6] Fix test due to /bin being a symlink on Fedora. Use /tmp instead | Julian C. Dunn | 2014-04-01 | 1 | -1/+1 |
| | | |||||
* | | Exclude ESRCH test from windows | danielsdeleo | 2014-03-31 | 1 | -1/+1 |
| | | |||||
* | | Handle ESRCH when getting pgid of a zombie on OS X | danielsdeleo | 2014-03-31 | 1 | -0/+19 |
| | |