From 7c78f9c1208af746b417c5184abfaddc318926b4 Mon Sep 17 00:00:00 2001 From: Shadi Haidar Date: Fri, 15 Feb 2019 17:38:41 -0500 Subject: Add health and service endpoints 4.0.0 deployment-handler Upgraded cloudify api from 2.1 to 3.1 due to new cloudify /status api Requires upgrading Cloudify to 4.x Added 2 APIs to check health of DH itself and to Inventory and Cloudify Coverage summary Statements : 80.75% ( 994/1231 ) Branches : 57.74% ( 302/523 ) Functions : 81.13% ( 172/212 ) Lines : 81.26% ( 984/1211 ) Issue-ID: DCAEGEN2-1127 Change-Id: Ic851a576eed668016f6cfe956f0f1880a65e1065 Signed-off-by: Shadi Haidar --- lib/config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/config.js') diff --git a/lib/config.js b/lib/config.js index d4fd3e3..6430e36 100644 --- a/lib/config.js +++ b/lib/config.js @@ -1,5 +1,5 @@ /* -Copyright(c) 2017-2018 AT&T Intellectual Property. All rights reserved. +Copyright(c) 2017-2019 AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -79,7 +79,7 @@ const CONFIG_KEY = "deployment_handler"; /* Configuration is stored under the na const CM_NAME = "cloudify_manager"; const INV_NAME = "inventory"; -const CM_API_PATH = "/api/v2.1"; +const CM_API_PATH = "/api/v3.1"; const INV_API_PATH = ""; const DEFAULT_CLOUDIFY_PROTOCOL = "https"; @@ -227,7 +227,6 @@ exports.configure = function() { const missing = findMissingConfig(config); if (missing.length > 0) { throw new Error ("Required configuration elements missing: " + missing.join(',')); - config = null; } console.log((new Date()) + ": config -> " + JSON.stringify(config, utils.hideSecrets, 2)); return config; -- cgit 1.2.3-korg