inspec/lib
Nick Schwaderer a1129f9efc Allows input and control to have the same name
In https://github.com/inspec/inspec/issues/4936 the issue was reported that naming an input the same as a control caused an unexpected failure.

In that particular case, the naming was a result of a pre-waivers workaround which is no longer necessary, but ultimately a breakage of that name clash is an unexpected occurrance.

Due to how inputs are named and registered, `__apply_waivers` thinks that an object is a waiver that is not a waiver and tries to process it. On the micro level, it breaks when trying to pass a variable to a string as if it were a Hash.

It is imperative that we preserve 100% of the current featureset, pass our tests, and fix this edge case along with new test coverage for the failure.

This PR updates the code to do a slightly more elegant and small ‘waiver check’ to stop the namespace clash from breaking our code.

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-05 10:00:19 +01:00
..
bundles Reworked Resource.__register's metaprogramming to be as small as possible. 2020-02-03 14:41:37 -08:00
inspec Allows input and control to have the same name 2020-05-05 10:00:19 +01:00
matchers Added --inspect option to inspect shell command. 2020-01-28 14:52:04 -08:00
plugins Fix typo's after review 2020-04-20 09:50:58 -04:00
resource_support Tweak for aws resources to determine if they're still under test. 2020-02-03 14:41:37 -08:00
resources Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
source_readers When archiving with --airgap, warm the vendor cache from any available local archives 2020-01-03 14:15:04 -05:00
inspec.rb Make inspec much faster for most commands. 2019-09-04 15:44:26 -07:00