-
Bug
-
Resolution: Done
-
High
-
Beijing Release
-
None
-
SB-04 OOM
RD ${resp} = RequestsLibrary . Post Request vid, ${data_path}, data=${vid_data}, headers=${headers}
Documentation:
Using the updated robot script in both OOM and HEAT.
In HEAT is works with a 200 OK (SB-07)
In OOM it returns a 405 (SB-04)
Run: demo-k8s.sh onap init
Robot Logs
Send a POST request on the session object found using the
Start / End / Elapsed: 20180423 19:16:09.303 / 20180423 19:16:09.513 / 00:00:00.210
19:16:09.303 TRACE Arguments: [ 'vid' | '/maintenance/category_parameter/lineOfBusiness' | data='
' | headers=
{'Accept': 'application/json', 'Content-Type': 'application/json', 'USER_ID': b'demo', 'X-FromAppId': 'robot-ete', 'X-TransactionId': 'robot-ete-600537ac-ba39-4bf1-a980-6d4528813b46'} ]
19:16:09.305 DEBUG Starting new HTTP connection (1): dev-vid.onap
19:16:09.512 DEBUG http://dev-vid.onap:8080 "POST /vid/maintenance/category_parameter/lineOfBusiness HTTP/1.1" 405 1090
19:16:09.513 DEBUG post response: <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.47 - Error report</title><style type="text/css">H1
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name
{color : black;}.line
{height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 405 - Request method 'POST' not supported</h1><div class="line"></div><p><b>type</b> Status report</p><p><b>message</b> <u>Request method 'POST' not supported</u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource.</u></p><hr class="line"><h3>Apache Tomcat/8.0.47</h3></body></html>
19:16:09.513 INFO Post Request using : alias=vid, uri=/maintenance/category_parameter/lineOfBusiness, data=
, headers=
{u'Accept': u'application/json', u'Content-Type': u'application/json', u'USER_ID': 'demo', u'X-TransactionId': u'robot-ete-600537ac-ba39-4bf1-a980-6d4528813b46', u'X-FromAppId': u'robot-ete'}, files=None, allow_redirects=True
19:16:09.513 TRACE Return: <Response [405]>
19:16:09.513 INFO ${resp} = <Response [405]>