Commit 03583243 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Giorgos Korfiatis

burnin: Add QuotasTestSuite

parent 6e816849
...@@ -47,6 +47,7 @@ from synnefo_tools.burnin.images_tests import \ ...@@ -47,6 +47,7 @@ from synnefo_tools.burnin.images_tests import \
from synnefo_tools.burnin.pithos_tests import PithosTestSuite from synnefo_tools.burnin.pithos_tests import PithosTestSuite
from synnefo_tools.burnin.server_tests import ServerTestSuite from synnefo_tools.burnin.server_tests import ServerTestSuite
from synnefo_tools.burnin.network_tests import NetworkTestSuite from synnefo_tools.burnin.network_tests import NetworkTestSuite
from synnefo_tools.burnin.projects_tests import QuotasTestSuite
from synnefo_tools.burnin.stale_tests import \ from synnefo_tools.burnin.stale_tests import \
StaleServersTestSuite, StaleFloatingIPsTestSuite, StaleNetworksTestSuite StaleServersTestSuite, StaleFloatingIPsTestSuite, StaleNetworksTestSuite
...@@ -60,6 +61,7 @@ TESTSUITES = [ ...@@ -60,6 +61,7 @@ TESTSUITES = [
PithosTestSuite, PithosTestSuite,
ServerTestSuite, ServerTestSuite,
NetworkTestSuite, NetworkTestSuite,
QuotasTestSuite,
] ]
TSUITES_NAMES = [tsuite.__name__ for tsuite in TESTSUITES] TSUITES_NAMES = [tsuite.__name__ for tsuite in TESTSUITES]
......
# Copyright 2014 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above
# copyright notice, this list of conditions and the following
# disclaimer.
#
# 2. Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
"""
This is the burnin class that tests the Projects functionality
"""
from synnefo_tools.burnin.common import BurninTests, Proper
# pylint: disable=too-many-public-methods
class QuotasTestSuite(BurninTests):
"""Test Quotas functionality"""
project = Proper(value=None)
def test_001_check_skip(self):
"""Check if we are members in more than one projects"""
self._skip_suite_if(len(self.quotas.keys()) < 2,
"This user is not a member of 2 or more projects")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment