Revise custom exceptions to require a message 43/3543/2
authorLott, Christopher (cl778h) <cl778h@att.com>
Thu, 30 Apr 2020 13:38:35 +0000 (09:38 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Thu, 30 Apr 2020 13:49:15 +0000 (09:49 -0400)
commit6803b12d1c2af87c57d7dccaced70b49bcb44815
tree5c2e699b769ca21f4713ea7eacae7ef29e1d2bd4
parent20d87ede528b9c509fe1b0c51c6383b8d307c2c8
Revise custom exceptions to require a message

Reduce code redundancy in controller exception handling.
Raise exception on ID mismatch in create policy type request.
Add test of ID mismatch case.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I2c020f41d65b7ddadd71185fafb16cf2c4557a88
Dockerfile-Unit-Test
a1/controller.py
a1/data.py
a1/exceptions.py
docs/release-notes.rst
tests/test_controller.py