Fix the types.set error for rally job run

Rally jobs run for neutron vpnaas fails
Closes-Bug: #1612056

Change-Id: Ia5356a466b7521f1aeeee22903c176c696422553
This commit is contained in:
ashish-kumar-gupta 2016-08-11 11:04:43 +05:30 committed by Ashish Kumar Gupta
parent 6017a356b7
commit a6c697ad29
5 changed files with 11 additions and 11 deletions

View File

@ -13,7 +13,7 @@
# under the License.
from neutron_vpnaas._i18n import _LI
from rally.common import log as logging
from rally.common import logging
from rally.task import scenario
from rally.task import types as types
@ -24,8 +24,8 @@ LOG = logging.getLogger(__name__)
class TestVpnBasicScenario(vpn_base.VpnBase):
"""Rally scenarios for VPNaaS"""
@types.set(image=types.ImageResourceType,
flavor=types.FlavorResourceType)
@types.convert(image={"type": "glance_image"},
flavor={"type": "nova_flavor"})
@scenario.configure()
def create_and_delete_vpn_connection(self, **kwargs):
"""Basic VPN connectivity scenario.

View File

@ -13,7 +13,7 @@
# under the License.
from neutron_vpnaas._i18n import _LI
from rally.common import log as logging
from rally.common import logging
from rally.task import scenario
from rally.task import types as types
@ -23,8 +23,8 @@ LOG = logging.getLogger(__name__)
class TestVpnStatusScenario(vpn_base.VpnBase):
@types.set(image=types.ImageResourceType,
flavor=types.FlavorResourceType)
@types.convert(image={"type": "glance_image"},
flavor={"type": "nova_flavor"})
@scenario.configure()
def check_vpn_status(self, **kwargs):
"""Test VPN's status correctly after bringing router's status to

View File

@ -13,7 +13,7 @@
# under the License.
from neutron_vpnaas._i18n import _LI
from rally.common import log as logging
from rally.common import logging
from rally.task import scenario
from rally.task import types as types
@ -25,8 +25,8 @@ LOG = logging.getLogger(__name__)
class TestVpnTenantScenario(vpn_base.VpnBase):
"""Rally scenarios for VPNaaS"""
@types.set(image=types.ImageResourceType,
flavor=types.FlavorResourceType)
@types.convert(image={"type": "glance_image"},
flavor={"type": "nova_flavor"})
@scenario.configure()
def multitenants_vpn_test(self, **kwargs):
"""Test VPN connectivity under two different tenants.

View File

@ -19,7 +19,7 @@ import threading
import time
from oslo_utils import uuidutils
from rally.common import log as logging
from rally.common import logging
from rally.plugins.openstack import scenario as rally_base
from rally.task import atomic

View File

@ -19,7 +19,7 @@ import socket
import stat
import time
from rally.common import log as logging
from rally.common import logging
from rally.plugins.openstack.wrappers import network as network_wrapper
from rally.task import utils as task_utils