Skip to content

About the work modes... (deprecated)

Pol Alemany edited this page Aug 30, 2019 · 1 revision

Information

This component allows you to work in two possible modes, EMULATION MODE or REAL MODE. The first option, allows you to work in a controlled environment in which the user or developer can try this module without worrying to send anything to a Sonata Service platform (SP). The second option, is the real operation mode.

Information about the modes:

  • REAL MODE - a real Sonata SP is necessary pointed using the ENV variables in DockerFile.

     ENV SONATA_GTK_COMMON tng-gtk-common
     ENV SONATA_GTK_COMMON_PORT 5000
     ENV SONATA_GTK_SP tng-gtk-sp
     ENV SONATA_GTK_SP_PORT 5000
     ENV SONATA_REP tng-rep
     ENV SONATA_REP_PORT 4012
     ENV SONATA_CAT tng-cat
     ENV SONATA_CAT_PORT 4011
    
  • EMULATION MODE - a simulation of the SP was programmed within the mapper.py file to simulate the answers coming from the SP.

How to activate the modes

Simply go to the DocekrFile and check the value of the environment parameter "USE_SONATA". If the value is:

  • True - Real mode is used (the slice manager will send curls to the real SP you configured).
  • False - Emulation mode is used (the slice manager has mocked answers for the SP requests).