Upgrade to openstack libs version 1.3.0 17/67417/1
authorRob Daugherty <rd472p@att.com>
Tue, 18 Sep 2018 18:06:51 +0000 (14:06 -0400)
committerRob Daugherty <rd472p@att.com>
Tue, 18 Sep 2018 18:06:51 +0000 (14:06 -0400)
Version 1.3.0 uses fasterxml.jackson.

Note: several unit tests were wrong and had to be fixed. They were
using a fasterxml ObjectMapper to deserialize openstack library
class objects compiled with codehaus JsonProperty annotations.
Consequently, the ObjectMapper could not "see" the annotations.
The tests "worked" because the json was constructed wrongly to
match. I have now fixed the json so that they have the true
property names defined by the annotations.

Change-Id: I088137ee5dd5af9cffd426610a50ae6408c5b190
Issue-ID: SO-1025
Signed-off-by: Rob Daugherty <rd472p@att.com>
adapters/mso-adapter-utils/src/test/resources/__files/HeatStack.json
adapters/mso-adapter-utils/src/test/resources/__files/OpenstackResponse_Access.json
adapters/mso-adapter-utils/src/test/resources/__files/OpenstackResponse_Stack_DeleteComplete.json
adapters/mso-adapter-utils/src/test/resources/__files/UpdateStack.json
adapters/mso-adapters-rest-interface/src/test/resources/stack-example.json
pom.xml

index 411a3e0..679e8e1 100644 (file)
@@ -1,11 +1,11 @@
 {
     "description" : "description",
     "links" : [],
-    "stackStatusReason" : "stackStatusReason",
-    "stackName" : "stackName",
-    "updatedTime" : null,
-    "creationTime" : null,
-    "stackStatus" : "stackStatus",
+    "stack_status_reason" : "stackStatusReason",
+    "stack_name" : "stackName",
+    "updated_time" : null,
+    "creation_time" : null,
+    "stack_status" : "stackStatus",
     "id" : "id",
     "files" : {}
 }
\ No newline at end of file
index f1c08cc..cd516ad 100644 (file)
@@ -18,7 +18,7 @@
                                                "adminURL": null
                                        }
                                ],
-                               "endpointsLinks": null
+                               "endpoints_links": null
                        },
                        {
                                "type": "network",
@@ -31,7 +31,7 @@
                                                "adminURL": null
                                        }
                                ],
-                               "endpointsLinks": null
+                               "endpoints_links": null
                        },
                        {
                                "type": "identity",
@@ -44,7 +44,7 @@
                                                "adminURL": null
                                        }
                                ],
-                               "endpointsLinks": null
+                               "endpoints_links": null
                        }
                ],
                "user": null,
index 8612258..a26a551 100644 (file)
@@ -2,10 +2,10 @@
        "stack": {
                "description": null,
                "links": null,
-               "stackStatusReason": null,
-               "stackName": null,
-               "updatedTime": null,
-               "creationTime": null,
+               "stack_status_reason": null,
+               "stack_name": null,
+               "updated_time": null,
+               "creation_time": null,
                "stack_status": "DELETE_COMPLETE",
                "id": "stackId",
                "files": null,
index 0a09d59..bf61cc8 100644 (file)
@@ -1,11 +1,11 @@
 {
     "description" : "description",
     "links" : [],
-    "stackStatusReason" : "stackStatusReason",
-    "stackName" : "stackName",
-    "updatedTime" : null,
-    "creationTime" : null,
-    "stackStatus" : "UPDATE_COMPLETE",
+    "stack_status_reason" : "stackStatusReason",
+    "stack_name" : "stackName",
+    "updated_time" : null,
+    "creation_time" : null,
+    "stack_status" : "UPDATE_COMPLETE",
     "id" : "id",
     "files" : {}
 }
\ No newline at end of file
index c0f08f8..968f617 100644 (file)
@@ -1,13 +1,12 @@
 {
        "outputs" : [{
-               "outputKey": "key1",
-               "outputValue": "value1"
+               "output_key": "key1",
+               "output_value": "value1"
        },{
-               "outputKey": "key2",
-               "outputValue": "value2"
+               "output_key": "key2",
+               "output_value": "value2"
        },{
-               "outputKey": "key3",
-               "outputValue": "value3"
+               "output_key": "key3",
+               "output_value": "value3"
        }]
-
 }
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 078f9b3..f6fc55a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -47,7 +47,7 @@
                <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
                <jacoco.version>0.7.5.201505241946</jacoco.version>
                <org.apache.maven.user-settings/>
-               <openstack.version>1.2.2</openstack.version>
+               <openstack.version>1.3.0</openstack.version>
                <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
                <springboot.version>1.5.13.RELEASE</springboot.version> 
                <originalClassifier>original</originalClassifier>