Merge "Move and rename functional tests"
@@ -1,8 +0,0 @@
|
|||||||
[murano]
|
|
||||||
auth_url = http://127.0.0.1:5000/v2.0/
|
|
||||||
user = admin
|
|
||||||
password = admin
|
|
||||||
tenant = admin
|
|
||||||
murano_url = http://127.0.0.1:8082/v1/
|
|
||||||
linux_image = default_linux
|
|
||||||
windows_image = default_windows
|
|
@@ -28,4 +28,4 @@ TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest}
|
|||||||
# Add tempest source tree to PYTHONPATH
|
# Add tempest source tree to PYTHONPATH
|
||||||
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
|
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
|
||||||
|
|
||||||
nosetests -sv api/v1
|
nosetests -sv ../murano/tests/functional/api/v1
|
||||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -15,7 +15,7 @@
|
|||||||
from tempest import exceptions
|
from tempest import exceptions
|
||||||
from tempest.test import attr
|
from tempest.test import attr
|
||||||
|
|
||||||
from functionaltests.api import base
|
from murano.tests.functional.api import base
|
||||||
|
|
||||||
|
|
||||||
class TestEnvironments(base.TestCase):
|
class TestEnvironments(base.TestCase):
|
@@ -21,7 +21,7 @@ from tempest.test import attr
|
|||||||
|
|
||||||
from tempest import exceptions
|
from tempest import exceptions
|
||||||
|
|
||||||
from functionaltests.api import base
|
from murano.tests.functional.api import base
|
||||||
|
|
||||||
|
|
||||||
class TestCaseRepository(base.TestCase):
|
class TestCaseRepository(base.TestCase):
|
@@ -17,7 +17,7 @@ import testtools
|
|||||||
from tempest import exceptions
|
from tempest import exceptions
|
||||||
from tempest.test import attr
|
from tempest.test import attr
|
||||||
|
|
||||||
from functionaltests.api import base
|
from murano.tests.functional.api import base
|
||||||
|
|
||||||
|
|
||||||
class TestServices(base.TestCase):
|
class TestServices(base.TestCase):
|
@@ -15,7 +15,7 @@
|
|||||||
from tempest import exceptions
|
from tempest import exceptions
|
||||||
from tempest.test import attr
|
from tempest.test import attr
|
||||||
|
|
||||||
from functionaltests.api import base
|
from murano.tests.functional.api import base
|
||||||
|
|
||||||
|
|
||||||
class TestSessions(base.TestCase):
|
class TestSessions(base.TestCase):
|
@@ -24,7 +24,7 @@ import uuid
|
|||||||
from heatclient import client as heatclient
|
from heatclient import client as heatclient
|
||||||
from keystoneclient.v2_0 import client as ksclient
|
from keystoneclient.v2_0 import client as ksclient
|
||||||
|
|
||||||
import functionaltests.engine.config as cfg
|
import murano.tests.functional.engine.config as cfg
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.cfg.CONF
|
CONF = cfg.cfg.CONF
|
||||||
@@ -149,6 +149,7 @@ class MuranoBase(testtools.TestCase, testtools.testcase.WithAttributes,
|
|||||||
cls.packages_path = '/'.join(cls.location.split('/')[:-1:])
|
cls.packages_path = '/'.join(cls.location.split('/')[:-1:])
|
||||||
|
|
||||||
def upload_package(package_name, body, app):
|
def upload_package(package_name, body, app):
|
||||||
|
#TODO(efedorova): Use muranoclient to upload packages
|
||||||
files = {'%s' % package_name: open(
|
files = {'%s' % package_name: open(
|
||||||
os.path.join(cls.packages_path, app), 'rb')}
|
os.path.join(cls.packages_path, app), 'rb')}
|
||||||
|
|
8
murano/tests/functional/engine/config.conf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[murano]
|
||||||
|
auth_url = http://172.16.116.5:5000/v2.0/
|
||||||
|
user = kate
|
||||||
|
password = swordfish
|
||||||
|
tenant = kate
|
||||||
|
murano_url = http://localhost:8082/v1/
|
||||||
|
linux_image = default_linux
|
||||||
|
windows_image = default_windows
|
@@ -23,8 +23,8 @@ from murano.api.v1 import request_statistics
|
|||||||
from murano.common import rpc
|
from murano.common import rpc
|
||||||
from murano.openstack.common import timeutils
|
from murano.openstack.common import timeutils
|
||||||
from murano.openstack.common import wsgi
|
from murano.openstack.common import wsgi
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
from murano.tests import utils
|
from murano.tests.unit import utils
|
||||||
|
|
||||||
TEST_DEFAULT_LOGLEVELS = {'migrate': logging.WARN, 'sqlalchemy': logging.WARN}
|
TEST_DEFAULT_LOGLEVELS = {'migrate': logging.WARN, 'sqlalchemy': logging.WARN}
|
||||||
|
|
@@ -19,7 +19,7 @@ from murano.api.v1 import catalog
|
|||||||
from murano.common import policy
|
from murano.common import policy
|
||||||
from murano.db.catalog import api as db_catalog_api
|
from murano.db.catalog import api as db_catalog_api
|
||||||
from murano.packages import load_utils
|
from murano.packages import load_utils
|
||||||
import murano.tests.api.base as test_base
|
import murano.tests.unit.api.base as test_base
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
@@ -21,8 +21,8 @@ from murano.api.v1 import environments
|
|||||||
from murano.common import policy
|
from murano.common import policy
|
||||||
from murano.db import models
|
from murano.db import models
|
||||||
from murano.openstack.common import timeutils
|
from murano.openstack.common import timeutils
|
||||||
import murano.tests.api.base as tb
|
import murano.tests.unit.api.base as tb
|
||||||
import murano.tests.utils as test_utils
|
import murano.tests.unit.utils as test_utils
|
||||||
|
|
||||||
|
|
||||||
@mock.patch.object(policy, 'check')
|
@mock.patch.object(policy, 'check')
|
@@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.common.helpers import token_sanitizer
|
from murano.common.helpers import token_sanitizer
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
class TokenSanitizerTests(base.MuranoTestCase):
|
class TokenSanitizerTests(base.MuranoTestCase):
|
@@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.common import utils
|
from murano.common import utils
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
class IsDifferentTests(base.MuranoTestCase):
|
class IsDifferentTests(base.MuranoTestCase):
|
@@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.common import utils
|
from murano.common import utils
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
class TraverseHelperTests(base.MuranoTestCase):
|
class TraverseHelperTests(base.MuranoTestCase):
|
@@ -12,8 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
TEMPLATE = {
|
TEMPLATE = {
|
@@ -20,7 +20,7 @@ from sqlalchemy import exc
|
|||||||
from murano.db.migration import migration
|
from murano.db.migration import migration
|
||||||
from murano.db import models # noqa
|
from murano.db import models # noqa
|
||||||
from murano.openstack.common.db.sqlalchemy import utils as db_utils
|
from murano.openstack.common.db.sqlalchemy import utils as db_utils
|
||||||
from murano.tests.db.migration import test_migrations_base as base
|
from murano.tests.unit.db.migration import test_migrations_base as base
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
@@ -17,8 +17,8 @@ from webob import exc
|
|||||||
|
|
||||||
from murano.db.catalog import api
|
from murano.db.catalog import api
|
||||||
from murano.openstack.common.db import exception as db_exception
|
from murano.openstack.common.db import exception as db_exception
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
from murano.tests import utils
|
from murano.tests.unit import utils
|
||||||
|
|
||||||
|
|
||||||
class CatalogDBTestCase(base.MuranoWithDBTestCase):
|
class CatalogDBTestCase(base.MuranoWithDBTestCase):
|
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
from murano.db import models
|
from murano.db import models
|
||||||
from murano.db import session
|
from murano.db import session
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
class TestModels(base.MuranoWithDBTestCase):
|
class TestModels(base.MuranoWithDBTestCase):
|
@@ -21,7 +21,7 @@ from murano.dsl import executor
|
|||||||
from murano.dsl import murano_object
|
from murano.dsl import murano_object
|
||||||
from murano.dsl import results_serializer
|
from murano.dsl import results_serializer
|
||||||
from murano.engine import environment
|
from murano.engine import environment
|
||||||
from murano.tests.dsl.foundation import object_model
|
from murano.tests.unit.dsl.foundation import object_model
|
||||||
|
|
||||||
|
|
||||||
class Runner(object):
|
class Runner(object):
|
@@ -18,9 +18,9 @@ import os.path
|
|||||||
|
|
||||||
import eventlet.debug
|
import eventlet.debug
|
||||||
|
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
from murano.tests.dsl.foundation import runner
|
from murano.tests.unit.dsl.foundation import runner
|
||||||
from murano.tests.dsl.foundation import test_class_loader
|
from murano.tests.unit.dsl.foundation import test_class_loader
|
||||||
|
|
||||||
|
|
||||||
class DslTestCase(base.MuranoTestCase):
|
class DslTestCase(base.MuranoTestCase):
|
||||||
@@ -29,7 +29,7 @@ class DslTestCase(base.MuranoTestCase):
|
|||||||
directory = os.path.join(os.path.dirname(
|
directory = os.path.join(os.path.dirname(
|
||||||
inspect.getfile(self.__class__)), 'meta')
|
inspect.getfile(self.__class__)), 'meta')
|
||||||
root_meta_directory = os.path.join(
|
root_meta_directory = os.path.join(
|
||||||
os.path.dirname(__file__), '../../../../meta')
|
os.path.dirname(__file__), '../../../../../meta')
|
||||||
sys_class_loader = test_class_loader.TestClassLoader(
|
sys_class_loader = test_class_loader.TestClassLoader(
|
||||||
os.path.join(root_meta_directory, 'io.murano/Classes'),
|
os.path.join(root_meta_directory, 'io.murano/Classes'),
|
||||||
'murano.io')
|
'murano.io')
|
@@ -12,8 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestAssignments(test_case.DslTestCase):
|
class TestAssignments(test_case.DslTestCase):
|
@@ -16,8 +16,8 @@ import types
|
|||||||
|
|
||||||
from murano.dsl import exceptions
|
from murano.dsl import exceptions
|
||||||
from murano.dsl import murano_object
|
from murano.dsl import murano_object
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestContracts(test_case.DslTestCase):
|
class TestContracts(test_case.DslTestCase):
|
@@ -17,8 +17,8 @@ import types
|
|||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
import yaql.exceptions as yaql_exc
|
import yaql.exceptions as yaql_exc
|
||||||
|
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestEngineYaqlFunctions(test_case.DslTestCase):
|
class TestEngineYaqlFunctions(test_case.DslTestCase):
|
@@ -19,8 +19,8 @@ import re
|
|||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
|
|
||||||
from murano.dsl import dsl_exception
|
from murano.dsl import dsl_exception
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestExceptions(test_case.DslTestCase):
|
class TestExceptions(test_case.DslTestCase):
|
@@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
from murano.dsl import dsl_exception
|
from murano.dsl import dsl_exception
|
||||||
from murano.dsl import exceptions
|
from murano.dsl import exceptions
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestExecution(test_case.DslTestCase):
|
class TestExecution(test_case.DslTestCase):
|
@@ -17,8 +17,8 @@ from testtools import matchers
|
|||||||
|
|
||||||
from murano.dsl import exceptions
|
from murano.dsl import exceptions
|
||||||
|
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestMacros(test_case.DslTestCase):
|
class TestMacros(test_case.DslTestCase):
|
@@ -12,8 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestMultipleInheritance(test_case.DslTestCase):
|
class TestMultipleInheritance(test_case.DslTestCase):
|
@@ -13,8 +13,8 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.dsl import exceptions
|
from murano.dsl import exceptions
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestPropertyAccess(test_case.DslTestCase):
|
class TestPropertyAccess(test_case.DslTestCase):
|
@@ -12,8 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from murano.tests.dsl.foundation import object_model as om
|
from murano.tests.unit.dsl.foundation import object_model as om
|
||||||
from murano.tests.dsl.foundation import test_case
|
from murano.tests.unit.dsl.foundation import test_case
|
||||||
|
|
||||||
|
|
||||||
class TestSingleInheritance(test_case.DslTestCase):
|
class TestSingleInheritance(test_case.DslTestCase):
|
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
0
murano/tests/unit/packages/versions/__init__.py
Normal file
@@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
import imghdr
|
import imghdr
|
||||||
import murano.packages.load_utils as load_utils
|
import murano.packages.load_utils as load_utils
|
||||||
import murano.tests.base as test_base
|
import murano.tests.unit.base as test_base
|
||||||
import murano.tests.utils as test_utils
|
import murano.tests.unit.utils as test_utils
|
||||||
import os
|
import os
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
@@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
import imghdr
|
import imghdr
|
||||||
import murano.packages.load_utils as load_utils
|
import murano.packages.load_utils as load_utils
|
||||||
import murano.tests.base as test_base
|
import murano.tests.unit.base as test_base
|
||||||
import murano.tests.utils as test_utils
|
import murano.tests.unit.utils as test_utils
|
||||||
import os
|
import os
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
@@ -16,7 +16,7 @@ import mock
|
|||||||
|
|
||||||
from murano.dsl import murano_method
|
from murano.dsl import murano_method
|
||||||
from murano.dsl import results_serializer
|
from murano.dsl import results_serializer
|
||||||
from murano.tests import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
class TestActionsSerializer(base.MuranoTestCase):
|
class TestActionsSerializer(base.MuranoTestCase):
|