summaryrefslogtreecommitdiff
path: root/spec/unit/audit
Commit message (Collapse)AuthorAgeFilesLines
* deal with 0.37.2 renamed copsLamont Granquist2016-02-181-1/+1
| | | | | | | | | | | | | | | 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?
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-3/+3
|
* auto fixing some rubocopsLamont Granquist2016-02-091-3/+3
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-054-30/+28
| | | | | | | | | | | | | | | | | | | | | | 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-024-4/+4
| | | 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-026-6/+6
| | | 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-146-20/+20
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-133-8/+8
| | | | chefstyle -a fixed 1044 occurrances
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-8/+1
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* adding unit testsDavida Marion2015-05-291-0/+20
|
* Make sure the audit mode output is reflected both in the logs and in the ↵Serdar Sutay2015-05-293-6/+28
| | | | formatter output.
* Give captured exception a meaningful nameClaire McQuin2015-05-271-2/+2
|
* remove configuration optionClaire McQuin2015-05-271-37/+13
|
* Save and report audit phase failure on run_completed or run_failed.Claire McQuin2015-05-271-10/+78
|
* Fix testJulian C. Dunn2015-03-111-1/+1
|
* fix rspec test to use rspec best practicesKyleen MacGugan2015-03-031-1/+1
|
* Add /lib/chef/ to backtrace exclusion patterns for audit modekyleen/audit-exclusionKyleen MacGugan2015-03-031-0/+10
| | | | | | Exclusion pattern now includes anything with /lib/chef/ only fix spacing issue
* Merge pull request #2758 from chef/mcquin/control_groupSerdar Sutay2015-02-112-6/+6
|\ | | | | Change audit DSL method controls to control_group.
| * Update DSL method name to controls_group.mcquin/control_groupClaire McQuin2015-01-152-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fixing Rspec 3.2 update. We were overriding private APIs which changed.tball/rspec32-fixtyler-ball2015-02-041-2/+4
|/
* Unit and functional tests for spec_formattertyler-ball2014-12-171-0/+29
|
* Fixing unit test adding Serverspec DSLtyler-ball2014-12-171-12/+21
|
* Finishing unit and functional test coverage for audit runnertyler-ball2014-12-171-0/+124
|
* Adding simple integration test for audit mode outputtyler-ball2014-12-173-0/+57
|
* Adding test for recipe DSL audit additionstyler-ball2014-12-171-2/+2
|
* Add unit tests for Audit::AuditReporterClaire McQuin2014-12-171-0/+374
|
* Add unit tests for Audit::AuditEventProxyClaire McQuin2014-12-171-0/+292
|
* Add unit tests for Audit::ControlGroupDataClaire McQuin2014-12-171-0/+459