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
2977f70f
Commit
2977f70f
authored
Jun 14, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skeletonise test for person slap based requesting.
parent
c3aec3db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
master/product/VifibTest/tests/testVifibSlapWebService.py
master/product/VifibTest/tests/testVifibSlapWebService.py
+62
-0
No files found.
master/product/VifibTest/tests/testVifibSlapWebService.py
View file @
2977f70f
...
@@ -569,6 +569,10 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -569,6 +569,10 @@ class TestVifibSlapWebService(testVifibMixin):
global
REMOTE_USER
global
REMOTE_USER
REMOTE_USER
=
sequence
[
'software_instance_reference'
]
REMOTE_USER
=
sequence
[
'software_instance_reference'
]
def
stepSlapLoginTestVifibCustomer
(
self
,
sequence
,
**
kw
):
global
REMOTE_USER
REMOTE_USER
=
'test_vifib_customer'
########################################
########################################
# Typical sequences for scenarios
# Typical sequences for scenarios
########################################
########################################
...
@@ -6958,9 +6962,67 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -6958,9 +6962,67 @@ class TestVifibSlapWebService(testVifibMixin):
fails"""
fails"""
raise
NotImplementedError
raise
NotImplementedError
def
stepPersonRequestSlapSoftwareInstanceNotReadyResponse
(
self
,
sequence
,
**
kw
):
software_release
=
sequence
[
'software_release_uri'
]
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
)
open_order
=
self
.
slap
.
registerOpenOrder
()
self
.
assertRaises
(
slap
.
ResourceNotReady
,
open_order
.
request
,
software_release
=
software_release
,
software_type
=
sequence
.
get
(
'software_type'
,
'software_type'
),
partition_reference
=
sequence
.
get
(
'requested_reference'
,
'requested_reference'
),
partition_parameter_kw
=
sequence
.
get
(
'requested_parameter_dict'
,
{}),
filter_kw
=
sequence
.
get
(
'requested_filter_dict'
,
{})
)
def
stepPersonRequestSlapSoftwareInstance
(
self
,
sequence
,
**
kw
):
software_release
=
sequence
[
'software_release_uri'
]
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
)
open_order
=
self
.
slap
.
registerOpenOrder
()
requested_slap_computer_partition
=
open_order
.
request
(
software_release
=
software_release
,
software_type
=
sequence
.
get
(
'software_type'
,
'software_type'
),
partition_reference
=
sequence
.
get
(
'requested_reference'
,
'requested_reference'
),
partition_parameter_kw
=
sequence
.
get
(
'requested_parameter_dict'
,
{}),
filter_kw
=
sequence
.
get
(
'requested_filter_dict'
,
{}))
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
,
requested_computer_partition_reference
=
\
requested_slap_computer_partition
.
getId
())
def
test_person_request_ComputerPartition
(
self
):
def
test_person_request_ComputerPartition
(
self
):
"""Checks that Person using Slap interface is able to request Computer
"""Checks that Person using Slap interface is able to request Computer
Partition"""
Partition"""
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_published_software_release
+
\
self
.
prepare_formated_computer
+
"""
LoginTestVifibAdmin
RequestSoftwareInstallation
Tic
Logout
SlapLoginCurrentComputer
ComputerSoftwareReleaseAvailable
Tic
SlapLogout
SlapLoginTestVifibCustomer
PersonRequestSlapSoftwareInstanceNotReadyResponse
Tic
SlapLogout
SlapLoginTestVifibCustomer
PersonRequestSlapSoftwareInstance
Tic
SlapLogout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
raise
NotImplementedError
raise
NotImplementedError
def
test_person_request_ComputerPartition_filter_computer_guid
(
self
):
def
test_person_request_ComputerPartition_filter_computer_guid
(
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