Next Generation of pyClowder

Build: #6 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

sensors delete: Test case result

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

Error Log

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

    def test_sensors_delete(caplog, host, key):
        global sensor_id
        caplog.setLevel(logging.DEBUG)
        client = SensorsApi(host=host, key=key)
        response = client.sensor_delete(sensor_id)
>       sensor = response.json()
E       AttributeError: 'NoneType' object has no attribute 'json'

tests/test_sensors.py:34: AttributeError
--------------------------------- Captured log ---------------------------------
sensors.py                 101 DEBUG    Deleting sensor 
connectionpool.py          213 INFO     Starting new HTTP connection (1): localhost
client.py                  211 ERROR    DELETE 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 0x7fb18563f210>: Failed to establish a new connection: [Errno 111] Connection refused',))