Hello, everyone.

I'm trying to create a pod entry for flex-pod2 in the testresults db using the 
swagger API.  I'm logged in, but the post is returning HTTPError: HTTP 401: 
TestAPI id is not provided.  Here is the payload:

{
      "role": "",
      "name": "flex-pod2",
      "details": "5 bare metal servers",
      "mode": "metal"
 }

And the full response from Swagger UI:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1401, in 
_stack_context_handle_exception
    raise_exc_info((type, value, traceback))
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 
314, in wrapped
    ret = fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1613, in 
future_complete
    f.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 
232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1014, in 
run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/check.py", 
line 62, in wrapper
    ret = yield gen.coroutine(method)(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1008, in 
run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 
232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1014, in 
run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/check.py", 
line 85, in wrap
    ret = yield gen.coroutine(xstep)(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1008, in 
run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 
232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1014, in 
run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/check.py", 
line 100, in wrap
    ret = yield gen.coroutine(xstep)(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1008, in 
run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 
232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1014, in 
run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/check.py", 
line 144, in wrap
    ret = yield gen.coroutine(xstep)(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1008, in 
run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 
232, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 282, in 
wrapper
    yielded = next(result)
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/check.py", 
line 27, in wrapper
    raises.Unauthorized(message.not_login())
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/raises.py", 
line 18, in __init__
    raise web.HTTPError(self.code, reason=reason)
HTTPError: HTTP 401: TestAPI id is not provided

Regards,
Mark

Mark Beierl
SW System Sr Principal Developer
Dell EMC | Cloud & Communication Service Provider Solution
mobile +1 613 314 8106<tel:1-613-314-8106>
mark.bei...@dell.com<mailto:mark.bei...@dell.com>

_______________________________________________
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to