summaryrefslogtreecommitdiff
path: root/lib/chef/audit/runner.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update to rspec 3.5tm/new_world_rspecThom May2016-07-201-1/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* autofixing whitespace copsLamont Granquist2016-02-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | 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-12/+12
| | | | | | | 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.
* Restore rspec 3.4 by setting project_source_dirsjk/rspec-3.4John Keiser2015-11-171-0/+1
| | | | to be the cookbooks (see http://rspec.info/blog/2015/11/rspec-3-4-has-been-released/, Better Failure Source Detection, for more info)
* Make sure the audit mode output is reflected both in the logs and in the ↵Serdar Sutay2015-05-291-2/+4
| | | | formatter output.
* Configure serverspec correctly on windows.sersut/3234Serdar Sutay2015-04-241-0/+1
|
* Remove UNIX-specific assumptions from audit runner.Julian C. Dunn2015-03-081-2/+10
| | | | Minimally fixes #2973
* Add /lib/chef/ to backtrace exclusion patterns for audit modekyleen/audit-exclusionKyleen MacGugan2015-03-031-0/+5
| | | | | | Exclusion pattern now includes anything with /lib/chef/ only fix spacing issue
* Update DSL method name to controls_group.mcquin/control_groupClaire McQuin2015-01-151-9/+9
| | | | | | | | | | | | | | | | | | Update to use control_group. Unify wording along control_group. Unify wording along control_group. Fix typo. Enable audit mode. Update to use control_group syntax. Update for audit DSL changes. Update for audit DSL change.
* Resolving conflicsts from giant rebasetyler-ball2014-12-171-2/+0
|
* Unit tests for audit-mode in chef-solo.Claire McQuin2014-12-171-7/+2
| | | | | * Audits are disabled by default. * Also, updated spec file to use RSpec :let.
* Finishing unit and functional test coverage for audit runnertyler-ball2014-12-171-4/+1
|
* if in why_run, do not enter the audit phase - because people run why_run to ↵tyler-ball2014-12-171-1/+9
| | | | see converge statistics
* Failing an audit example will now raise an error and make chef exit with a ↵tyler-ball2014-12-171-0/+4
| | | | non-zero code
* Adding cookbook and recipe information per analytics requesttyler-ball2014-12-171-1/+1
|
* Updating to use audit syntax rather than controltyler-ball2014-12-171-1/+1
|
* Add omitted config options.Claire McQuin2014-12-171-13/+92
|
* Use a central runnerClaire McQuin2014-12-171-1/+61
|
* Add a Chef::Audit::Controls object for 'controls'Claire McQuin2014-12-171-79/+1
|
* Adding audit mode JSON formattertyler-ball2014-12-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First pass at DSL additions Renaming DSL methods to match the spec Creating our own example group class to simplify adding examples to the spec runner Adding logic for exceptions from converge phase not interfering with audit phase and vice-versa Adding error handling so saving node doesn't prevent us from running audit mode - decouples converge phase and audit phase more Updating for github comments Add setup phase to audit-mode. Refactor runner into own class. Fix typo tie things together Adding first round of formatter integration - STDOUT doc formatter Preparing for demo - using rspec documentation formatter for output instead of the proxy Add serverspec types and matchers. add rspec/its Add gems as core dependencies Updating with changes from demo Updating with @mcquin and @lamont comments Getting rid of unused method Wiring audit event proxy to send events correctly to the audit_reporter removing old pry debugging statement Removing unecessary todo Sending to correct server URL Fixing TODOs Adding uncaught error information
* Sending to correct server URLtyler-ball2014-12-171-0/+1
|
* Make sure we don't close the output_stream after running rspec.Serdar Sutay2014-12-171-1/+0
|
* Wiring audit event proxy to send events correctly to the audit_reportertyler-ball2014-12-171-4/+3
|
* Preparing for demo - using rspec documentation formatter for output instead ↵tyler-ball2014-12-171-4/+14
| | | | of the proxy
* Adding first round of formatter integration - STDOUT doc formattertyler-ball2014-12-171-3/+8
|
* Add serverspec types and matchers.Claire McQuin2014-12-171-0/+7
|
* Adding audit mode JSON formattertyler-ball2014-12-171-0/+93