def METHOD_NAME(self):
    test_config = {
        'TESTING': True,
        'AUTH_REQUIRED': True,
        'PLUGINS': ['remote_ip', 'reject', 'heartbeat', 'blackout', 'acked_by', 'forwarder']
    }
    os.environ['ALLOWED_ENVIRONMENTS'] = 'Production,Staging,Development'
    self.app = create_app(test_config)
    self.client = self.app.test_client()
    self.resource = str(uuid4()).upper()[:8]
    self.reject_alert = {
        'event': 'node_marginal',
        'resource': self.resource,
        'environment': 'Production',
        'service': [],  # alert will be rejected because service not defined
        'severity': 'warning',
        'correlate': ['node_down', 'node_marginal', 'node_up'],
        'tags': ['one', 'two']
    }
    self.accept_alert = {
        'event': 'node_marginal',
        'resource': self.resource,
        'environment': 'Production',
        'service': ['Network'],  # alert will be accepted because service defined
        'severity': 'warning',
        'correlate': ['node_down', 'node_marginal', 'node_up'],
        'tags': ['three', 'four']
    }
    self.critical_alert = {
        'event': 'node_down',
        'resource': self.resource,
        'environment': 'Production',
        'service': ['Network'],
        'severity': 'critical',
        'correlate': ['node_down', 'node_marginal', 'node_up'],
        'tags': []
    }
    self.ok_alert = {
        'event': 'node_up',
        'resource': self.resource,
        'environment': 'Production',
        'service': ['Network'],
        'severity': 'ok',
        'correlate': ['node_down', 'node_marginal', 'node_up'],
        'tags': []
    }
    with self.app.test_request_context('/'):
        self.app.preprocess_request()
        self.api_key = ApiKey(
            user='admin@alerta.io',
            scopes=[Scope.admin, Scope.read, Scope.write],
            text='demo-key'
        )
        self.api_key.create()
    self.headers = {
        'Authorization': f'Key {self.api_key.key}',
        'Content-type': 'application/json',
        'X-Forwarded-For': '172.217.20.36'
    }