diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2024-01-31 08:30:41 +0100 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2024-02-02 08:30:15 +0100 |
commit | 440df5e3af8446ddaf1e7ab9ed5abbbe439f9a06 (patch) | |
tree | 13ee8f0a3839b18eff32a1bcab25a6c5baf00364 /src/onaptests/configuration/basic_clamp_settings.py | |
parent | 6a3e189d7fac6ec562f8785c71ed87663ef0c311 (diff) |
Refactor tests to use SDC v2 onapsdk module
Refactored SDC allows to archive and delete SDC resources
Remove unmaintained test basic_clamp
Issue-ID: TEST-404
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I11e4be6f4567098b20733879e393c689766a9c6e
Diffstat (limited to 'src/onaptests/configuration/basic_clamp_settings.py')
-rw-r--r-- | src/onaptests/configuration/basic_clamp_settings.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/onaptests/configuration/basic_clamp_settings.py b/src/onaptests/configuration/basic_clamp_settings.py deleted file mode 100644 index 1277f5f..0000000 --- a/src/onaptests/configuration/basic_clamp_settings.py +++ /dev/null @@ -1,53 +0,0 @@ -from yaml import SafeLoader, load - -from onaptests.utils.resources import get_resource_location - -from .settings import * # noqa - -CLEANUP_FLAG = False -CLAMP_DISTRIBUTION_TIMER = 10 - -# The ONAP part -SERVICE_DETAILS = ("Onboarding, enriching a model with TCA." + - "Design a loop with Clamp and deploy it in Policy and DCAE") - -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": "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 -# if not declare the parameters in the settings -SERVICE_YAML_TEMPLATE = get_resource_location("templates/vnf-services/basic_clamp-service.yaml") -CONFIGURATION_PATH = get_resource_location("configuration/") - -try: - # Try to retrieve the SERVICE NAME from the yaml file - with open(SERVICE_YAML_TEMPLATE, "r", encoding="utf-8") as yaml_template: - yaml_config_file = load(yaml_template, SafeLoader) - SERVICE_NAME = next(iter(yaml_config_file.keys())) - VF_NAME = SERVICE_NAME -except ValueError: - SERVICE_NAME = "" # Fill me - VF_NAME = "" # Fill me - -MODEL_YAML_TEMPLATE = None |