summaryrefslogtreecommitdiff
path: root/spec/functional/run_lock_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* add commentLamont Granquist2020-03-051-0/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix file descriptor leak in our testsLamont Granquist2020-03-051-1/+5
| | | | | | | | | | Mac has a default max fd of 256 which this can pretty much blow out by leaking PIPE objects which last until the garbage collector destroys the instances, this forces the pipes to be closed when the stop function is called here. Cuts down on over 200 leaking file descriptors from this test which leak into the subsequent tests. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use require_relative within the specsrequire_relativeTim Smith2020-02-181-1/+1
| | | | | | Simplify how we include the spec_helper via the new cookstyle rule. Signed-off-by: Tim Smith <tsmith@chef.io>
* Style/NegatedIfLamont Granquist2019-07-051-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+1
| | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-3/+3
| | | | 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
|
* Remove race conditions from run_lock_specjk/run_lock_spec_raceJohn Keiser2016-08-051-10/+17
|
* Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* Merge pull request #4541 from chef/lcg/chefstyle-batchLamont Granquist2016-02-111-6/+6
|\ | | | | fix a batch of cops
| * auto fixing some rubocopsLamont Granquist2016-02-091-6/+6
| | | | | | | | | | | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* | Respect TMPDIR in functional testsJohn Keiser2016-02-101-1/+1
|/
* autofixing whitespace copsLamont Granquist2016-02-051-4/+5
| | | | | | | | | | | | | | | | | | | | | | 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"
* 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-6/+6
| | | | | | | 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.
* more rubocop fixeslcg/more-rubocop-lintLamont Granquist2016-01-121-2/+2
| | | | | | | | | | | fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
* Simplify kill loop with WNOHANGjk/print-raceJohn Keiser2015-09-291-10/+3
|
* Change puts to print with \n for atomicityJohn Keiser2015-09-291-7/+7
|
* Add some insurance against timeouts failing (10s room, kill loop)John Keiser2015-09-291-5/+14
|
* Add tests for things that have created the lockfile but not yet acquired the ↵John Keiser2015-09-291-21/+79
| | | | lock
* Print what happened (and in what order) if test failsJohn Keiser2015-09-291-130/+89
|
* Make race condition tests explicitjk/run-lockJohn Keiser2015-09-251-100/+260
| | | | Fixes issue where tests expected a file to have a PID, but sometimes it would race and be empty
* Update to RSpec 3.Claire McQuin2014-10-291-9/+9
|
* Fix / Mark volatile the transient failures on Solaris.sersut2014-03-281-1/+1
|
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-1/+1
|
* Windows support for Chef::Runlock.sersut2013-10-141-1/+1
| | | | This ensures that if someone does a manual chef-client run, it doesn't fail if the chef is configured as a service on windows and if there is a chef-client run happening right now. The newly started run will wait for the old run to finish and continue after it.
* More test cases for run_lock to cover the functionality used during daemonizing.sersut2013-10-091-2/+46
|
* Use Chef::Config defaults for lockfile defaultJohn Keiser2013-09-161-2/+1
|
* add test, bitwise arithm, note about 1.8/1.9/2.0 differencesLamont Granquist2013-06-201-0/+5
|
* remove setup message, it's a race either waydanielsdeleo2013-02-121-2/+0
|
* fix race in test setupdanielsdeleo2013-02-121-1/+3
| | | | | | the heart of the test is confirming that the last 2 messages are p1 releasing lock and then p2 acquiring it. The two messages confirm that the test case is set up correctly.
* set sync=true on IPC in run lock testsdanielsdeleo2013-02-121-3/+16
|
* ensure writes are flushed in run lock IPCdanielsdeleo2013-02-121-0/+5
|
* add additional synchronization to run lock specdanielsdeleo2013-02-071-31/+145
|
* Ruby 1.8 has no 'Random', use Kernel rand/sranddanielsdeleo2012-11-191-1/+4
|
* [CHEF-3617] create full path of run lock fileSeth Chisamore2012-11-171-2/+15
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+90
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!