inspec/test/unit
Adam Leff 88581ae3dd
Raise exception if profile target URL cannot be parsed
When attempting to parse the profile out of the target URL, we
were not raising an exception if we failed to do so. Such a situation
could arise if a user's inspec config.json is incorrect either due to
manual editing or failure to re-login after an upgrade past Automate
0.8.0.

This change provides a clear exception if this occurs and also adds
tests for the compliance_profile_name method.

Signed-off-by: Adam Leff <adam@leff.co>
2017-05-26 14:30:37 -05:00
..
bundles Raise exception if profile target URL cannot be parsed 2017-05-26 14:30:37 -05:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
fetchers Change :shasum key to :sha256 for future upgrade 2016-09-21 10:51:04 +01:00
mock throw an error during inspec check if the version is not correct 2017-05-18 09:13:37 -04:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles throw an error during inspec check if the version is not correct 2017-05-18 09:13:37 -04:00
resources Add support for Windows auth in mssql_resourcet 2017-05-09 17:17:07 +02:00
source_readers add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
utils rename SimpleConfig / parse_config / parse_config_file options 2017-04-26 23:18:40 +02:00
file_provider_test.rb add inspec.profile.file(...) for profile files 2017-05-03 20:39:27 +02:00
runner_test.rb Handle parse errors for attrs/secrets 2017-05-09 13:44:33 +02:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00