
Changes to the backend Heat generator to process the parameters from the TOSCA input section, which would be passed in from the CLI or accept the default value. Thi also handles the similar get_attribute function in the output section. Add handler for the nodejs type, needed for the monitoring use case. Fix the test_blockstorage unit test to match the new expected generator output, due to a change in the Heat Nova server resource type. Change-Id: Id73aba9ebaa6828c676a7a2afdee7ec6ef2579d3
31 lines
1.1 KiB
Python
Executable File
31 lines
1.1 KiB
Python
Executable File
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from translator.hot.syntax.hot_resource import HotResource
|
|
|
|
|
|
class ToscaNodejs(HotResource):
|
|
'''Translate TOSCA node type tosca.nodes.SoftwareComponent.Nodejs.'''
|
|
# TODO(anyone): this is a custom TOSCA type so it should be kept separate
|
|
# from the TOSCA base types; need to come up with a scheme so new custom
|
|
# types can be added by users.
|
|
|
|
toscatype = 'tosca.nodes.SoftwareComponent.Nodejs'
|
|
|
|
def __init__(self, nodetemplate):
|
|
super(ToscaNodejs, self).__init__(nodetemplate)
|
|
pass
|
|
|
|
def handle_properties(self):
|
|
pass
|