Unverified Commit c10edf2e authored by Avraam Tsantekidis's avatar Avraam Tsantekidis
Browse files

structure changes

parent 80c9df2d
...@@ -60,3 +60,4 @@ docs/_build/ ...@@ -60,3 +60,4 @@ docs/_build/
target/ target/
ansible/hosts ansible/hosts
MANIFEST
# file GENERATED by distutils, do NOT edit
setup.py
__author__ = 'mike'
...@@ -5,7 +5,6 @@ import logging ...@@ -5,7 +5,6 @@ import logging
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
from kamaki.clients import astakos, cyclades from kamaki.clients import astakos, cyclades
from kamaki.clients import ClientError from kamaki.clients import ClientError
from kamaki.clients.utils import https from kamaki.clients.utils import https
...@@ -38,7 +37,6 @@ class Provisioner: ...@@ -38,7 +37,6 @@ class Provisioner:
# Get the authentication url and token # Get the authentication url and token
auth_url, auth_token = cloud_section['url'], cloud_section['token'] auth_url, auth_token = cloud_section['url'], cloud_section['token']
logger.info("Initiating Astakos Client") logger.info("Initiating Astakos Client")
self.astakos = astakos.AstakosClient(auth_url, auth_token) self.astakos = astakos.AstakosClient(auth_url, auth_token)
......
kamaki kamaki
pytest \ No newline at end of file
\ No newline at end of file
from distutils.core import setup from distutils.core import setup
setup( setup(
name='okeanos-LoD', name='Fokia',
version='', version='0.0.1',
packages=[], packages=['fokia'],
url='', url='https://github.com/grnet/okeanos-LoD',
license='', license='',
author='', author='',
author_email='', author_email='',
description='' description='~okeanos Lambda on Demand project',
) )
import mock
from fokia.provisioner import Provisioner
import sys as s
print "Package six in packages == ", 'six' in s.modules.keys()
def test_find_flavor(monkeypatch):
with mock.patch('kamaki.clients.astakos'):
provisioner = Provisioner("lambda")
assert "C1R1024D40drbd" == provisioner.find_flavor()['name']
[tox] [tox]
envlist = py27,py34 envlist = py27
[testenv] [testenv]
deps= -rrequirements.txt deps=
commands=py.test # or 'nosetests' or ... pytest
mock
-rrequirements.txt
commands=
pip install six
py.test
\ No newline at end of file
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