Merge "Improve unit test coverage"
authorShuky Har-Noy <shuky.har-noy@intl.att.com>
Sun, 22 Nov 2020 09:42:23 +0000 (09:42 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Sun, 22 Nov 2020 09:42:23 +0000 (09:42 +0000)
E2Manager/clients/routing_manager_client.go
E2Manager/container-tag.yaml
releases/container-release-ric-plt-e2mgr.yaml

index 2625612..1d9dac9 100644 (file)
@@ -119,7 +119,9 @@ func (c *RoutingManagerClient) sendMessage(method string, url string, data inter
                return e2managererrors.NewRoutingManagerError()
        }
 
-       defer resp.Body.Close()
+       if resp.Body != nil {
+               defer resp.Body.Close()
+       }
 
        if resp.StatusCode >= http.StatusOK && resp.StatusCode < http.StatusMultipleChoices {
                c.logger.Infof("[Routing Manager -> E2 Manager] #RoutingManagerClient.sendMessage - success. http status code: %d", resp.StatusCode)
index 2fbc7a5..2f7773e 100644 (file)
@@ -1,4 +1,4 @@
 # The Jenkins job requires a tag to build the Docker image.
 # Global-JJB script assumes this file is in the repo root.
 ---
-tag: 5.4.14
+tag: 5.4.15
index a9b88dc..52e66af 100644 (file)
@@ -1,10 +1,10 @@
 ---
 distribution_type: container
-container_release_tag: 5.4.14
+container_release_tag: 5.4.15
 container_pull_registry: nexus3.o-ran-sc.org:10004
 container_push_registry: nexus3.o-ran-sc.org:10002
 project: ric-plt/e2mgr
 ref: bc966a778e96ab13590722c140489e8ef053a6f0
 containers:
     - name: ric-plt-e2mgr
-      version: 5.4.14
+      version: 5.4.15