summaryrefslogtreecommitdiff
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into mrtazz/pkgng-exit-code-fixDaniel Schauenberg2021-01-07612-24817/+36969
|\ | | | | | | Signed-off-by: Daniel Schauenberg <d@unwiredcouch.com>
| * load_current_resource for systemd service more efficientlyJoshua Miller2021-01-041-23/+116
| | | | | | | | Signed-off-by: Joshua Miller <joshmiller@fb.com>
| * Coerce uid to integer in Windows user resource.Pete Higgins2020-12-301-0/+36
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Merge pull request #10761 from chef/dont-rely-on-live-servers-for-rubygems-testsTim Smith2020-12-281-7/+39
| |\ | | | | | | Stub http requests in rubygems tests.
| | * Stub http requests in rubygems tests.Pete Higgins2020-12-281-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org> This commit includes a trimmed version of rubygems.org API output. To recreate this file: * Download the file from rubygems.org: curl "https://rubygems.org/latest_specs.4.8.gz" * Read the file, uncompress it, filter for the data you want, and reverse the process: File.write("latest_specs.4.8.gz", Gem::Util.gzip(Marshal.dump(Marshal.load(Gem::Util.gunzip(File.read("latest_specs.4.8.gz"))).select {|m| m.first == "sexp_processor" })))
| * | Fix chefstyle violations.Pete Higgins2020-12-281-2/+2
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Fix knife status json output for EC2 instance with no public IP.Pete Higgins2020-12-281-0/+54
| |/ | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Merge pull request #10779 from chef/Lint_ParenthesesAsGroupedExpressionTim Smith2020-12-287-9/+9
| |\ | | | | | | Resolve Lint/ParenthesesAsGroupedExpression warnings
| | * Resolve Lint/ParenthesesAsGroupedExpression warningsLint_ParenthesesAsGroupedExpressionTim Smith2020-12-257-9/+9
| | | | | | | | | | | | | | | | | | Get some consistency here Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Use include? instead of a regex with string matchingTim Smith2020-12-211-1/+1
| |/ | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Merge pull request #10379 from chef/rubygems_18Tim Smith2020-12-181-14/+4
| |\ | | | | | | Chef 17: Assume Rubygems 1.8 in the rubygems provider / specs
| | * Assume Rubygems 1.8 in the rubygems provider / specsrubygems_18Tim Smith2020-09-021-14/+4
| | | | | | | | | | | | | | | | | | | | | Rubygems 1.8 came out May 4, 2011 and we're still checking for rubygems older than that. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Merge pull request #10751 from chef/fix-failures-in-ssl-handlerTim Smith2020-12-181-78/+106
| |\ \ | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| | * | Don't pollute trusted_certs test data to keep bootstrap tests happy.fix-failures-in-ssl-handlerPete Higgins2020-12-171-10/+17
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Don't write to test data directories to avoid state leaking into other tests.Pete Higgins2020-12-161-13/+10
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Simplify test setup.Pete Higgins2020-12-161-14/+12
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Simplify some circuitous test setup.Pete Higgins2020-12-161-7/+7
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Backfill some missing tests and simplify the existing one.Pete Higgins2020-12-161-7/+11
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | The port doesn't matter.Pete Higgins2020-12-161-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Simplify test grouping.Pete Higgins2020-12-161-40/+30
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Remove outdated test cruft.Pete Higgins2020-12-161-3/+0
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Remove a test that was not testing behavior of the code under test.Pete Higgins2020-12-161-5/+0
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Handle bad certs in trusted_certs_dir.Pete Higgins2020-12-161-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Add friendlier error messages for OpenSSL stuff.Pete Higgins2020-12-161-4/+16
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Properly handle DER encoded certs and keys.Pete Higgins2020-12-161-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | | Cleanup bootstrap trusted_certs_dir tests.cleanup-bootstrap-certs-testsPete Higgins2020-12-171-17/+5
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | | Merge pull request #10735 from chef/add-chef-node-attribute-to-compliance-phaseTim Smith2020-12-151-0/+28
| |\ \ \ | | |/ / | |/| | Add audit cookbook's chef_node_attribute_enabled to Compliance Phase.
| | * | Add audit cookbook's chef_node_attribute_enabled to Compliance Phase.add-chef-node-attribute-to-compliance-phasePete Higgins2020-12-111-0/+28
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | | Remove a useless test.Pete Higgins2020-12-151-7/+0
| |/ / | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Instead of silently failing, raise an exception for bad reporter types.Pete Higgins2020-12-111-4/+2
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Fix inaccurate log message.Pete Higgins2020-12-111-1/+1
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Remove gate on impossible case.Pete Higgins2020-12-111-5/+0
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Refactor to separate reporter creation from report sending.Pete Higgins2020-12-111-22/+23
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Fix broken code in compliance runner's send_report.Pete Higgins2020-12-111-0/+33
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Merge pull request #10711 from ↵Tim Smith2020-12-091-0/+12
| |\ \ | | | | | | | | | | | | | | | | MsysTechnologiesllc/dh/win-pfx-certificate-exportable Signed-off-by: Tim Smith <tsmith@chef.io>
| | * | fix review and test case addeddheerajd-msys2020-12-081-0/+12
| | | | | | | | | | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * | | only run systemd unit tests on linuxmwrock2020-12-081-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: mwrock <matt@mattwrock.com>
| * | | Resolve indentation warnings from ChefstyleTim Smith2020-12-041-1/+1
| |/ / | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Merge pull request #10547 from chef/audit-modeTim Smith2020-12-027-0/+993
| |\ \ | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| | * | Rename audit mode to Compliance Phase.Pete Higgins2020-12-017-49/+49
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Replace hardcoded product references with the generic versions.Pete Higgins2020-12-011-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Set node attributes at normal rather than default level in audit runner unit ↵Pete Higgins2020-12-011-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | tests. Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Warn if unsupported audit-cookbook config values are present.Pete Higgins2020-12-011-0/+22
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Refactor Automate reporter.Pete Higgins2020-12-011-115/+183
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Copy-paste code for missing method and tests from automate-cookbook.Pete Higgins2020-12-011-0/+70
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Expand negative test case for Automate reporter.Pete Higgins2020-12-011-3/+10
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Cleanup some error handling.Pete Higgins2020-12-011-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Raise an exception with old profile format.Pete Higgins2020-12-011-0/+42
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Add hook methods to setup state earlier, add failure hook.Pete Higgins2020-12-011-20/+11
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| | * | Simplify waiver handling by deferring to Inspec.Pete Higgins2020-12-011-18/+0
| | | | | | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>