summaryrefslogtreecommitdiffstats
path: root/tests/test_policy.js
diff options
context:
space:
mode:
authorShadi Haidar <sh1986@att.com>2020-01-14 13:31:20 -0500
committerShadi Haidar <sh1986@att.com>2020-08-19 17:51:07 -0400
commit3d364e4ffa2bfdbffa75679ad67fbaa93ce0b8bf (patch)
tree6dfefbd3a80f38b567f06f37621cda1f524572c2 /tests/test_policy.js
parentd6a5b946f05f43a9942d3d564d66a0a3396933a5 (diff)
DH install/uninstall improvements
Install workflow changes: -Use inventory blueprint (BP) typeId when uploading BP to Cloudify/CFY -Set global visibility when uploading BP to CFY for multi-tenant access -Re-use BP if it exists in CFY rather than alawys uploading a new BP -Do not add a new service in inventory anymore Un-Install workflow changes: -Retreive associated BP against the deployment -Check if any other deployments still exist against the BP -If no associated deployments, get the associated tenant for the BP -Only delete BP if there are no more associated BPs -Do not remove associated service from inventory (it won't exist) Coverage summary Statements : 78.01% ( 997/1278 ) Branches : 56.45% ( 302/535 ) Functions : 74.89% ( 164/219 ) Lines : 78.54% ( 988/1258 ) Issue-ID: DCAEGEN2-2022 Signed-off-by: Shadi Haidar <sh1986@att.com> Change-Id: I9cb197edc3a0276c5ca95f9c936fc7300d849f56 Signed-off-by: Shadi Haidar <sh1986@att.com> Signed-off-by: Shadi Haidar (sh1986) <sh1986@att.com> Signed-off-by: Shadi Haidar <sh1986@att.com>
Diffstat (limited to 'tests/test_policy.js')
-rw-r--r--tests/test_policy.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_policy.js b/tests/test_policy.js
index b98c401..8214197 100644
--- a/tests/test_policy.js
+++ b/tests/test_policy.js
@@ -220,8 +220,8 @@ function nock_cfy_node_instances(action_timer) {
return nock(dh.CLOUDIFY_URL).get(CFY_API_NODE_INSTANCES)
.query(params => {
console.log(action_timer.step, "get", dh.CLOUDIFY_URL, CFY_API_NODE_INSTANCES, JSON.stringify(params));
- return !!(params._include === "id,deployment_id,runtime_properties"
- && params._size === "1000" && params._offset === "0");
+ //return !!(params._include === "id,deployment_id,runtime_properties"
+ return !!(params._size === "1000" && params._offset === "0");
})
.reply(200, function(uri) {
console.log(action_timer.step, "get", dh.CLOUDIFY_URL, uri);