Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
0f46edef
Commit
0f46edef
authored
Sep 23, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testSlapOSCloudConstraint: Update consistency_message
parent
6d05f594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudConstraint.py
.../portal_components/test.erp5.testSlapOSCloudConstraint.py
+8
-6
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudConstraint.py
View file @
0f46edef
...
...
@@ -58,8 +58,8 @@ class TestSlapOSComputerPartitionConstraint(TestSlapOSConstraintMixin):
software_instance
.
immediateReindexObject
()
slave_instance
.
immediateReindexObject
()
consistency_message
=
"Arity Error for Relation ['default_aggregate']
,
"
\
"arity is equal to 1 but should be between 0 and 0"
consistency_message
=
"Arity Error for Relation ['default_aggregate']
and
"
\
"
Type ('Software Instance', 'Slave Instance'),
arity is equal to 1 but should be between 0 and 0"
# test the test: no expected message found
current_message_list
=
self
.
getMessageList
(
partition
)
...
...
@@ -104,8 +104,9 @@ class TestSlapOSComputerPartitionConstraint(TestSlapOSConstraintMixin):
slave_instance
.
immediateReindexObject
()
slave_instance_2
.
immediateReindexObject
()
consistency_message
=
"Arity Error for Relation ['default_aggregate'], "
\
"arity is equal to 0 but should be between 1 and 1"
consistency_message
=
"Arity Error for Relation ['default_aggregate'] and "
\
"Type ('Software Instance',), arity is equal to 0 but should "
\
"be between 1 and 1"
# test the test: no expected message found
current_message_list
=
self
.
getMessageList
(
partition
)
...
...
@@ -121,8 +122,9 @@ class TestSlapOSComputerPartitionConstraint(TestSlapOSConstraintMixin):
software_instance_2
.
edit
(
aggregate
=
partition
.
getRelativeUrl
())
software_instance
.
immediateReindexObject
()
software_instance_2
.
immediateReindexObject
()
consistency_message_2
=
"Arity Error for Relation ['default_aggregate'], "
\
"arity is equal to 2 but should be between 1 and 1"
consistency_message_2
=
"Arity Error for Relation ['default_aggregate'] and"
\
" Type ('Software Instance',), arity is equal to 2 but should be "
\
"between 1 and 1"
self
.
assertTrue
(
consistency_message_2
in
self
.
getMessageList
(
partition
))
# check case for many Slave Instane
...
...
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