Commit e482b6df authored by Stavros Sachtouris's avatar Stavros Sachtouris

Restructure tests, distinct functional from unit

parent 211438f7
......@@ -11,7 +11,7 @@ Alternatively, you can, of course, use the grnet repository to build the image:
::
$ docker build -t snf-occi-client:<version> https://github.com/grnet/snf-occi.git#master:test
$ docker build -t snf-occi-client:<version> https://github.com/grnet/snf-occi.git#master:soi/tests/functional
Run a new container
-------------------
......
# Copyright (C) 2016 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
This it the entry point for paste deploy .
Paste config file needs to point to egg:<package name>:<entrypoint name>:
use = egg:snfOCCI#sample_app
sample_app entry point is defined in setup.py:
entry_points='''
[paste.app_factory]
sample_app = soi:main
''',
which point to this function call (<module name>:function).
"""
from soi import wsgi
from soi import synnefo
# W0613:unused args
# pylint: disable=W0613
def main(global_config, **settings):
"""This is the entry point for paste into the Synnefo OCCI Interface"""
factory = wsgi.SNFOCCIMiddleware.factory({})
return factory(synnefo.call_kamaki)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment