Skip to content

di-unipi-socc/Sommelier

Repository files navigation

Sommelier

Sommelier is a prototype, command-line tool for validating TOSCA application topologies.

About

Validation constraints

All the validation constraints that are checked by Sommelier have been defined in the research paper:

A. Brogi, A. Di Tommaso, J. Soldani.
Sommelier: A Tool for Validating TOSCA Application Topologies.
In: Pires L., Hammoudi S., Selic B. (eds) Model-Driven Engineering and Software Development. MODELSWARD 2017. Communications in Computer and Information Science, vol 880. Springer, Cham

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:

@inproceedings{sommelier,
  author={Brogi, Antonio and Di~Tommaso, Antonio and Soldani, Jacopo},
  editor={Pires, Lu{\'i}s Ferreira and Hammoudi, Slimane and Selic, Bran},
  title={Sommelier: A Tool for Validating TOSCA Application Topologies},
  booktitle={Model-Driven Engineering and Software Development},
  year={2018},
  publisher={Springer International Publishing},
  pages={1--22},
  isbn={978-3-319-94764-8}
} 

How Sommelier works

sommelier

  1. Sommelier takes as input either a YAML file or a CSAR archive containing the TOSCA application topology to be validated.

  2. The input is forwarded by Sommelier to the OpenStack TOSCA parser.

  3. 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.

  4. The Python objects representing the TOSCA application are returned to Sommelier.

  5. 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.

  6. The results of the validation are displayed by Sommelier.

Using Sommelier

Sommelier is designed to run on bash shells.

Prerequisites

To effectively be executed on a bash shell, Sommelier requires such shell to support the following commands:

  • python,
  • pip, and
  • tosca-parser (which can be installed by typing sudo pip install 'tosca-parser').

Running Sommelier

To exploit Sommelier to validate a TOSCA application topology, please proceed as follows:

  1. Move inside the (cloned) folder of the Sommelier repository (i.e., the folder that contains the Python file sommelier.py)
  2. Type python sommelier.py --template-file=[topology-template-file-path]

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •