marvin_refactor: correcting references to random_gen

random_gen moves to marvin.legacy.utils from marvin.utils

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-09-07 11:01:07 +05:30
parent b437ae984a
commit 6dc259ea88
11 changed files with 10 additions and 19 deletions

View File

@ -17,7 +17,7 @@
import factory
from marvin.factory.account import AccountFactory
from marvin.utils import random_gen
from marvin.legacy.utils import random_gen
class UserAccountFactory(AccountFactory):

View File

@ -16,7 +16,7 @@
# under the License.
import factory
from marvin.utils import random_gen
from marvin.legacy.utils import random_gen
from marvin.factory.cluster import ClusterFactory
class XenClusterFactory(ClusterFactory):

View File

@ -17,7 +17,7 @@
import factory
from marvin.factory.diskoffering import DiskOfferingFactory
from marvin.utils import random_gen
from marvin.legacy.utils import random_gen
class SharedDiskOfferingFactory(DiskOfferingFactory):

View File

@ -17,7 +17,7 @@
import factory
from marvin.factory.serviceoffering import ServiceOfferingFactory
from marvin.utils import random_gen
from marvin.legacy.utils import random_gen
class SmallServiceOfferingFactory(ServiceOfferingFactory):
cpunumber = 1

View File

@ -18,7 +18,7 @@
import factory
from marvin.factory.user import UserFactory
from marvin.factory.data.account import UserAccountFactory
from marvin.utils import random_gen
from marvin.legacy.utils import random_gen
class UserFactory(UserFactory):

View File

@ -15,9 +15,7 @@
# specific language governing permissions and limitations
# under the License.
import factory
from marvin.factory.virtualmachine import VirtualMachineFactory
from marvin.utils import random_gen
class VirtualMachineIsolatedNetwork(VirtualMachineFactory):

View File

@ -17,7 +17,7 @@
import factory
from marvin.factory.zone import ZoneFactory
from marvin.utils import random_gen
from marvin.legacy.utils import random_gen
class AdvancedZoneFactory(ZoneFactory):
name = factory.Sequence(lambda n: "advzone" + random_gen())

View File

@ -15,14 +15,13 @@
# specific language governing permissions and limitations
# under the License.
import marvin
import sys
import logging
import nose.core
from marvin.cloudstackTestCase import cloudstackTestCase
from marvin import deployDataCenter
from nose.plugins.base import Plugin
import time
from marvin.deployer import deployDataCenter
class MarvinPlugin(Plugin):

View File

@ -22,11 +22,9 @@
# * Only a sandbox
############################################################
'''
import random
import marvin
from ConfigParser import SafeConfigParser
from optparse import OptionParser
from marvin.configGenerator import *
from marvin.deployer.configGenerator import *
def getGlobalSettings(config):

View File

@ -22,11 +22,9 @@
# * Only a sandbox
############################################################
'''
import random
import marvin
from ConfigParser import SafeConfigParser
from optparse import OptionParser
from marvin.configGenerator import *
from marvin.deployer.configGenerator import *
def getGlobalSettings(config):

View File

@ -23,11 +23,9 @@
# * Only a sandbox
############################################################
'''
import random
import marvin
from ConfigParser import SafeConfigParser
from optparse import OptionParser
from marvin.configGenerator import *
from marvin.deployer.configGenerator import *
def getGlobalSettings(config):