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
Carlos Ramos Carreño
slapos.core
Commits
5674bab6
Commit
5674bab6
authored
Aug 10, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support transmitted timestamp.
parent
3f25be50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
master/product/Vifib/tests/testVifibSlapComputerPartitionGetInstanceParameterDict.py
...testVifibSlapComputerPartitionGetInstanceParameterDict.py
+6
-0
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+13
-0
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionGetInstanceParameterDict.py
View file @
5674bab6
...
@@ -104,6 +104,9 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer
...
@@ -104,6 +104,9 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer
"""
"""
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_install_requested_computer_partition_sequence_string
+
'
\
sequence_string
=
self
.
prepare_install_requested_computer_partition_sequence_string
+
'
\
LoginERP5TypeTestCase
\
FillTimestamp
\
Logout
\
SlapLoginCurrentSoftwareInstance
\
SlapLoginCurrentSoftwareInstance
\
CheckMinimalParametersTransmitted
\
CheckMinimalParametersTransmitted
\
SlapLogout
\
SlapLogout
\
...
@@ -125,6 +128,9 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer
...
@@ -125,6 +128,9 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer
SetSoftwareInstanceValidXML
\
SetSoftwareInstanceValidXML
\
Tic
\
Tic
\
Logout
\
Logout
\
LoginERP5TypeTestCase
\
FillTimestamp
\
Logout
SlapLoginCurrentSoftwareInstance
\
SlapLoginCurrentSoftwareInstance
\
CheckComputerPartitionGetInstanceParameterDictResult
\
CheckComputerPartitionGetInstanceParameterDictResult
\
SlapLogout
\
SlapLogout
\
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
5674bab6
...
@@ -3412,6 +3412,17 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -3412,6 +3412,17 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer_partition
.
getInstanceParameterDict
()
computer_partition
.
getInstanceParameterDict
()
def
stepFillTimestamp
(
self
,
sequence
,
**
kw
):
get
=
self
.
portal
.
portal_catalog
.
getResultValue
timestamp
=
int
(
get
(
uid
=
sequence
[
'computer_partition_uid'
]
\
).
getModificationDate
())
instance
=
get
(
uid
=
sequence
[
'software_instance_uid'
])
newtimestamp
=
int
(
instance
.
getBangTimestamp
(
int
(
instance
.
getModificationDate
())))
if
(
newtimestamp
>
timestamp
):
timestamp
=
newtimestamp
sequence
[
'partition_timestamp'
]
=
timestamp
def
stepCheckMinimalParametersTransmitted
(
self
,
sequence
,
**
kw
):
def
stepCheckMinimalParametersTransmitted
(
self
,
sequence
,
**
kw
):
"""
"""
Check that slap.registerComputerPartition raises a NotFound error
Check that slap.registerComputerPartition raises a NotFound error
...
@@ -3435,6 +3446,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -3435,6 +3446,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
'requested_software_type'
),
'requested_software_type'
),
'slave_instance_list'
:
[],
'slave_instance_list'
:
[],
'ip_list'
:
[],
'ip_list'
:
[],
'timestamp'
:
sequence
[
'partition_timestamp'
]
}
}
self
.
assertSameDict
(
expected
,
result
)
self
.
assertSameDict
(
expected
,
result
)
...
@@ -3536,6 +3548,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -3536,6 +3548,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
'test_parameter'
:
'lala'
,
'test_parameter'
:
'lala'
,
'slave_instance_list'
:
[],
'slave_instance_list'
:
[],
'ip_list'
:
[],
'ip_list'
:
[],
'timestamp'
:
sequence
[
'partition_timestamp'
]
}
}
self
.
assertSameDict
(
expected
,
result
)
self
.
assertSameDict
(
expected
,
result
)
...
...
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