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
Nicolas Wavrant
slapos.core
Commits
3955a22e
Commit
3955a22e
authored
Jun 06, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PL are not created by low level interaction (like setter)
parent
943972c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
257 deletions
+0
-257
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
...oduct/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
+0
-257
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
View file @
3955a22e
...
...
@@ -453,111 +453,6 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
# low level activity locks
def
stepCheckActivityStartInProgress
(
self
,
sequence
,
**
kw
):
self
.
assertNotEqual
(
0
,
self
.
portal
.
portal_activities
.
countMessageWithTag
(
'%s_startInProgress'
%
sequence
[
'software_instance_uid'
]))
def
test_update_not_created_start_in_progress
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_stopped_computer_partition_sequence_string
+
"""
LoginTestVifibCustomer
RequestSoftwareInstanceStart
Logout
LoginDefaultUser
CheckActivityStartInProgress
Logout
LoginTestVifibCustomer
RequestSoftwareInstanceUpdate
Tic
Logout
LoginDefaultUser
CheckComputerPartitionNoInstanceUpdateSalePackingList
Logout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepCheckActivityDestroyInProgress
(
self
,
sequence
,
**
kw
):
self
.
assertNotEqual
(
0
,
self
.
portal
.
portal_activities
.
countMessageWithTag
(
'%s_destroyInProgress'
%
sequence
[
'software_instance_uid'
]))
def
test_update_not_created_destruction_in_progress
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
\
.
prepare_installed_computer_partition_sequence_string
+
"""
LoginTestVifibCustomer
RequestSoftwareInstanceDestroy
Logout
LoginDefaultUser
CheckActivityDestroyInProgress
Logout
LoginTestVifibCustomer
RequestSoftwareInstanceUpdate
Tic
Logout
LoginDefaultUser
CheckComputerPartitionNoInstanceUpdateSalePackingList
Logout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepCheckActivityRequestInProgress
(
self
,
sequence
,
**
kw
):
hosting_subscription_uid
=
sequence
[
'hosting_subscription_uid'
]
requested_partition_reference
=
sequence
.
get
(
'software_type'
,
'requested_reference'
)
tag
=
"%s_%s_inProgress"
%
(
hosting_subscription_uid
,
requested_partition_reference
)
self
.
assertNotEqual
(
0
,
self
.
portal
.
portal_activities
.
countMessageWithTag
(
tag
))
def
test_update_not_created_request_in_progress
(
self
):
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_string
=
self
\
.
prepare_install_requested_computer_partition_sequence_string
+
"""
SlapLoginCurrentSoftwareInstance
RequestComputerPartitionNoTic
SlapLogout
LoginDefaultUser
CheckActivityRequestInProgress
Logout
LoginTestVifibCustomer
RequestSoftwareInstanceUpdate
Tic
Logout
LoginDefaultUser
CheckComputerPartitionNoInstanceUpdateSalePackingList
Logout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepCheckActivityPersonRequestInProgress
(
self
,
sequence
,
**
kw
):
person_uid
=
self
.
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
(
'test_vifib_customer'
).
getUid
()
...
...
@@ -617,158 +512,6 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
# update triggers
def
stepSoftwareInstanceEditTitle
(
self
,
sequence
,
**
kw
):
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
])
instance
.
edit
(
title
=
instance
.
getTitle
()
+
'edited'
)
def
stepSoftwareInstanceEditSourceReference
(
self
,
sequence
,
**
kw
):
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
])
instance
.
edit
(
source_reference
=
instance
.
getSourceReference
()
+
'edited'
)
def
stepSoftwareInstanceEditTextContent
(
self
,
sequence
,
**
kw
):
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
])
text_content
=
instance
.
getTextContent
()
modified_xml
=
"""<?xml version="1.0" encoding="utf-8"?>
<instance><parameter id="ignore">value</parameter></instance>"""
self
.
assertNotEqual
(
modified_xml
,
text_content
)
instance
.
edit
(
text_content
=
modified_xml
)
def
stepSoftwareInstanceEditConnectionXml
(
self
,
sequence
,
**
kw
):
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
])
connection_xml
=
instance
.
getConnectionXml
()
self
.
assertNotEqual
(
connection_xml
,
self
.
minimal_correct_xml
)
instance
.
edit
(
connection_xml
=
self
.
minimal_correct_xml
)
def
test_update_on_title_change
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
SoftwareInstanceEditTitle
Tic
Logout
LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_update_on_source_reference_change
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
SoftwareInstanceEditSourceReference
Tic
Logout
LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_update_on_text_content_change
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
SoftwareInstanceEditTextContent
Tic
Logout
LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_no_update_on_connection_xml_change
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
SoftwareInstanceEditConnectionXml
Tic
Logout
LoginDefaultUser
CheckComputerPartitionNoInstanceUpdateSalePackingList
Logout
SlapLoginCurrentComputer
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestVifibSlapComputerPartitionUpdate
))
...
...
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