inspec/test
Lance Albertson a6cff007ed Fix Windows escaping of Windows package names
This resolves #5235 and supersedes #5238.

Instead of using `-match` use `-like` when querying the Windows registry. This
completely removes the problem of trying to clean the string for a regex and
just let's Powershell do that with `-like`.

I confirmed this works with the use case of having a package name such as
`Microsoft Visual C++ 2015-2019 Redistributable (x86) - 14.28.29325` work as-is
without any modification.

Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-11-30 18:02:50 -08:00
..
artifact Fix artifact-habitat testing for inspec. 2020-02-10 18:34:00 -08:00
fixtures Reverts without bug 2020-11-23 15:49:52 +00:00
functional Supply resource name, params to code_desc 2020-11-19 09:59:53 +00:00
helpers Fix Windows escaping of Windows package names 2020-11-30 18:02:50 -08:00
integration Test kitchen setup to test detection of audit-cookbook 2020-05-25 21:00:24 -04:00
kitchen fix(osfamily): use corresponding family or name for bsd/freebsd 2020-07-22 08:43:25 -03:00
unit Supply resource name, params to code_desc 2020-11-19 09:59:53 +00:00
helper.rb Move windows bomb forward pre-emptively 2020-08-03 10:57:29 +01:00