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:
spzala 2015-07-11 10:25:51 -07:00
parent 1bdc0ad2a5
commit d88fdca5fc
58 changed files with 59 additions and 59 deletions

View File

@ -148,7 +148,7 @@ class CommonUtilsTest(TestCase):
os.path.dirname(os.path.abspath(__file__)), os.path.dirname(os.path.abspath(__file__)),
'../toscalib/tests/data/custom_types/rsyslog.yaml') '../toscalib/tests/data/custom_types/rsyslog.yaml')
dict = \ dict = \
{'tosca_definitions_version': 'tosca_simple_yaml_1_0_0', {'tosca_definitions_version': 'tosca_simple_yaml_1_0',
'description': 'description':
'RSYSLOG is the Rocket-fast SYStem for LOG processing.\n', 'RSYSLOG is the Rocket-fast SYStem for LOG processing.\n',
'node_types': 'node_types':
@ -181,7 +181,7 @@ class CommonUtilsTest(TestCase):
os.path.dirname(os.path.abspath(__file__)), os.path.dirname(os.path.abspath(__file__)),
'../toscalib/tests/data/custom_types/collectd.yaml') '../toscalib/tests/data/custom_types/collectd.yaml')
dict = \ dict = \
{'tosca_definitions_version': 'tosca_simple_yaml_1_0_0', {'tosca_definitions_version': 'tosca_simple_yaml_1_0',
'description': 'description':
'RSYSLOG is the Rocket-fast SYStem for LOG processing.\n', 'RSYSLOG is the Rocket-fast SYStem for LOG processing.\n',
'node_types': 'node_types':

View File

@ -15,7 +15,7 @@
# 1.0.0. It describes the definition for TOSCA types including Node Type, # 1.0.0. It describes the definition for TOSCA types including Node Type,
# Relationship Type, Capability Type and Interfaces. # 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. # Node Type.

View File

@ -30,7 +30,7 @@ class EntityType(object):
'''TOSCA definition file.''' '''TOSCA definition file.'''
TOSCA_DEF_FILE = os.path.join( TOSCA_DEF_FILE = os.path.join(
os.path.dirname(os.path.abspath(__file__)), 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 loader = translator.toscalib.utils.yamlparser.load_yaml

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
collectd is a daemon which gathers statistics about the system it is running on. collectd is a daemon which gathers statistics about the system it is running on.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Elasticsearch is an open-source search engine built on top of Apache Lucene, a full-text search-engine library. Elasticsearch is an open-source search engine built on top of Apache Lucene, a full-text search-engine library.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Kibana is an open source analytics and visualization platform designed to work with Elasticsearch. Kibana is an open source analytics and visualization platform designed to work with Elasticsearch.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Logstash is a tool for receiving, processing and outputting logs. All kinds of logs. System logs, webserver logs, Logstash is a tool for receiving, processing and outputting logs. All kinds of logs. System logs, webserver logs,

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Pizza store app that allows you to explore the features provided by PayPal's REST APIs. Pizza store app that allows you to explore the features provided by PayPal's REST APIs.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
RSYSLOG is the Rocket-fast SYStem for LOG processing. RSYSLOG is the Rocket-fast SYStem for LOG processing.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash and kibana each on a separate server This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash and kibana each on a separate server

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with wordpress, web server and mysql on the same server. TOSCA simple profile with wordpress, web server and mysql on the same server.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
node_types: node_types:
tosca.nodes.WebApplication.WordPress: tosca.nodes.WebApplication.WordPress:

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
collectd is a daemon which gathers statistics about the system it is running on. collectd is a daemon which gathers statistics about the system it is running on.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Elasticsearch is an open-source search engine built on top of Apache Lucene, Elasticsearch is an open-source search engine built on top of Apache Lucene,

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Kibana is an open source analytics and visualization platform designed to work with Elasticsearch. Kibana is an open source analytics and visualization platform designed to work with Elasticsearch.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Logstash is a tool for receiving, processing and outputting logs. All kinds Logstash is a tool for receiving, processing and outputting logs. All kinds

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Pizza store app that allows you to explore the features provided by PayPal's REST APIs. Pizza store app that allows you to explore the features provided by PayPal's REST APIs.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
RSYSLOG is the Rocket-fast SYStem for LOG processing. RSYSLOG is the Rocket-fast SYStem for LOG processing.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
node_types: node_types:
tosca.nodes.WebApplication.WordPress: tosca.nodes.WebApplication.WordPress:

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Custom type and node definition used to test custom datatypes. Custom type and node definition used to test custom datatypes.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA templates used to test custom datatypes. TOSCA templates used to test custom datatypes.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA templates used to test custom datatypes. TOSCA templates used to test custom datatypes.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA templates used to test custom datatypes. TOSCA templates used to test custom datatypes.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA templates used to test custom datatypes. TOSCA templates used to test custom datatypes.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA template for testing get_attribute with HOST keyword. TOSCA template for testing get_attribute with HOST keyword.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA template for testing get_attribute with HOST keyword. TOSCA template for testing get_attribute with HOST keyword.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA template for testing get_attribute with HOST keyword. TOSCA template for testing get_attribute with HOST keyword.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing unknown attribute name in get_attribute Tosca template for testing unknown attribute name in get_attribute

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing unknown node template name in get_attribute Tosca template for testing unknown node template name in get_attribute

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile template to test invalid get_input function. TOSCA simple profile template to test invalid get_input function.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing an unknown capability property. Tosca template for testing an unknown capability property.

View File

@ -1,5 +1,5 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing an unknown input. Tosca template for testing an unknown input.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing an unknown input. Tosca template for testing an unknown input.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with 1 network and 1 attached server TOSCA simple profile with 1 network and 1 attached server

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with 3 networks and 1 attached server TOSCA simple profile with 3 networks and 1 attached server

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with 1 server attached to existing network TOSCA simple profile with 1 server attached to existing network

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with 1 network and 2 attached servers TOSCA simple profile with 1 network and 2 attached servers

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Demonstrates how to attach a TOSCA BlockStorage node to a Compute node using Demonstrates how to attach a TOSCA BlockStorage node to a Compute node using

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
This use case shows 2 compute instances (2 tiers) with one BlockStorage node This use case shows 2 compute instances (2 tiers) with one BlockStorage node

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
This use case is like the Notation1 use case, but also creates two relationship This use case is like the Notation1 use case, but also creates two relationship

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
This use case demonstrates how two different TOSCA BlockStorage nodes can be This use case demonstrates how two different TOSCA BlockStorage nodes can be

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing a objectstorage template. Tosca template for testing a objectstorage template.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
A template to test host assignment for translated hot resources. A template to test host assignment for translated hot resources.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing a template with no inputs. Tosca template for testing a template with no inputs.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Tosca template for testing a template with no outputs. Tosca template for testing a template with no outputs.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Test Requirements. Test Requirements.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with short type name for Compute. TOSCA simple profile with short type name for Compute.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with invalid top-level key: 'node_template'. TOSCA simple profile with invalid top-level key: 'node_template'.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
node_types: node_types:
example.TransactionSubsystem: example.TransactionSubsystem:

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
Service template with topology_template, act as a nested system inside another system. Service template with topology_template, act as a nested system inside another system.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
topology_template: topology_template:
description: Template of online transaction processing service. description: Template of online transaction processing service.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash

View File

@ -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. description: Template for deploying a single server with predefined properties.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with nodejs and mongodb. TOSCA simple profile with nodejs and mongodb.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile with wordpress, web server and mysql on the same server. TOSCA simple profile with wordpress, web server and mysql on the same server.

View File

@ -1,4 +1,4 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0 tosca_definitions_version: tosca_simple_yaml_1_0
description: > description: >
TOSCA simple profile for Compute. TOSCA simple profile for Compute.

View File

@ -37,7 +37,7 @@ class ToscaTemplateTest(TestCase):
"data/tosca_elk.yaml") "data/tosca_elk.yaml")
def test_version(self): 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): def test_description(self):
expected_description = "TOSCA simple profile with wordpress, " \ expected_description = "TOSCA simple profile with wordpress, " \

View File

@ -41,7 +41,7 @@ YAML_LOADER = translator.toscalib.utils.yamlparser.load_yaml
class ToscaTemplate(object): class ToscaTemplate(object):
VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0_0'] VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0']
'''Load the template data.''' '''Load the template data.'''
def __init__(self, path): def __init__(self, path):