Esempio n. 1
0
    def setUp(self):
        super(TestActionList, 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)
Esempio n. 2
0
    def setUp(self):
        super(TestClusterShow, 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)
Esempio n. 3
0
    def setUp(self):
        super(TestClusterDelete, self).setUp()
        profile_id = utils.create_a_profile(self)
        self.addCleanup(utils.delete_a_profile, self, profile_id)

        # cluster will be deleted by test case
        self.cluster_id = utils.create_a_cluster(self, profile_id)
Esempio n. 4
0
    def setUp(self):
        super(TestClusterShow, 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)
Esempio n. 5
0
    def setUp(self):
        super(TestClusterDelete, self).setUp()
        profile_id = utils.create_a_profile(self)
        self.addCleanup(utils.delete_a_profile, self, profile_id)

        # cluster will be deleted by test case
        self.cluster_id = utils.create_a_cluster(self, profile_id)
    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')
    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')
    def setUp(self):
        super(TestPolicyDeleteNegative, 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.attach_policy(self, cluster_id, self.policy_id)
        self.addCleanup(utils.detach_policy, self, cluster_id, self.policy_id)
    def setUp(self):
        super(TestClusterDeleteNegative, 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)

        policy_id = utils.create_a_policy(self)
        self.addCleanup(utils.delete_a_policy, self, policy_id)

        utils.attach_policy(self, self.cluster_id, policy_id)
        self.addCleanup(utils.detach_policy, self, self.cluster_id, policy_id)
    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)
Esempio n. 11
0
    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.client, 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']
Esempio n. 12
0
 def setUp(self):
     super(TestReceiverCreate, 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)
Esempio n. 13
0
 def setUp(self):
     super(TestReceiverCreate, 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)
 def setUp(self):
     super(TestProfileDeleteNegative, self).setUp()
     self.profile_id = utils.create_a_profile(self)
     self.addCleanup(utils.delete_a_profile, self, self.profile_id)
     cluster_id = utils.create_a_cluster(self, self.profile_id)
     self.addCleanup(utils.delete_a_cluster, self, cluster_id)
 def setUp(self):
     super(TestProfileDeleteNegative, self).setUp()
     self.profile_id = utils.create_a_profile(self)
     self.addCleanup(utils.delete_a_profile, self, self.profile_id)
     cluster_id = utils.create_a_cluster(self, self.profile_id)
     self.addCleanup(utils.delete_a_cluster, self, cluster_id)