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
Xiaowu Zhang
slapos.core
Commits
eb73d8d8
Commit
eb73d8d8
authored
Oct 03, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dead code.
parent
dd275237
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
886 deletions
+39
-886
master/product/Vifib/tests/testVifibFiber.py
master/product/Vifib/tests/testVifibFiber.py
+0
-9
master/product/Vifib/tests/testVifibSlapBug.py
master/product/Vifib/tests/testVifibSlapBug.py
+0
-9
master/product/Vifib/tests/testVifibSlapComputerGetComputerPartitionList.py
...ib/tests/testVifibSlapComputerGetComputerPartitionList.py
+0
-13
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+39
-831
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
...oduct/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
+0
-24
No files found.
master/product/Vifib/tests/testVifibFiber.py
View file @
eb73d8d8
...
...
@@ -110,15 +110,6 @@ class TestVifibFiberSubscription(testVifibSecurityMixin):
fiber_request
=
pending_request_list
[
0
]
sequence
.
edit
(
fiber_request_url
=
fiber_request
.
getRelativeUrl
())
def
stepStartFiberRequest
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""Start the fiber request present in sequence"""
fiber_request_url
=
sequence
.
get
(
"fiber_request_url"
)
fiber_request
=
self
.
getPortal
().
restrictedTraverse
(
fiber_request_url
)
self
.
modifyFiberRequestState
(
"start_action"
,
sequence
,
fiber_request
)
self
.
assertEquals
(
fiber_request
.
getValidationState
(),
'started'
)
def
stepConfirmFiberRequest
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""Confirm the fiber request present in sequence"""
fiber_request_url
=
sequence
.
get
(
"fiber_request_url"
)
...
...
master/product/Vifib/tests/testVifibSlapBug.py
View file @
eb73d8d8
...
...
@@ -135,9 +135,6 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
def
stepRestoreSoftwareInstanceUidFromBufferA
(
self
,
sequence
,
**
kw
):
sequence
[
'software_instance_uid'
]
=
sequence
[
'buffer_a_software_instance_uid'
]
def
stepRestoreSoftwareInstanceUidFromBufferB
(
self
,
sequence
,
**
kw
):
sequence
[
'software_instance_uid'
]
=
sequence
[
'buffer_b_software_instance_uid'
]
def
stepRestoreComputerUidFromBufferA
(
self
,
sequence
,
**
kw
):
sequence
[
'computer_uid'
]
=
sequence
[
'buffer_a_computer_uid'
]
...
...
@@ -171,15 +168,9 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
def
stepRestoreComputerPartitionUidFromBufferA
(
self
,
sequence
,
**
kw
):
sequence
[
'computer_partition_uid'
]
=
sequence
[
'buffer_a_computer_partition_uid'
]
def
stepRestoreComputerPartitionUidFromBufferB
(
self
,
sequence
,
**
kw
):
sequence
[
'computer_partition_uid'
]
=
sequence
[
'buffer_b_computer_partition_uid'
]
def
stepRestoreComputerPartitionReferenceFromBufferA
(
self
,
sequence
,
**
kw
):
sequence
[
'computer_partition_reference'
]
=
sequence
[
'buffer_a_computer_partition_reference'
]
def
stepRestoreComputerPartitionReferenceFromBufferB
(
self
,
sequence
,
**
kw
):
sequence
[
'computer_partition_reference'
]
=
sequence
[
'buffer_b_computer_partition_reference'
]
def
stepCheckHostingSubscriptionMultipleComputerAuditor
(
self
,
sequence
,
**
kw
):
hosting_subscription
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'hosting_subscription_uid'
])
...
...
master/product/Vifib/tests/testVifibSlapComputerGetComputerPartitionList.py
View file @
eb73d8d8
...
...
@@ -172,19 +172,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepDeliverInstanceSetupSalePackingList
(
self
,
sequence
,
**
kw
):
delivery
=
self
.
portal
.
portal_catalog
.
getResultValue
(
default_aggregate_uid
=
ComplexQuery
(
Query
(
default_aggregate_uid
=
sequence
[
'computer_partition_uid'
]),
Query
(
default_aggregate_uid
=
sequence
[
'software_instance_uid'
]),
operator
=
"AND"
),
portal_type
=
self
.
sale_packing_list_line_portal_type
,
simulation_state
=
'stopped'
,
resource_relative_url
=
self
.
portal
.
portal_preferences
\
.
getPreferredInstanceSetupResource
()
).
getParentValue
()
self
.
portal
.
portal_workflow
.
doActionFor
(
delivery
,
'deliver_action'
)
def
test_Computer_getComputerPartitionList_HostingResource_ConfirmedState
(
self
):
"""
Check that calling Computer.getComputerPartitionList works in
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
eb73d8d8
This diff is collapsed.
Click to expand it.
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
View file @
eb73d8d8
...
...
@@ -478,30 +478,6 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepStoreCurrentSoftwareInstanceBufferA
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
software_instance_uid_buffer_a
=
sequence
[
'software_instance_uid'
],
software_instance_reference_buffer_a
=
sequence
[
'software_instance_reference'
])
def
stepStoreCurrentSoftwareInstanceBufferB
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
software_instance_uid_buffer_b
=
sequence
[
'software_instance_uid'
],
software_instance_reference_buffer_b
=
sequence
[
'software_instance_reference'
])
def
stepRestoreCurrentSoftwareInstanceBufferA
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
software_instance_uid
=
sequence
[
'software_instance_uid_buffer_a'
],
software_instance_reference
=
sequence
[
'software_instance_reference_buffer_a'
])
def
stepRestoreCurrentSoftwareInstanceBufferB
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
software_instance_uid
=
sequence
[
'software_instance_uid_buffer_b'
],
software_instance_reference
=
sequence
[
'software_instance_reference_buffer_b'
])
def
test_SlaveInstance_request_stop
(
self
):
"""
Check that the Slave Instance will be stopped correctly
...
...
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