Skip to content

Instantly share code, notes, and snippets.

@jkakavas
Created November 30, 2017 08:00
Show Gist options
  • Save jkakavas/f0bd29c1e7b5ffe0e9d1d3aec7ddb2cd to your computer and use it in GitHub Desktop.
Save jkakavas/f0bd29c1e7b5ffe0e9d1d3aec7ddb2cd to your computer and use it in GitHub Desktop.
lit python 2.7.12 errors
(lit2) ioannis@securebox:/tmp/lit/example$ lit
=================================================================== test session starts ===================================================================
platform linux2 -- Python 2.7.12, pytest-3.2.1, py-1.5.2, pluggy-0.4.0
rootdir: /home/ioannis/virtualenvs/lit2/local/lib/python2.7/site-packages/lit-0.1-py2.7.egg/lit, inifile:
collected 2 items
../../../home/ioannis/virtualenvs/lit2/local/lib/python2.7/site-packages/lit-0.1-py2.7.egg/lit/test_logstash.py EE
========================================================================= ERRORS ==========================================================================
____________________________________________________ ERROR at setup of TestClass.test_logstash_config _____________________________________________________
cls = <class 'lit.test_logstash.TestClass'>
@classmethod
def setup_class(cls):
"""
First step is to get Elasticearch running in a docker container using docker-compose.
When Elasticsearch is up and running we can start running the tests
"""
# Next Pull images needed for the test
pull_required_images()
network = create_network(NETWORK_NAME)
Containers.elastic_container = ElasticsearchContainer(
image_name=IMAGES['elasticsearch'].split(":")[0],
> image_tag=IMAGES['elasticsearch'].split(":")[1]
)
/home/ioannis/virtualenvs/lit2/local/lib/python2.7/site-packages/lit-0.1-py2.7.egg/lit/test_logstash.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <lit.utils.ElasticsearchContainer instance at 0x7f2e33d7e9e0>, image_name = 'docker.elastic.co/elasticsearch/elasticsearch', image_tag = '5.5.1'
name = 'elasticsearch', environment = {'ES_JAVA_OPTS': '-Xms512m -Xmx512m', 'bootstrap.memory_lock': 'false'}, ports = {9200: 9200}
def __init__(self,
image_name="docker.elastic.co/elasticsearch/elasticsearch",
image_tag="5.5.1",
name="elasticsearch",
environment=None,
ports=None):
if environment is None:
environment = {
"ES_JAVA_OPTS":"-Xms512m -Xmx512m",
"bootstrap.memory_lock": "false",
}
if ports is None:
ports = {9200:9200}
> super(ElasticsearchContainer, self).__init__(
image_name=image_name,
image_tag=image_tag,
name=name,
environment=environment,
ports=ports,
)
E TypeError: super() argument 1 must be type, not classobj
/home/ioannis/virtualenvs/lit2/local/lib/python2.7/site-packages/lit-0.1-py2.7.egg/lit/utils.py:128: TypeError
------------------------------------------------------------------ Captured stdout setup ------------------------------------------------------------------
Pulling: docker.elastic.co/elasticsearch/elasticsearch:5.5.1
Pulling: docker.elastic.co/logstash/logstash:5.5.1
__________________________________________________ ERROR at setup of TestClass.test_elasticsearch_is_up ___________________________________________________
cls = <class 'lit.test_logstash.TestClass'>
@classmethod
def setup_class(cls):
"""
First step is to get Elasticearch running in a docker container using docker-compose.
When Elasticsearch is up and running we can start running the tests
"""
# Next Pull images needed for the test
pull_required_images()
network = create_network(NETWORK_NAME)
Containers.elastic_container = ElasticsearchContainer(
image_name=IMAGES['elasticsearch'].split(":")[0],
> image_tag=IMAGES['elasticsearch'].split(":")[1]
)
/home/ioannis/virtualenvs/lit2/local/lib/python2.7/site-packages/lit-0.1-py2.7.egg/lit/test_logstash.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <lit.utils.ElasticsearchContainer instance at 0x7f2e33d7e9e0>, image_name = 'docker.elastic.co/elasticsearch/elasticsearch', image_tag = '5.5.1'
name = 'elasticsearch', environment = {'ES_JAVA_OPTS': '-Xms512m -Xmx512m', 'bootstrap.memory_lock': 'false'}, ports = {9200: 9200}
def __init__(self,
image_name="docker.elastic.co/elasticsearch/elasticsearch",
image_tag="5.5.1",
name="elasticsearch",
environment=None,
ports=None):
if environment is None:
environment = {
"ES_JAVA_OPTS":"-Xms512m -Xmx512m",
"bootstrap.memory_lock": "false",
}
if ports is None:
ports = {9200:9200}
> super(ElasticsearchContainer, self).__init__(
image_name=image_name,
image_tag=image_tag,
name=name,
environment=environment,
ports=ports,
)
E TypeError: super() argument 1 must be type, not classobj
/home/ioannis/virtualenvs/lit2/local/lib/python2.7/site-packages/lit-0.1-py2.7.egg/lit/utils.py:128: TypeError
================================================================= 2 error in 5.25 seconds =================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment