 It seems that --elasticsearch-version is not use.
import json
import time
import unittest
from nose.tools import assert_equal, assert_in, assert_not_in
from botocore.exceptions import ClientError
from localstack.utils.aws import aws_stack
from localstack.utils.common import safe_requests as requests
TEST_INDEX = 'megacorp'
TEST_DOC_ID = 1
COMMON_HEADERS = {
    'content-type': 'application/json',
    'Accept-encoding': 'identity'
}
TEST_DOMAIN_NAME = 'test_es_domain_1'
TEST_ENDPOINT_URL = 'http://localhost:4571'
class ElasticsearchTest(unittest.TestCase):