Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synnefo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
synnefo
Commits
03583243
Commit
03583243
authored
Feb 10, 2014
by
Ilias Tsitsimpis
Committed by
Giorgos Korfiatis
Feb 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
burnin: Add QuotasTestSuite
parent
6e816849
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
snf-tools/synnefo_tools/burnin/__init__.py
snf-tools/synnefo_tools/burnin/__init__.py
+2
-0
snf-tools/synnefo_tools/burnin/projects_tests.py
snf-tools/synnefo_tools/burnin/projects_tests.py
+50
-0
No files found.
snf-tools/synnefo_tools/burnin/__init__.py
View file @
03583243
...
@@ -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
]
...
...
snf-tools/synnefo_tools/burnin/projects_tests.py
0 → 100644
View file @
03583243
# 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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment