Update TOSCA version per spec
The TOSCA spec versioning has been changed to 1_0 from 1_0_0. Change-Id: Id556911d52ae5407c26fbf4fca0d4252cb432ce1
This commit is contained in:
parent
1bdc0ad2a5
commit
d88fdca5fc
@ -148,7 +148,7 @@ class CommonUtilsTest(TestCase):
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
'../toscalib/tests/data/custom_types/rsyslog.yaml')
|
||||
dict = \
|
||||
{'tosca_definitions_version': 'tosca_simple_yaml_1_0_0',
|
||||
{'tosca_definitions_version': 'tosca_simple_yaml_1_0',
|
||||
'description':
|
||||
'RSYSLOG is the Rocket-fast SYStem for LOG processing.\n',
|
||||
'node_types':
|
||||
@ -181,7 +181,7 @@ class CommonUtilsTest(TestCase):
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
'../toscalib/tests/data/custom_types/collectd.yaml')
|
||||
dict = \
|
||||
{'tosca_definitions_version': 'tosca_simple_yaml_1_0_0',
|
||||
{'tosca_definitions_version': 'tosca_simple_yaml_1_0',
|
||||
'description':
|
||||
'RSYSLOG is the Rocket-fast SYStem for LOG processing.\n',
|
||||
'node_types':
|
||||
|
@ -15,7 +15,7 @@
|
||||
# 1.0.0. It describes the definition for TOSCA types including Node Type,
|
||||
# Relationship Type, Capability Type and Interfaces.
|
||||
##########################################################################
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
##########################################################################
|
||||
# Node Type.
|
@ -30,7 +30,7 @@ class EntityType(object):
|
||||
'''TOSCA definition file.'''
|
||||
TOSCA_DEF_FILE = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"TOSCA_definition_1_0_0.yaml")
|
||||
"TOSCA_definition_1_0.yaml")
|
||||
|
||||
loader = translator.toscalib.utils.yamlparser.load_yaml
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
collectd is a daemon which gathers statistics about the system it is running on.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Elasticsearch is an open-source search engine built on top of Apache Lucene, a full-text search-engine library.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Kibana is an open source analytics and visualization platform designed to work with Elasticsearch.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Logstash is a tool for receiving, processing and outputting logs. All kinds of logs. System logs, webserver logs,
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Pizza store app that allows you to explore the features provided by PayPal's REST APIs.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
RSYSLOG is the Rocket-fast SYStem for LOG processing.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash and kibana each on a separate server
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with wordpress, web server and mysql on the same server.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
node_types:
|
||||
tosca.nodes.WebApplication.WordPress:
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
collectd is a daemon which gathers statistics about the system it is running on.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Elasticsearch is an open-source search engine built on top of Apache Lucene,
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Kibana is an open source analytics and visualization platform designed to work with Elasticsearch.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Logstash is a tool for receiving, processing and outputting logs. All kinds
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Pizza store app that allows you to explore the features provided by PayPal's REST APIs.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
RSYSLOG is the Rocket-fast SYStem for LOG processing.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
node_types:
|
||||
tosca.nodes.WebApplication.WordPress:
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Custom type and node definition used to test custom datatypes.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA templates used to test custom datatypes.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA templates used to test custom datatypes.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA templates used to test custom datatypes.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA templates used to test custom datatypes.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA template for testing get_attribute with HOST keyword.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA template for testing get_attribute with HOST keyword.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA template for testing get_attribute with HOST keyword.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing unknown attribute name in get_attribute
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing unknown node template name in get_attribute
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile template to test invalid get_input function.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing an unknown capability property.
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing an unknown input.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing an unknown input.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with 1 network and 1 attached server
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with 3 networks and 1 attached server
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with 1 server attached to existing network
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with 1 network and 2 attached servers
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Demonstrates how to attach a TOSCA BlockStorage node to a Compute node using
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
This use case shows 2 compute instances (2 tiers) with one BlockStorage node
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
This use case is like the Notation1 use case, but also creates two relationship
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
This use case demonstrates how two different TOSCA BlockStorage nodes can be
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing a objectstorage template.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
A template to test host assignment for translated hot resources.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing a template with no inputs.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Tosca template for testing a template with no outputs.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Test Requirements.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with short type name for Compute.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with invalid top-level key: 'node_template'.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
node_types:
|
||||
example.TransactionSubsystem:
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
Service template with topology_template, act as a nested system inside another system.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
topology_template:
|
||||
description: Template of online transaction processing service.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: Template for deploying a single server with predefined properties.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with nodejs and mongodb.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile with wordpress, web server and mysql on the same server.
|
||||
|
@ -1,4 +1,4 @@
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
||||
tosca_definitions_version: tosca_simple_yaml_1_0
|
||||
|
||||
description: >
|
||||
TOSCA simple profile for Compute.
|
||||
|
@ -37,7 +37,7 @@ class ToscaTemplateTest(TestCase):
|
||||
"data/tosca_elk.yaml")
|
||||
|
||||
def test_version(self):
|
||||
self.assertEqual(self.tosca.version, "tosca_simple_yaml_1_0_0")
|
||||
self.assertEqual(self.tosca.version, "tosca_simple_yaml_1_0")
|
||||
|
||||
def test_description(self):
|
||||
expected_description = "TOSCA simple profile with wordpress, " \
|
||||
|
@ -41,7 +41,7 @@ YAML_LOADER = translator.toscalib.utils.yamlparser.load_yaml
|
||||
|
||||
class ToscaTemplate(object):
|
||||
|
||||
VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0_0']
|
||||
VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0']
|
||||
|
||||
'''Load the template data.'''
|
||||
def __init__(self, path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user