Next Generation of pyClowder

Build: #23 failed Changes by Yan Zhao

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
8 seconds
Labels
None
Revision
3705a7cdcb2ad236ea49479e1ee7c20ea32c1f21
Total tests
40
Failing since
#18 (Changes by Luigi Marini)

Tests

Responsible

Code commits

Author Commit Message Commit date
Yan Zhao Yan Zhao 3705a7cdcb2ad236ea49479e1ee7c20ea32c1f21 add capturelog in requirement.txt

Tests

Existing test failures 18
Status Test Failing since View job Duration
TypeError: not enough arguments for format string
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c069d0>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_datapoints_count_by_sensor_get(caplog, host, key):
        caplog.setLevel(logging.DEBUG)
        client = DatapointsApi(host=host, key=key)
>       response = client.datapoints_count_by_sensor_get(950)
(25 more lines...)
ConnectionError: HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /clowder/apithis_path_does_not_exist (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fbbe8bf0dd0>: Failed to establish a new connection: [Errno 111] Connection refused',))
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c0d050>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_raise_for_status(caplog, host, key):
        client = ClowderClient(host=host, key=key)
        try:
>           client.get_json("this_path_does_not_exist")
(137 more lines...)
AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8981310>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_get_sensors(caplog, host, key):
        caplog.setLevel(logging.DEBUG)
        client = SensorsApi(host=host, key=key)
        response = client.sensors_get()
(8 more lines...)
ConnectionError: HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /clowder/api/version (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fbbe8bcb7d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8ba89d0>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_version(caplog, host, key):
        caplog.setLevel(logging.DEBUG)
        client = ClowderClient(host=host, key=key)
>       version = client.version()
(138 more lines...)
AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c9df90>
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)
(10 more lines...)
AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c55290>
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)
(9 more lines...)
AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c3e090>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_sensors_get(caplog, host, key):
        global sensor_id
        caplog.setLevel(logging.DEBUG)
        client = SensorsApi(host=host, key=key)
(9 more lines...)
AttributeError: 'StreamsApi' object has no attribute 'stream_get_by_name'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c3e1d0>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_streams_get(caplog, host, key):
        global sensor_id, stream_id
        caplog.setLevel(logging.DEBUG)
        stream_client = StreamsApi(host=host, key=key)
(4 more lines...)
AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c3e850>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_streams_delete(caplog, host, key):
        global sensor_id, stream_id
        caplog.setLevel(logging.DEBUG)
        sensor_client = SensorsApi(host=host, key=key)
(16 more lines...)
TypeError: 'NoneType' object has no attribute '__getitem__'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe88e7650>
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)
(12 more lines...)
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:34:5: E128 continuation line under-indented for visual indent     'sphinx.ext.doctest',     ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:35:5: E128 continuation line under-indented for visual indent     'sphinx.ext.viewcode',     ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:36:5: E128 continuation line under-indented for visual indent     'sphinx.ext.githubpages']     ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:159:1: W391 blank line at end of file  ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:34:5: E128 continuation line under-indented for visual indent
    'sphinx.ext.doctest',
    ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:35:5: E128 continuation line under-indented for visual indent
    'sphinx.ext.viewcode',
    ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/docs/source/conf.py:36:5: E128 continuation line under-indented for visual indent
(5 more lines...)
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:5:1: E302 expected 2 blank lines, found 1 def dms2dec(dms): ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:33: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                 ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:35: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                   ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:53: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                     ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:55: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                       ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:73: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                         ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:75: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                           ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:104: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                        ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:106: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                          ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:121: E501 line too long (157 > 120 characters)     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                                         ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:124: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                                            ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:126: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                                              ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:144: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                                                                ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:146: E251 unexpected spaces around keyword / parameter equals     dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))                                                                                                                                                  ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:10:15: W292 no newline at end of file     return dec               ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:5:1: E302 expected 2 blank lines, found 1
def dms2dec(dms):
^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:33: E251 unexpected spaces around keyword / parameter equals
    dec = LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2]))
                                ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode-convert.py:8:35: E251 unexpected spaces around keyword / parameter equals
(38 more lines...)
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_streams.py:8:1: E302 expected 2 blank lines, found 1 def test_streams_post(caplog, host, key): ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_streams.py:20:24: W291 trailing whitespace     assert "id" in body                        ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_streams.py:39:54: W291 trailing whitespace     response = stream_client.stream_delete(stream_id)                                                      ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_streams.py:8:1: E302 expected 2 blank lines, found 1
def test_streams_post(caplog, host, key):
^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_streams.py:20:24: W291 trailing whitespace
    assert "id" in body
                       ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_streams.py:39:54: W291 trailing whitespace
(2 more lines...)
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/client.py:145:121: E501 line too long (137 > 120 characters)             return requests.post(url, params=params, data=json.dumps(content), headers=self.headers, auth=(self.username, self.password))                                                                                                                         ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/client.py:163:121: E501 line too long (127 > 120 characters)             return requests.post(url, params=params, files={"File": open(filename, 'rb')}, auth=(self.username, self.password))                                                                                                                         ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/client.py:145:121: E501 line too long (137 > 120 characters)
            return requests.post(url, params=params, data=json.dumps(content), headers=self.headers, auth=(self.username, self.password))
                                                                                                                        ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/client.py:163:121: E501 line too long (127 > 120 characters)
            return requests.post(url, params=params, files={"File": open(filename, 'rb')}, auth=(self.username, self.password))
                                                                                                                        ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/sensors.py:69:12: E111 indentation is not a multiple of four            return self.client.post("/geostreams/sensors", sensor)            ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/sensors.py:69:12: E111 indentation is not a multiple of four
           return self.client.post("/geostreams/sensors", sensor)
           ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_datapoints.py:11:39: W292 no newline at end of file     assert response.status_code != 200                                       ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/test_datapoints.py:11:39: W292 no newline at end of file
    assert response.status_code != 200
                                      ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/conftest.py:14:1: E302 expected 2 blank lines, found 1 @pytest.fixture(scope="module") ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/tests/conftest.py:14:1: E302 expected 2 blank lines, found 1
@pytest.fixture(scope="module")
^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:6:1: E302 expected 2 blank lines, found 0 def dms2dec(dms): ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:38: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                      ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:40: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                        ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:58: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                          ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:60: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                            ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:78: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                              ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:80: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:109: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                             ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:111: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                               ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:121: E501 line too long (175 > 120 characters)     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                                         ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:129: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                                                 ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:131: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                                                   ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:149: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                                                                     ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:151: E251 unexpected spaces around keyword / parameter equals     dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())                                                                                                                                                       ^ /home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:9:26: E231 missing whitespace after ','     return [float(dec[0]),float(dec[1])]                          ^ 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:6:1: E302 expected 2 blank lines, found 0
def dms2dec(dms):
^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:38: E251 unexpected spaces around keyword / parameter equals
    dec = list(LatLon(Latitude(degree = dms[0][0], minute = dms[0][1], second = dms[0][2]), Longitude(degree = dms[1][0], minute = dms[1][1], second = dms[1][2])).to_string())
                                     ^
/home/bamboo/bamboo-agent-home/xml-data/build-dir/CATS-PYC26-JOB1/pyclowder/geostreams/geocode_convert.py:7:40: E251 unexpected spaces around keyword / parameter equals
(38 more lines...)