Commit Graph

8 Commits

Author SHA1 Message Date
spzala 6837f9266b Create command line entry point
Create a command line entry point for heat-translator.

Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com>

Change-Id: I0a2970480d855d325f11393fade3f49732ef0411
2015-10-02 14:41:37 -04:00
Vahid Hashemian b4315feb45 Handle URLs for input templates and imports
Allow input templates and imported custom types to be provided as URLs
with Heat-Translator auto-detecting the type (file vs URL), and add
necessary unit tests.

Note, since for some test cases currently the required file does not
exist on github, we temporarily use files hosted somewhere else. Once
the patch is merged a follow-on patch will be submitted to fix that
issue and use URLs of the new files that are submitted with this patch.

Change-Id: I79c07c228d9d4de22f84ef384d46e3605b9a649e
Closes-Bug: #1340748
Partially Implements: blueprint tosca-namespaces
2015-10-01 16:12:32 -07:00
spzala b4824100a5 Update doc references
Update doc to remove toscalib references. Completing the work to remoev TOSCA
code from heat-translator herewith.

Change-Id: I6a36b443ea60ed9944caa05f0368623923715425
Implements: blueprint use-tosca-parser-library
2015-09-11 06:35:46 -07:00
srinivas_tadepalli 924cfb0ac8 Supporting logging in heat-translator with config file
Added heat-translator-logging.conf
heat-translator.py and osc/v1/translate.py reads configuration file.
Added warning log messages before raising exceptions
To be added proper log messages in the code with other log levels

Partially Implements: blueprint heat-translator-logging

Change-Id: I5aeb39a83dc8dcc59245968d3dd8a6451d93865c
2015-09-04 12:46:58 +05:30
spzala 827e72e469 Enable Translator with new TOSCA library (1)
Make the first change to use new TOSCA pypi library using updated
requirements. In order to keep Jenkins run smoothly, this work will
be done under few different patches with considerably small changes.

Partially Implements: blueprint use-tosca-parser-library

Change-Id: Icc1fa300e9003d8a6d51f0c69418a52a00816b22
2015-09-02 09:30:56 -07:00
Vahid Hashemian 1d096b3852 Add full support for PortDef data type
Add translation support for tosca.datatypes.network.PortDef
data type and create unit tests for it.

Change-Id: Iec56590d2d00cfb1a36f03339bd041b9ab35dd12
Closes-Bug: #1477735
2015-07-27 12:43:55 -07:00
spzala d75013e931 TOSCA: keep the license formatting consistent
Correct the license format.

Change-Id: Ia6de299e8b6e966db943753fee602ddd219c85de
2015-05-12 11:07:07 -07:00
spzala 3a10532067 TOSCA: Create a test CLI program
This program provide a good usage to test the Heat-Translator tool on the
command line with expection of similar usage via Heat python client in near
future. The TOSCA hello world use case is implemented for quick testing
as well.

implements blueprint tosca-translator-cli-test-utility

Change-Id: Ia4ddf65aafcbe440ea9551ccc2648de4a7c88c97
2015-05-11 09:25:30 -07:00