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:
		| @@ -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': | ||||||
|   | |||||||
| @@ -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. | ||||||
| @@ -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 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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, | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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: | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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, | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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: | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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'. | ||||||
|   | |||||||
| @@ -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: | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
| @@ -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, " \ | ||||||
|   | |||||||
| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 spzala
					spzala