Build: #336 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Add multiple property groups: Test case result

The below summarizes the result of the test "Add multiple property groups" in build 336 of FLARECAST - propertyservice - Default Job. View test case history
Description
Add multiple property groups
Test class
property_group_tests.PropertyGroupTests
Method
test_add_multiple_property_groups
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

RestException: {   "status": 500,    "type": "about:blank",    "detail": "The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.",    "title": "Internal Server Error" }
self = <tests.property_group_tests.PropertyGroupTests testMethod=test_add_multiple_property_groups>

    def test_add_multiple_property_groups(self):
        result = self.client.insert_regions(
            TEST_PROVENANCE,
>           [TEST_PGT_OBJECT, TEST_PGT_OBJECT_WITH_DATA]
        )

property_group_tests.py:23: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:51: in insert_regions
    return self.__post_request(url, property_groups)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'http://localhost:8002/region/test_prov/bulk'
payload = [{'lat_hg': -10, 'long_carr': 10, 'long_hg': 20, 'nar': 500, ...}, {'data': {'test1': 500, 'test2': 'hello world', 'test3': {'name': 'simple data'}, 'test4': None}, 'lat_hg': -10, 'long_carr': 10, 'long_hg': 20, ...}]

    @staticmethod
    def __post_request(url, payload):
        headers = {'Content-Type': 'application/json'}
        r = requests.post(url, json=payload, headers=headers)
    
        if r.status_code != 200:
>           raise RestException(r)
E           RestException: {
E             "status": 500, 
E             "type": "about:blank", 
E             "detail": "The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.", 
E             "title": "Internal Server Error"
E           }

/home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:196: RestException