Exemplo n.º 1
0
    def setUp(self):
        super(QuotaEnforcementTestCase, self).setUp()
        self.quota_behaviors = quota_behaviors.QuotaBehaviors(self.client)
        self.secret_behaviors = secret_behaviors.SecretBehaviors(self.client)
        self.container_behaviors = container_behaviors.ContainerBehaviors(
            self.client)
        self.order_behaviors = order_behaviors.OrderBehaviors(self.client)
        self.consumer_behaviors = consumer_behaviors.ConsumerBehaviors(
            self.client)

        self.secret_data = self.get_default_secret_data()
        self.quota_data = self.get_default_quota_data()
        self.project_id = self.quota_behaviors.get_project_id_from_name(
            admin_b)
        self.order_secrets = []
        self.root_ca_ref = None
        self.test_order_sent = False
Exemplo n.º 2
0
 def setUp(self):
     super(QuotasTestCase, self).setUp()
     self.behaviors = quota_behaviors.QuotaBehaviors(self.client)
     self.project_id = self.behaviors.get_project_id_from_name(
         CONF.identity.username)
Exemplo n.º 3
0
 def setUp(self):
     super(ProjectQuotasPagingTestCase, self).setUp()
     self.behaviors = quota_behaviors.QuotaBehaviors(self.client)
Exemplo n.º 4
0
 def setUp(self):
     super(RBACQuotasTestCase, self).setUp()
     self.behaviors = quota_behaviors.QuotaBehaviors(self.client)
Exemplo n.º 5
0
 def setUp(self):
     super(QuotasTestCase, self).setUp()
     self.behaviors = quota_behaviors.QuotaBehaviors(self.client)
     self.project_id = self.behaviors.get_project_id_from_name('admin')
Exemplo n.º 6
0
 def setUp(self):
     super(ProjectQuotasPagingTestCase, self).setUp()
     self.behaviors = quota_behaviors.QuotaBehaviors(self.client)
     resp, project_quotas_list, _, _ =\
         self.behaviors.get_project_quotas_list(user_name=service_admin)
     self.original_project_quota_count = len(project_quotas_list)