本文整理汇总了Python中senlin.tests.tempest.common.utils.create_a_profile函数的典型用法代码示例。如果您正苦于以下问题:Python create_a_profile函数的具体用法?Python create_a_profile怎么用?Python create_a_profile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了create_a_profile函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
def setUp(self):
super(TestNodeUpdate, self).setUp()
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
self.profile_id_new = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id_new)
self.node_id = utils.create_a_node(self, self.profile_id)
self.addCleanup(utils.delete_a_node, self, self.node_id)
示例2: setUp
def setUp(self):
super(TestNodeCreateNegativeBadRequest, self).setUp()
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
self.profile_id2 = utils.create_a_profile(
self, spec=constants.spec_heat_stack)
self.addCleanup(utils.delete_a_profile, self, self.profile_id2)
self.cluster_id = utils.create_a_cluster(self, self.profile_id)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例3: setUp
def setUp(self):
super(TestClusterUpdate, self).setUp()
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
self.profile_id_new = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id_new)
self.cluster_id = utils.create_a_cluster(self, self.profile_id,
desired_capacity=3)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例4: setUp
def setUp(self):
super(TestClusterAddNodesNegativeProfileTypeUnmatch, self).setUp()
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
self.cluster_id = utils.create_a_cluster(self, self.profile_id)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
self.profile_id2 = utils.create_a_profile(
self, spec=constants.spec_heat_stack)
self.addCleanup(utils.delete_a_profile, self, self.profile_id2)
self.node_id = utils.create_a_node(self, self.profile_id2)
self.addCleanup(utils.delete_a_node, self, self.node_id)
示例5: setUp
def setUp(self):
super(TestClusterUpdateNegativeProfileTypeUnmatch, self).setUp()
# Create a profile
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.profile_id = profile_id
# Create a cluster
self.cluster_id = utils.create_a_cluster(self, profile_id)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
# Create a new profile of different type
self.new_profile_id = utils.create_a_profile(
self, spec=constants.spec_heat_stack)
self.addCleanup(utils.delete_a_profile, self, self.new_profile_id)
示例6: setUp
def setUp(self):
super(TestClusterUpdateProfile, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
# create a new profile
new_spec = copy.deepcopy(constants.spec_nova_server)
new_spec['properties']['flavor'] = 'new_flavor'
new_spec['properties']['image'] = 'new_image'
self.new_profile_id = utils.create_a_profile(self, new_spec)
self.addCleanup(utils.delete_a_profile, self, self.new_profile_id)
self.cluster_id = utils.create_a_cluster(self, profile_id)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例7: setUp
def setUp(self):
super(TestNodeShow, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.node_id = utils.create_a_node(self, profile_id)
self.addCleanup(utils.delete_a_node, self, self.node_id)
示例8: setUp
def setUp(self):
super(TestClusterActionScaleIn, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.cluster_id = utils.create_a_cluster(self, profile_id,
desired_capacity=1)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例9: setUp
def setUp(self):
super(TestClusterList, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.cluster_id = utils.create_a_cluster(self, profile_id)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例10: setUp
def setUp(self):
super(TestNodeShowNegativeBadRequest, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.node_id1 = utils.create_a_node(self, profile_id, name='n-01')
self.node_id2 = utils.create_a_node(self, profile_id, name='n-01')
self.addCleanup(utils.delete_a_node, self, self.node_id1)
self.addCleanup(utils.delete_a_node, self, self.node_id2)
示例11: setUp
def setUp(self):
super(TestClusterScaleInOut, self).setUp()
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
self.cluster_id = utils.create_a_cluster(self, self.profile_id,
min_size=1, max_size=5,
desired_capacity=1)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例12: setUp
def setUp(self):
super(TestLBPolicy, self).setUp()
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
self.cluster_id = utils.create_a_cluster(self, self.profile_id,
min_size=0, max_size=5,
desired_capacity=2)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
示例13: setUp
def setUp(self):
super(TestNodeUpdateNegativeProfileNotFound, self).setUp()
# Create a profile
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.profile_id = profile_id
# Create a node
self.node_id = utils.create_a_node(self, profile_id)
self.addCleanup(utils.delete_a_node, self, self.node_id)
示例14: setUp
def setUp(self):
super(TestClusterShowNegativeBadRequest, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
self.cluster_id1 = utils.create_a_cluster(self, profile_id,
name='c-01')
self.cluster_id2 = utils.create_a_cluster(self, profile_id,
name='c-01')
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id1)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id2)
示例15: setUp
def setUp(self):
super(TestReceiverDelete, self).setUp()
profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, profile_id)
cluster_id = utils.create_a_cluster(self, profile_id)
self.addCleanup(utils.delete_a_cluster, self, cluster_id)
self.receiver_id = utils.create_a_receiver(self.client, cluster_id,
'CLUSTER_RESIZE')