![Manpreet Kaur](/assets/img/avatar_default.png)
Hacking 4.0.0 has introduce new optimal assert checks. Please refer [1] for more details. Additionally Hacking has enabled some new checks by default, and the next update to the new release will introduce failures in heat-translator pep8 jobs. The main impact is from I122d250cab90964c346e9d53046a97c25054bc00. This patch adopts new optimal assert check. [H211]: Change assertTrue(isinstance(A, B)) to assertIsInstance(A, B). On bumping up the hacking version, below mention pep8 jobs failed. This patch address the issues now, when the new hacking release starts being used it will not cause a disruption. pep8 run-test: commands[0] | flake8 ./translator/tests/test_utils.py:51:13: H211: Use assert{Is,IsNot}instance self.assertTrue( [1] https://docs.openstack.org/releasenotes/hacking/unreleased.html#relnotes-4-0-0 Change-Id: Iae79b8c5c6873d6bf5f6ef1b427dc8c60bade03f
Team and repository tags
Heat-Translator
Overview
Heat-Translator is an Openstack project and licensed under Apache 2. It is a command line tool which takes non-Heat templates as an input and produces a Heat Orchestration Template (HOT) which can be deployed by Heat. Currently the development and testing is done with an aim to translate OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) templates to HOT. However, the tool is designed to be easily extended to use with any format other than TOSCA.
Architecture
Heat-Translator project takes a non-Heat template (e.g. TOSCA flat YAML template or template embedded in TOSCA Cloud Service Archive (CSAR) format) as an input, calls an appropriate Parser (e.g. TOSCA Parser) per the type of input template to parse it and create an in-memory graph, maps it to Heat resources and then produces a Heat Orchestration Template (HOT) as an output.
How To Use
Please refer to doc/source/usage.rst
Directory Structure
Three main directories related to the heat-translator are:
- hot: It is the generator, that has logic of converting TOSCA in memory graph to HOT YAML files.
- common: It has all the file that can support the execution of parser and generator.
- tests: It contains test programs and more importantly several templates which are used for testing.
Project Info
- License: Apache License, Version 2.0
- Documentation: http://docs.openstack.org/heat-translator/
- Bugs and Blueprints: https://storyboard.openstack.org/#!/project/openstack/heat-translator
- Source: http://opendev.org/openstack/heat-translator/
- IRC Channel: #openstack-heat-translator