Sommelier is a prototype, command-line tool for validating TOSCA application topologies.
All the validation constraints that are checked by Sommelier have been defined in the research paper:
A. Brogi, A. Di Tommaso, J. Soldani.
Validating TOSCA application topologies.
Submitted for publication
If you wish to exploit Sommelier to carry out research activities, or if you wish to reuse its sources, please properly cite the above mentioned paper. Below you can find the BibTex reference:
@article{Sommelier,
author = {Brogi, Antonio and Di~Tommaso, Antonio and Soldani, Jacopo},
title = {Validating TOSCA application topologies},
note = {\em [Submitted for publication]}
}
-
Sommelier takes as input either a YAML file or a CSAR archive containing the TOSCA application topology to be validated.
-
The input is forwarded by Sommelier to the OpenStack TOSCA parser.
-
The TOSCA parser checks whether the TOSCA application is syntactically correct. If so, the parser generates a set of Python objects representing the TOSCA application.
-
The Python objects representing the TOSCA application are returned to Sommelier.
-
Sommelier validates the topology of the TOSCA application by checking whether the Python objects representing such application satisfy all the validation conditions listed in the aforementioned paper.
-
The results of the validation are displayed by Sommelier.
Sommelier is designed to run on bash
shells.
To effectively be executed on a bash
shell, Sommelier requires such shell to support the following commands:
python
,pip
, andtosca-parser
(which can be installed by typingsudo pip install 'tosca-parser'
).
To exploit Sommelier to validate a TOSCA application topology, please proceed as follows:
- Move inside the (cloned) folder of the Sommelier repository (i.e., the folder that contains the Python file
sommelier.py
) - Type
python sommelier.py --template-file=[topology-template-file-path]