From 8eb77a1d2ade5eff3c2e736d7a7517d14e2a2d92 Mon Sep 17 00:00:00 2001 From: jhh Date: Wed, 3 Mar 2021 12:05:02 -0600 Subject: enable viewing lifecycle statistics with telemetry Issue-ID: POLICY-3121 Signed-off-by: jhh Change-Id: I25e8c4439c0a6beabe532c17cc58919f369f17f0 Signed-off-by: jhh --- .../policy/drools/server/restful/RestLifecycleManagerTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'feature-lifecycle/src/test/java/org') diff --git a/feature-lifecycle/src/test/java/org/onap/policy/drools/server/restful/RestLifecycleManagerTest.java b/feature-lifecycle/src/test/java/org/onap/policy/drools/server/restful/RestLifecycleManagerTest.java index 43d3fe32..de67c027 100644 --- a/feature-lifecycle/src/test/java/org/onap/policy/drools/server/restful/RestLifecycleManagerTest.java +++ b/feature-lifecycle/src/test/java/org/onap/policy/drools/server/restful/RestLifecycleManagerTest.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2021 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. @@ -91,8 +91,8 @@ public class RestLifecycleManagerTest { private static final String VCPE_OPERATIONAL_DROOLS_POLICY_JSON = "policies/vCPE.policy.operational.input.tosca.json"; - private static StandardCoder coder = new StandardCoder(); - private static ControllerSupport controllerSupport = new ControllerSupport("lifecycle"); + private static final StandardCoder coder = new StandardCoder(); + private static final ControllerSupport controllerSupport = new ControllerSupport("lifecycle"); private LifecycleFsm fsm; private HttpClient client; @@ -235,6 +235,7 @@ public class RestLifecycleManagerTest { resourceLists("policies", 2); get("policies/example.controller/1.0.0", Status.OK.getStatusCode()); get("policies/example.artifact/1.0.0", Status.OK.getStatusCode()); + get("statistics", Status.OK.getStatusCode()); /* add tosca compliant operational policy */ -- cgit 1.2.3-korg