Runs an SDC post request
${resp}
Arguments: [ 'https://sdc-be.onap:8443' | '/sdc2/rest/v1/catalog/services/4b46999b-d296-4b4b-92de-2befab6a2785/distribution/PROD/activate' | None | 'cs0008' | auth=[b'beep', b'boop'] ]
Creating session https://sdc-be.onap:8443
Creating Session using : alias=sdc, url=https://sdc-be.onap:8443, headers={}, cookies=None, auth=, timeout=None, proxies=None, verify=False, debug=0
Creating session: sdc
Argument types are:
Starting new HTTPS connection (1): sdc-be.onap:8443
https://sdc-be.onap:8443 "POST /sdc2/rest/v1/catalog/services/4b46999b-d296-4b4b-92de-2befab6a2785/distribution/PROD/activate HTTP/1.1" 500 225
post response: { "requestError": { "serviceException": { "messageId": "SVC4136", "text": "Error: Requested distribution environment \u0027%1\u0027 is not available.", "variables": [ "AUTO" ] } } }
Post Request using : alias=sdc, uri=/sdc2/rest/v1/catalog/services/4b46999b-d296-4b4b-92de-2befab6a2785/distribution/PROD/activate, data=, headers={'USER_ID': u'cs0008', 'X-FromAppId': 'robot-ete', 'X-TransactionId': '7a5b4244-181b-417d-8ea6-cc8822cc79a9', 'Content-Type': 'application/json', 'Accept': 'application/json'}, files=None, allow_redirects=True
Received response from [sdc]: { "requestError": { "serviceException": { "messageId": "SVC4136", "text": "Error: Requested distribution environment \u0027%1\u0027 is not available.", "variables": [ "AUTO" ] } } }
Return:
${resp} =
Fails if objects are unequal after converting them to strings.
${resp.status_code}
200
Arguments: [ 500 | '200' ]
Argument types are:
500 != 200
Traceback (most recent call last): None