summaryrefslogtreecommitdiffstats
path: root/models-errors/src/test/resources/error.response.simple.json
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-03-21 09:58:52 -0400
committerPamela Dragosh <pdragosh@research.att.com>2019-03-21 11:30:23 -0400
commit99837f40d77dd41f80eeb4649c43479e898bcaff (patch)
tree5e5838d6e2a63b6c49e96db0ac9b30c907241577 /models-errors/src/test/resources/error.response.simple.json
parent68476866a3be0b5cc10b75f31b247c2e98e19b69 (diff)
Add module for error responses
Module will hold a common error message object used by API's to clients for returning an overall error message and list of detail messages and warnings. Added an example and finished a JUnit test. Changed to response code from HTTP Added assertj and used StandardCoder Issue-ID: POLICY-1195 Change-Id: Id0fcf4831b8d03223c590f8085f207dbbbe559b4 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'models-errors/src/test/resources/error.response.simple.json')
-rw-r--r--models-errors/src/test/resources/error.response.simple.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/models-errors/src/test/resources/error.response.simple.json b/models-errors/src/test/resources/error.response.simple.json
new file mode 100644
index 000000000..d9420c07d
--- /dev/null
+++ b/models-errors/src/test/resources/error.response.simple.json
@@ -0,0 +1,11 @@
+{
+ "code" : "404",
+ "error" : "Policy Type does not exist",
+ "details" : [
+ "Missing metadata section",
+ "The property value foo bar is missing"
+ ],
+ "warnings" : [
+ "The topology_template is missing"
+ ]
+}