Merge "Update TOSCA version per spec"

This commit is contained in:
Jenkins 2015-07-14 16:38:43 +00:00 committed by Gerrit Code Review
commit dcd77567e5
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__)),
'../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':

View File

@ -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.

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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,

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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.

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:
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: >
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: >
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: >
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: >
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: >
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: >
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:
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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: >
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:
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: >
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:
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: >
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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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, " \

View File

@ -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):