class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate Main with Alerts Firehose Config
docstr_tok: ["CLI","-","Terraform","Generate","Main","with","Alerts","Firehose","Config"]
code: def test_generate_main_alerts_firehose(self):
      """CLI - Terraform Generate Main with Alerts Firehose Config"""
      self.config["global"]["infrastructure"]["alerts_firehose"] = {
          "bucket_name": "test-bucket-name",
          "buffer_interval": 600,
      }
      tf_main = generate.generate_main(config=self.config, init=False)
  
      assert_equal(
          tf_main["module"]["globals"]["alerts_firehose_bucket_name"],
          "test-bucket-name",
      )
      assert_equal(
          tf_main["module"]["globals"][
              "alerts_firehose_buffer_interval"
          ],
          600,
      )
  
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 7 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_main_alerts_firehose() without return types