From c8c9f01092ef82f6a6f31933ba6474486e9de6cc Mon Sep 17 00:00:00 2001 From: Kinnaird McQuade Date: Fri, 12 Mar 2021 09:44:21 -0500 Subject: [PATCH] Fixes #10 - better command line options for generate-terraform command --- test/command/test_generate_terraform.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/command/test_generate_terraform.py b/test/command/test_generate_terraform.py index 33d4a54..7af6238 100644 --- a/test/command/test_generate_terraform.py +++ b/test/command/test_generate_terraform.py @@ -21,19 +21,19 @@ def test_generate_terraform_command_with_click(self): """command.generate_terraform: should return exit code 0""" result = self.runner.invoke(generate_terraform, ["--help"]) self.assertTrue(result.exit_code == 0) - result = self.runner.invoke(generate_terraform, ["--service", "all", "--subscription", "example"]) + result = self.runner.invoke(generate_terraform, ["--service", "all", "--subscription", "example", "--no-params"]) print(result.output) self.assertTrue(result.exit_code == 0) def test_generate_terraform_command_with_config(self): """command.generate_terraform: with config file""" - result = self.runner.invoke(generate_terraform, ["--service", "all", "--subscription", "example", "--config-file", default_config_file]) + result = self.runner.invoke(generate_terraform, ["--service", "all", "--subscription", "example", "--no-params", "--config-file", default_config_file]) self.assertTrue(result.exit_code == 0) # print(result.output) def test_generate_terraform_with_explicit_matches(self): """command.generate_terraform: with config file that matches keywords""" - result = self.runner.invoke(generate_terraform, ["--service", "all", "--subscription", "example", "--config-file", config_with_keyword_matches]) + result = self.runner.invoke(generate_terraform, ["--service", "all", "--subscription", "example", "--no-params", "--config-file", config_with_keyword_matches]) # print(result.output) # We know for sure that no policies that match "customer-managed key" will also # contain "private link" in it (which is what the config file above looks for)