class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate CloudTrail Module, Minimal Settings
docstr_tok: ["CLI","-","Terraform","Generate","CloudTrail","Module",",","Minimal","Settings"]
code: def test_generate_cloudtrail_minimal(self):
      """CLI - Terraform Generate CloudTrail Module, Minimal Settings"""
      cluster_name = "advanced"
      self.config["clusters"]["advanced"]["modules"]["cloudtrail"] = {
          "s3_settings": {
              "cross_account_ids": ["456789012345"],
              "enable_events": False,
          },
          "send_to_cloudwatch": False,
      }
      cloudtrail.generate_cloudtrail(
          cluster_name, self.cluster_dict, self.config
      )
  
      expected = {
          "cloudtrail_advanced": {
              "source": "./modules/tf_cloudtrail",
              "s3_cross_account_ids": ["12345678910", "456789012345"],
              "primary_account_id": "12345678910",
              "cluster": "advanced",
              "prefix": "unit-test",
              "region": "us-west-1",
              "s3_bucket_name": "unit-test-advanced-streamalert-cloudtrail",
              "s3_logging_bucket": "unit-test-streamalert-s3-logging",
          }
      }
  
      assert_equal(expected, self.cluster_dict["module"])
  
imports: from mock import ANY, Mock, patch
  from nose.tools import assert_equal, assert_dict_equal, assert_false, assert_raises, assert_true
  from streamalert.shared.exceptions import ConfigError
  from streamalert_cli.config import CLIConfig
  from streamalert_cli.terraform import common, cloudtrail, cloudwatch_destinations, cloudwatch_events, flow_logs, generate
label_desc: Use image node_id 9 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_cloudtrail_minimal() without return types