Next Generation of pyClowder

Build: #27 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

streams post: Test case result

The below summarizes the result of the test " streams post" in build 27 of Clowder - pyclowder2 - geostreams - Default Job.
Description
streams post
Test class
tests.test_streams
Method
test_streams_post
Duration
< 1 sec
Status
Failed (Existing Failure)

Error Log

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

    def test_streams_post(caplog, host, key):
        global sensor_id, stream_id
        caplog.setLevel(logging.DEBUG)
        sensor_client = SensorsApi(host=host, key=key)
        sensor_json = sensor_client.sensor_create_json("Test Sensor", 40.1149202, -88.2270582, 0, "", "ER")
        sensor_body = sensor_client.sensor_post_json(sensor_json)
>       sensor_id = sensor_body['id']
E       TypeError: 'NoneType' object has no attribute '__getitem__'

tests/test_streams.py:16: TypeError
--------------------------------- Captured log ---------------------------------
sensors.py                  83 DEBUG    Adding or getting sensor
sensors.py                  56 DEBUG    Getting sensor Test Sensor
connectionpool.py          213 INFO     Starting new HTTP connection (1): localhost
sensors.py                  60 ERROR    Error retrieving sensor Test Sensor: not enough arguments for format string
sensors.py                  95 ERROR    Error adding sensor Test Sensor: 'NoneType' object has no attribute 'json'