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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos.core
Commits
04827fb8
Commit
04827fb8
authored
Nov 05, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start testing promise_slapos_module_id_generator alarm.
parent
df685c22
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm.py
...Item/testSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm.py
+30
-0
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
master/bt5/slapos_cloud/bt/template_test_id_list
master/bt5/slapos_cloud/bt/template_test_id_list
+1
-0
No files found.
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm.py
0 → 100644
View file @
04827fb8
# Copyright (c) 2002-2012 Nexedi SA and Contributors. All Rights Reserved.
import
transaction
from
Products.SlapOS.tests.testSlapOSMixin
import
\
testSlapOSMixin
class
TestSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm
(
testSlapOSMixin
):
def
test_Module_assertIdGenerator
(
self
):
module
=
self
.
portal
.
newContent
(
portal_type
=
'Person Module'
,
id
=
str
(
self
.
generateNewId
()),
id_generator
=
'bad_id_generator'
)
self
.
assertEqual
(
'bad_id_generator'
,
module
.
getIdGenerator
())
# check positive response
self
.
assertTrue
(
module
.
Module_assertIdGenerator
(
'bad_id_generator'
,
False
))
self
.
assertEqual
(
'bad_id_generator'
,
module
.
getIdGenerator
())
self
.
assertTrue
(
module
.
Module_assertIdGenerator
(
'bad_id_generator'
,
True
))
self
.
assertEqual
(
'bad_id_generator'
,
module
.
getIdGenerator
())
# check negative response and that no-op run does not modify
self
.
assertFalse
(
module
.
Module_assertIdGenerator
(
'good_id_generator'
,
False
))
self
.
assertEqual
(
'bad_id_generator'
,
module
.
getIdGenerator
())
# check negative response with fixit request
self
.
assertFalse
(
module
.
Module_assertIdGenerator
(
'good_id_generator'
,
True
))
self
.
assertEqual
(
'good_id_generator'
,
module
.
getIdGenerator
())
self
.
assertTrue
(
module
.
Module_assertIdGenerator
(
'good_id_generator'
,
False
))
self
.
assertEqual
(
'good_id_generator'
,
module
.
getIdGenerator
())
transaction
.
abort
()
master/bt5/slapos_cloud/bt/revision
View file @
04827fb8
189
190
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_cloud/bt/template_test_id_list
View file @
04827fb8
...
@@ -3,6 +3,7 @@ testSlapOSCoreComputerSlapInterfaceWorkflow
...
@@ -3,6 +3,7 @@ testSlapOSCoreComputerSlapInterfaceWorkflow
testSlapOSCoreConstraint
testSlapOSCoreConstraint
testSlapOSCoreInstanceSlapInterfaceWorkflow
testSlapOSCoreInstanceSlapInterfaceWorkflow
testSlapOSCorePersonSlapInterfaceWorkflow
testSlapOSCorePersonSlapInterfaceWorkflow
testSlapOSCorePromiseSlapOSModuleIdGeneratorAlarm
testSlapOSCoreSlapOSAllocateInstanceAlarm
testSlapOSCoreSlapOSAllocateInstanceAlarm
testSlapOSCoreSlapOSCloudInteractionWorkflow
testSlapOSCoreSlapOSCloudInteractionWorkflow
testSlapOSShadow
testSlapOSShadow
\ No newline at end of file
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