diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-07-18 06:39:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-07-18 06:39:55 +0000 |
commit | 38bf8bc7d385f1ee984df857f1d9231ce15cbbb5 (patch) | |
tree | 2e95385b0a21a7af15246f7d6bc61f103facb340 /src/onaptests/configuration/basic_clamp_settings.py | |
parent | 7d0468d3c4590fcb9d80dea83f8550dab39b35ae (diff) | |
parent | 939f1933c8635a18de428c696c97cc5d8600abff (diff) |
Merge "Add pylama into checks"
Diffstat (limited to 'src/onaptests/configuration/basic_clamp_settings.py')
-rw-r--r-- | src/onaptests/configuration/basic_clamp_settings.py | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/onaptests/configuration/basic_clamp_settings.py b/src/onaptests/configuration/basic_clamp_settings.py index 3eaad2d..ac99278 100644 --- a/src/onaptests/configuration/basic_clamp_settings.py +++ b/src/onaptests/configuration/basic_clamp_settings.py @@ -1,7 +1,7 @@ from yaml import load, SafeLoader from onaptests.utils.resources import get_resource_location -from .settings import * # pylint: disable=W0614 +from .settings import * # noqa """ Specific Basic clamp settings.""" CLEANUP_FLAG = False @@ -9,32 +9,32 @@ CLAMP_DISTRIBUTION_TIMER = 10 # pylint: disable=bad-whitespace # The ONAP part -SERVICE_DETAILS=("Onboarding, enriching a model with TCA." + - "Design a loop with Clamp and deploy it in Policy and DCAE") -SERVICE_COMPONENTS="SDC, CLAMP, POLICY, DCAE, DMAAP" +SERVICE_DETAILS = ("Onboarding, enriching a model with TCA." + + "Design a loop with Clamp and deploy it in Policy and DCAE") +SERVICE_COMPONENTS = "SDC, CLAMP, POLICY, DCAE, DMAAP" VENDOR_NAME = "basiclamp_vendor" VSP_NAME = "basiclamp_vsp" OPERATIONAL_POLICIES = [ - { - "name": "MinMax", - "policy_type": "onap.policies.controlloop.guard.common.MinMax", - "policy_version": "1.0.0", - "config_function": "add_minmax_config", #func - "configuration": { - "min": 1, - "max": 10 + { + "name": "MinMax", + "policy_type": "onap.policies.controlloop.guard.common.MinMax", + "policy_version": "1.0.0", + "config_function": "add_minmax_config", # func + "configuration": { + "min": 1, + "max": 10 + } + }, + { + "name": "FrequencyLimiter", + "policy_type": "onap.policies.controlloop.guard.common.FrequencyLimiter", + "policy_version": "1.0.0", + "config_function": "add_frequency_limiter", # func + "configuration": {} } - }, - { - "name": "FrequencyLimiter", - "policy_type": "onap.policies.controlloop.guard.common.FrequencyLimiter", - "policy_version": "1.0.0", - "config_function": "add_frequency_limiter", #func - "configuration": {} - } ] # if a yaml file is define, retrieve info from this yaml files @@ -49,7 +49,7 @@ try: SERVICE_NAME = next(iter(yaml_config_file.keys())) VF_NAME = SERVICE_NAME except ValueError: - SERVICE_NAME = "" # Fill me - VF_NAME = "" # Fill me + SERVICE_NAME = "" # Fill me + VF_NAME = "" # Fill me MODEL_YAML_TEMPLATE = None |