Build: #336 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Add provenance twice: Test case result

The below summarizes the result of the test "Add provenance twice" in build 336 of FLARECAST - propertyservice - Default Job. View test case history
Description
Add provenance twice
Test class
provenance_tests.ProvenanceTests
Method
test_add_provenance_twice
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.provenance_tests.ProvenanceTests testMethod=test_add_provenance_twice>

    def test_add_provenance_twice(self):
>       result = self.client.add_provenance(TEST_PROVENANCE)

provenance_tests.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:76: in add_provenance
    return self.__post_request(url, name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'http://localhost:8002/provenance', payload = 'test_prov'

    @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