class_docstr: Class for testing firehose generation code
class_docstr_tok: ["Class","for","testing","firehose","generation","code"]
docstr: CLI - Terraform Generate Kinesis Firehose, Enabled Alarm - Custom Settings
docstr_tok: ["CLI","-","Terraform","Generate","Kinesis","Firehose",",","Enabled","Alarm","-","Custom","Settings"]
code: def test_firehose_enabled_log_alarm_custom(self):
      """CLI - Terraform Generate Kinesis Firehose, Enabled Alarm - Custom Settings"""
      cluster_dict = common.infinitedict()
  
      # Add an enabled log, with alarms on with custom settings
      self.config["global"]["infrastructure"]["firehose"][
          "enabled_logs"
      ] = {
          "json:embedded": {
              "enable_alarm": True,
              "evaluation_periods": 10,
              "period_seconds": 3600,
              "log_min_count_threshold": 100000,
          }
      }
  
      firehose.generate_firehose(
          self._logging_bucket_name, cluster_dict, self.config
      )
  
      expected_result = {
          "module": {
              "kinesis_firehose_setup": self._default_firehose_config(),
              "kinesis_firehose_json_embedded": {
                  "source": "./modules/tf_kinesis_firehose_delivery_stream",
                  "buffer_size": 128,
                  "buffer_interval": 900,
                  "file_format": "parquet",
                  "stream_name": "unit_test_streamalert_json_embedded",
                  "role_arn": "${module.kinesis_firehose_setup.firehose_role_arn}",
                  "s3_bucket_name": "unit-test-streamalert-data",
                  "kms_key_arn": "${aws_kms_key.server_side_encryption.arn}",
                  "enable_alarm": True,
                  "evaluation_periods": 10,
                  "period_seconds": 3600,
                  "alarm_threshold": 100000,
                  "alarm_actions": [
                      "arn:aws:sns:us-west-1:12345678910:unit-test_streamalert_monitoring"
                  ],
                  "glue_catalog_db_name": "unit-test_streamalert",
                  "glue_catalog_table_name": "json_embedded",
                  "schema": self._get_expected_schema(),
              },
          }
      }
  
      assert_equal(cluster_dict, expected_result)
  
file_path: streamalert/tests/unit/streamalert_cli/terraform/test_firehose.py
imports: from nose.tools import assert_equal
  from streamalert_cli.config import CLIConfig
  from streamalert_cli.terraform import common, firehose
label_desc: Use image node_id 7 for calling the TestFirehoseGenerate obj's underlying member method code with example usage: obj.test_firehose_enabled_log_alarm_custom() without return types