inspec/test/functional
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
..
fetchers_test.rb These tests don't pass on a network cafe and just hang forever. 2020-02-03 13:18:56 -08:00
filter_table_test.rb Fixed the rest of the minitest deprecations by removing FuncTestRunResult. 2019-10-22 12:15:28 -07:00
git_fetcher_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
helper.rb Clean up schema PR. 2020-02-05 17:06:55 -08:00
inheritance_test.rb Clean up schema PR. 2020-02-05 17:06:55 -08:00
inputs_test.rb Divide tests into undeclared and required groups 2020-04-24 16:38:11 -04:00
inspec_archive_test.rb Removing skip in archive test just seems to work, too 2020-01-28 12:24:29 -05:00
inspec_check_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
inspec_detect_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_exec_automate_test.rb Clean up schema PR. 2020-02-05 17:06:55 -08:00
inspec_exec_json_test.rb Allows input and control to have the same name 2020-05-05 10:00:19 +01:00
inspec_exec_jsonmin_test.rb Clean up schema PR. 2020-02-05 17:06:55 -08:00
inspec_exec_junit_test.rb Allows input and control to have the same name 2020-05-05 10:00:19 +01:00
inspec_exec_test.rb Update GCP and azure tests to reflect no-creds errors as seen on CI server 2020-03-02 14:32:12 -05:00
inspec_json_profile_test.rb Clean up schema PR. 2020-02-05 17:06:55 -08:00
inspec_report_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_schema_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_shell_test.rb Strip all ANSI color codes from output in inspec_shell_test.rb 2019-11-12 14:50:39 -08:00
inspec_supermarket_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inspec_vendor_test.rb Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
license_test.rb Get the license_tests passing 2019-11-12 14:51:56 -08:00
logging_test.rb Corresponding fixes for the move from test/unit/mock to test/fixtures. 2019-11-08 19:20:12 -08:00
plugins_test.rb Q-quote the args to the train plugin 2020-01-28 13:48:10 -05:00
ui_test.rb Improve debugging of json parse failures in functional tests. 2019-10-21 13:30:14 -07:00
waivers_test.rb Allows input and control to have the same name 2020-05-05 10:00:19 +01:00