本文整理汇总了Python中senlin.tests.tempest.common.utils.create_a_profile函数的典型用法代码示例。如果您正苦于以下问题:Python create_a_profile函数的具体用法?Python create_a_profile怎么用?Python create_a_profile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了create_a_profile函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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)
开发者ID:jonnary,项目名称:senlin,代码行数:8,代码来源:test_node_basic.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:9,代码来源:test_node_create_negative.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:9,代码来源:test_cluster_basic.py
示例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)
开发者ID:zhaihaifei,项目名称:senlin,代码行数:12,代码来源:test_cluster_action_negative.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:13,代码来源:test_cluster_update_negative.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:15,代码来源:test_cluster_update_profile.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:7,代码来源:test_node_show.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:7,代码来源:test_cluster_action.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:7,代码来源:test_cluster_list.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:8,代码来源:test_node_show_negative.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:8,代码来源:test_cluster_scaling.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:8,代码来源:test_lb_policy.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:9,代码来源:test_node_update_negative.py
示例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)
开发者ID:jonnary,项目名称:senlin,代码行数:10,代码来源:test_cluster_show_negative.py
示例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')
开发者ID:zhaihaifei,项目名称:senlin,代码行数:10,代码来源:test_receiver_delete.py
示例16: setUp
def setUp(self):
super(TestPolicyDeleteNegativeConflict, 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.policy_id = utils.create_a_policy(self)
self.addCleanup(utils.delete_a_policy, self, self.policy_id)
utils.cluster_attach_policy(self, cluster_id, self.policy_id)
self.addCleanup(utils.cluster_detach_policy, self, cluster_id,
self.policy_id)
开发者ID:jonnary,项目名称:senlin,代码行数:14,代码来源:test_policy_delete_negative.py
示例17: setUp
def setUp(self):
super(TestReceiverDeleteNegativeBadRequest, 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_id1 = utils.create_a_receiver(self, cluster_id,
'CLUSTER_RESIZE',
name='r-01')
self.addCleanup(utils.delete_a_receiver, self, self.receiver_id1)
self.receiver_id2 = utils.create_a_receiver(self, cluster_id,
'CLUSTER_RESIZE',
name='r-01')
self.addCleanup(utils.delete_a_receiver, self, self.receiver_id2)
开发者ID:jonnary,项目名称:senlin,代码行数:15,代码来源:test_receiver_delete_negative.py
示例18: setUp
def setUp(self):
super(TestWebhookTrigger, 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)
params = {'max_size': 2}
self.receiver_id = utils.create_a_receiver(self, cluster_id,
'CLUSTER_RESIZE',
params=params)
self.addCleanup(self.client.delete_obj, 'receivers', self.receiver_id)
receiver = self.client.get_obj('receivers', self.receiver_id)
self.webhook_url = receiver['body']['channel']['alarm_url']
开发者ID:jonnary,项目名称:senlin,代码行数:16,代码来源:test_webhook_trigger.py
示例19: setUp
def setUp(self):
super(TestClusterMembership, self).setUp()
# Create a profile
self.profile_id = utils.create_a_profile(self)
self.addCleanup(utils.delete_a_profile, self, self.profile_id)
# Create a cluster
self.cluster_id = utils.create_a_cluster(self, self.profile_id,
desired_capacity=0,
min_size=0, max_size=3)
self.addCleanup(utils.delete_a_cluster, self, self.cluster_id)
# Create three orphan nodes
self.node_id1 = utils.create_a_node(self, self.profile_id)
self.node_id2 = utils.create_a_node(self, self.profile_id)
self.node_id3 = utils.create_a_node(self, self.profile_id)
self.addCleanup(utils.delete_a_node, self, self.node_id1)
self.addCleanup(utils.delete_a_node, self, self.node_id2)
self.addCleanup(utils.delete_a_node, self, self.node_id3)
开发者ID:jonnary,项目名称:senlin,代码行数:17,代码来源:test_cluster_membership.py
注:本文中的senlin.tests.tempest.common.utils.create_a_profile函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论