class_docstr: CLI Terraform Generate, Classifier
class_docstr_tok: ["CLI","Terraform","Generate",",","Classifier"]
docstr: CLI - Terraform Generate, Classifier
docstr_tok: ["CLI","-","Terraform","Generate",",","Classifier"]
code: def test_generate_classifier(self):
      """CLI - Terraform Generate, Classifier"""
      cluster_dict = common.infinitedict()
      classifier.generate_classifier("test", cluster_dict, self.config)
  
      expected_result = {
          "module": {
              "classifier_test_iam": {
                  "source": "./modules/tf_classifier",
                  "account_id": "123456789012",
                  "region": "us-east-1",
                  "prefix": "unit-test",
                  "firehose_use_prefix": True,
                  "function_role_id": "${module.classifier_test_lambda.role_id}",
                  "function_alias_arn": "${module.classifier_test_lambda.function_alias_arn}",
                  "function_name": "${module.classifier_test_lambda.function_name}",
                  "classifier_sqs_queue_arn": "${module.globals.classifier_sqs_queue_arn}",
                  "classifier_sqs_sse_kms_key_arn": (
                      "${module.globals.classifier_sqs_sse_kms_key_arn}"
                  ),
                  "input_sns_topics": [
                      "arn:aws:sns:us-east-1:123456789012:foo_bar"
                  ],
              },
              "classifier_test_lambda": {
                  "alarm_actions": [
                      "arn:aws:sns:us-east-1:123456789012:test_topic"
                  ],
                  "description": "Unit-Test Test Streamalert Classifier",
                  "environment_variables": {
                      "CLUSTER": "test",
                      "SQS_QUEUE_URL": "${module.globals.classifier_sqs_queue_url}",
                      "LOGGER_LEVEL": "info",
                      "ENABLE_METRICS": "0",
                  },
                  "tags": {"Cluster": "test"},
                  "errors_alarm_enabled": True,
                  "errors_alarm_evaluation_periods": 1,
                  "errors_alarm_period_secs": 120,
                  "errors_alarm_threshold": 0,
                  "function_name": "unit-test_test_streamalert_classifier",
                  "handler": "streamalert.classifier.main.handler",
                  "log_retention_days": 14,
                  "memory_size_mb": 128,
                  "source": "./modules/tf_lambda",
                  "throttles_alarm_enabled": True,
                  "throttles_alarm_evaluation_periods": 1,
                  "throttles_alarm_period_secs": 120,
                  "throttles_alarm_threshold": 0,
                  "timeout_sec": 60,
                  "vpc_security_group_ids": [],
                  "vpc_subnet_ids": [],
                  "input_sns_topics": [
                      "arn:aws:sns:us-east-1:123456789012:foo_bar"
                  ],
              },
          }
      }
  
      assert_equal(cluster_dict, expected_result)
  
imports: from nose.tools import assert_equal
  from streamalert_cli.terraform import common, classifier
label_desc: Use image node_id 2 for calling the TestTerraformGenerateClassifier obj's underlying member method code with example usage: obj.test_generate_classifier() without return types