Next Generation of pyClowder

Build: #6 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

sensors post: Test case result

The below summarizes the result of the test " sensors post" in build 6 of Clowder - pyclowder2 - seven-miles-changes - Default Job. View test case history
Description
sensors post
Test class
tests.test_sensors
Method
test_sensors_post
Duration
< 1 sec
Status
Failed (Existing Failure)

Error Log

AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fb1856b66d0>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_sensors_post(caplog, host, key):
        global sensor_id
        caplog.setLevel(logging.DEBUG)
        client = SensorsApi(host=host, key=key)
        sensor_json = client.sensor_create_json("Test Sensor", 40.1149202, -88.2270582, 0, "", "ER")
        response = client.sensor_post(sensor_json)
>       body = response.json()
E       AttributeError: 'NoneType' object has no attribute 'json'

tests/test_sensors.py:13: AttributeError
--------------------------------- Captured log ---------------------------------
sensors.py                  67 DEBUG    Adding sensor
connectionpool.py          213 INFO     Starting new HTTP connection (1): localhost
client.py                  147 ERROR    POST http://localhost:9000/clowder/api/geostreams/sensors: HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /clowder/api/geostreams/sensors?key=r1ek3rs (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb1858d4c90>: Failed to establish a new connection: [Errno 111] Connection refused',))