aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/onaptests/configuration/tca-microservice.yaml32
-rw-r--r--src/onaptests/steps/instantiate/service_ala_carte.py4
-rw-r--r--src/onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zipbin2719 -> 2716 bytes
-rw-r--r--src/onaptests/templates/vnf-services/basic_vm-service.yaml4
-rw-r--r--src/onaptests/templates/vnf-services/basic_vm_macro-service.yaml4
-rw-r--r--src/onaptests/templates/vnf-services/basic_vm_macro_stability-service.yaml4
6 files changed, 36 insertions, 12 deletions
diff --git a/src/onaptests/configuration/tca-microservice.yaml b/src/onaptests/configuration/tca-microservice.yaml
index 0f13c53..574dd10 100644
--- a/src/onaptests/configuration/tca-microservice.yaml
+++ b/src/onaptests/configuration/tca-microservice.yaml
@@ -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.
@@ -20,7 +20,7 @@ tosca_definitions_version: cloudify_dsl_1_3
imports:
- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
- plugin:k8splugin?version=>=3.4.3,<4.0.0
- - plugin:clamppolicyplugin?version=1.1.0
+ - plugin:clamppolicyplugin?version=1.1.1
inputs:
service_name:
type: string
@@ -37,13 +37,13 @@ inputs:
default: "mongodb://dcae-mongohost/dcae-tcagen2"
tag_version:
type: string
- default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1"
+ default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.3.1"
tca.aai.password:
type: string
default: "DCAE"
tca.aai.url:
type: string
- default: "http://aai.onap.svc.cluster.local"
+ default: "https://aai.onap.svc.cluster.local:8443"
tca.aai.username:
type: string
default: "DCAE"
@@ -62,6 +62,19 @@ inputs:
policy_id:
type: string
default: "onap.restart.tca"
+ cpu_limit:
+ type: string
+ default: "2000m"
+ cpu_request:
+ type: string
+ default: "1000m"
+ memory_limit:
+ type: string
+ default: "2048Mi"
+ memory_request:
+ type: string
+ default: "1024Mi"
+
node_templates:
docker.tca:
type: dcae.nodes.ContainerizedServiceComponent
@@ -123,6 +136,17 @@ node_templates:
type: http
image:
get_input: tag_version
+ resource_config:
+ limits:
+ cpu:
+ get_input: cpu_limit
+ memory:
+ get_input: memory_limit
+ requests:
+ cpu:
+ get_input: cpu_request
+ memory:
+ get_input: memory_request
log_info:
log_directory:
get_input: log_directory
diff --git a/src/onaptests/steps/instantiate/service_ala_carte.py b/src/onaptests/steps/instantiate/service_ala_carte.py
index 8ce2871..4274a9f 100644
--- a/src/onaptests/steps/instantiate/service_ala_carte.py
+++ b/src/onaptests/steps/instantiate/service_ala_carte.py
@@ -70,7 +70,7 @@ class ServiceAlaCarteInstantiateStep(BaseStep):
except ResourceNotFound:
self._logger.info("Owning entity not found, create it")
owning_entity = AaiOwningEntity.create(settings.OWNING_ENTITY)
- vid_project = Project.create(settings.PROJECT)
+ vid_project = Project(settings.PROJECT)
service_instantiation = ServiceInstantiation.instantiate_so_ala_carte(
service,
@@ -197,7 +197,7 @@ class YamlTemplateServiceAlaCarteInstantiateStep(YamlTemplateBaseStep):
except ResourceNotFound:
self._logger.info("Owning entity not found, create it")
owning_entity = AaiOwningEntity.create(settings.OWNING_ENTITY)
- vid_project = Project.create(settings.PROJECT)
+ vid_project = Project(settings.PROJECT)
# Before instantiating, be sure that the service has been distributed
self._logger.info("******** Check Service Distribution *******")
diff --git a/src/onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zip b/src/onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zip
index bd15d47..bb65587 100644
--- a/src/onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zip
+++ b/src/onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zip
Binary files differ
diff --git a/src/onaptests/templates/vnf-services/basic_vm-service.yaml b/src/onaptests/templates/vnf-services/basic_vm-service.yaml
index 4609bae..227ec48 100644
--- a/src/onaptests/templates/vnf-services/basic_vm-service.yaml
+++ b/src/onaptests/templates/vnf-services/basic_vm-service.yaml
@@ -5,7 +5,7 @@ basic_vm:
heat_files_to_upload: onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zip
vnf_parameters: [
{"name": "ubuntu20_image_name",
- "value": "ubuntu-agent"
+ "value": "ubuntu-20.04"
},
{"name": "ubuntu20_key_name",
"value": "cleouverte"
@@ -19,7 +19,7 @@ h+t2lrzvKUSWGZbX+dLiFiEpjsUL3tDqzkEMNUn4pdv69OJuzWHCxRWPfdrY9Wg0j3mJesP29EBh\
t+w+EC9/kBKq+1VKdmsXUXAcjEvjovVL8l1BrX3BY0R8D imported-openssh-key"
},
{"name": "ubuntu20_flavor_name",
- "value": "m1.smaller"
+ "value": "m1.small"
},
{"name": "VM_name",
"value": "ubuntu20agent-VM-01"
diff --git a/src/onaptests/templates/vnf-services/basic_vm_macro-service.yaml b/src/onaptests/templates/vnf-services/basic_vm_macro-service.yaml
index a129d41..00f66d5 100644
--- a/src/onaptests/templates/vnf-services/basic_vm_macro-service.yaml
+++ b/src/onaptests/templates/vnf-services/basic_vm_macro-service.yaml
@@ -18,7 +18,7 @@ basic_vm_macro:
- vf_module_name: base_ubuntu20
parameters: [
{"name": "ubuntu20_image_name",
- "value": "Ubuntu_2004"
+ "value": "ubuntu-20.04"
},
{"name": "ubuntu20_key_name",
"value": "cleouverte"
@@ -32,7 +32,7 @@ basic_vm_macro:
t+w+EC9/kBKq+1VKdmsXUXAcjEvjovVL8l1BrX3BY0R8D imported-openssh-key"
},
{"name": "ubuntu20_flavor_name",
- "value": "m1.smaller"
+ "value": "m1.small"
},
{"name": "VM_name",
"value": "ubuntu20agent-VM-01"
diff --git a/src/onaptests/templates/vnf-services/basic_vm_macro_stability-service.yaml b/src/onaptests/templates/vnf-services/basic_vm_macro_stability-service.yaml
index fd56a37..62170bd 100644
--- a/src/onaptests/templates/vnf-services/basic_vm_macro_stability-service.yaml
+++ b/src/onaptests/templates/vnf-services/basic_vm_macro_stability-service.yaml
@@ -18,7 +18,7 @@ basic_vm_macro:
- vf_module_name: base_ubuntu20
parameters: [
{"name": "ubuntu20_image_name",
- "value": "Ubuntu_2004"
+ "value": "ubuntu-20.04"
},
{"name": "ubuntu20_key_name",
"value": "cleouverte"
@@ -32,7 +32,7 @@ basic_vm_macro:
t+w+EC9/kBKq+1VKdmsXUXAcjEvjovVL8l1BrX3BY0R8D imported-openssh-key"
},
{"name": "ubuntu20_flavor_name",
- "value": "m1.smaller"
+ "value": "m1.small"
},
{"name": "VM_name",
"value": "ubuntu20agent-VM-01"