Next Generation of pyClowder
Build: #27 failed
Job: Default Job failed
sensors post: Test case result
The below summarizes the result of the test " sensors post" in build 27 of Clowder - pyclowder2 - geostreams - Default Job.
- 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 0x7f7d26a24410> 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:14: AttributeError --------------------------------- Captured log --------------------------------- sensors.py 70 DEBUG Adding sensor connectionpool.py 213 INFO Starting new HTTP connection (1): localhost client.py 149 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 0x7f7d26a24e90>: Failed to establish a new connection: [Errno 111] Connection refused',))