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
Léo-Paul Géneau
slapos.core
Commits
fb7eebe0
Commit
fb7eebe0
authored
Dec 26, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop build_before and "destroy" test.
New step marks implementation requirement for test.
parent
94f43ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
33 deletions
+10
-33
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+10
-33
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
fb7eebe0
...
...
@@ -7,23 +7,8 @@ from DateTime.DateTime import DateTime
class
TestVifibInstanceHostingRelatedDocument
(
TestVifibSlapWebServiceMixin
):
def
stepTriggerNextBuild
(
self
,
sequence
,
**
kw
):
build_before
=
sequence
.
get
(
'build_before'
)
if
build_before
is
None
:
build_before
=
getClosestDate
(
target_date
=
DateTime
(),
precision
=
'month'
,
before
=
0
)
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
()
else
:
build_before
=
addToDate
(
build_before
,
month
=
1
)
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
(
params
=
{
'build_before'
:
build_before
})
sequence
.
edit
(
number_of_sale_packing_list
=
sequence
.
get
(
'number_of_sale_packing_list'
,
0
)
+
1
,
invoice_amount
=
sequence
.
get
(
'invoice_amount'
,
0
)
+
1
,
payment_amount
=
sequence
.
get
(
'payment_amount'
,
0
)
+
1
,
build_before
=
build_before
)
def
stepTriggerBuild
(
self
,
sequence
,
**
kw
):
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
()
def
stepCheckOneMoreDocumentList
(
self
,
sequence
,
**
kw
):
hosting_subscription
=
self
.
portal
.
portal_catalog
\
...
...
@@ -120,24 +105,16 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
"""
Check that sale_packing_list is generated properly from simulation
"""
check_one_month
=
"""
LoginDefaultUser
TriggerNextBuild
Tic
Logout
LoginDefaultUser
CheckOneMoreDocumentList
CheckSalePackingList
CheckInvoiceAndInvoiceTransaction
CheckPayment
Logout
"""
self
.
computer_partition_amount
=
1
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_installed_computer_partition_sequence_string
\
+
(
check_one_month
*
12
)
self
.
prepare_installed_computer_partition_sequence_string
+
\
"""
LoginDefaultUser
TriggerNextBuild
Tic
CheckSubscriptionSalePackingListCoverage
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
...
...
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