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
Labels
Merge Requests
19
Merge Requests
19
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
7c5735a3
Commit
7c5735a3
authored
Oct 05, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow changed exception type in slap library.
parent
1b9db4bb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
master/product/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
...duct/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
+1
-1
master/product/Vifib/tests/testVifibSlapSoftwareReleaseBuilding.py
...oduct/Vifib/tests/testVifibSlapSoftwareReleaseBuilding.py
+1
-1
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
...duct/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
+1
-1
master/product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
.../product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
+1
-1
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+8
-8
No files found.
master/product/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
View file @
7c5735a3
...
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
SelectNewSoftwareReleaseUri
\
CheckN
otFound
SoftwareReleaseAvailableAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseAvailableAfterRegisterCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseBuilding.py
View file @
7c5735a3
...
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SelectNewSoftwareReleaseUri
\
SlapLoginCurrentComputer
\
CheckN
otFound
SoftwareReleaseBuildingAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseBuildingAfterRegisterCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
View file @
7c5735a3
...
...
@@ -12,7 +12,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
SelectNewSoftwareReleaseUri
\
CheckN
otFound
SoftwareReleaseDestroyedAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseDestroyedAfterRegisterCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
View file @
7c5735a3
...
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
SelectNewSoftwareReleaseUri
\
CheckN
otFound
SoftwareReleaseErrorAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseErrorAfterRegisterCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
7c5735a3
...
...
@@ -1969,7 +1969,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
assertTrue
(
isinstance
(
computer
.
getSoftwareReleaseList
()[
0
],
slap
.
SoftwareRelease
))
def
stepCheckN
otFound
SoftwareReleaseBuildingAfterRegisterCall
(
self
,
def
stepCheckN
ameError
SoftwareReleaseBuildingAfterRegisterCall
(
self
,
sequence
,
**
kw
):
"""
Check that calling SoftwareRelease.building after just registration raises a
...
...
@@ -1980,7 +1980,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
self
.
assertRaises
(
slap
.
NotFound
Error
,
software_release
.
building
)
self
.
assertRaises
(
Name
Error
,
software_release
.
building
)
def
stepCheckNotFoundSoftwareReleaseDestroyedCall
(
self
,
sequence
,
**
kw
):
computer_guid
=
sequence
[
"computer_reference"
]
...
...
@@ -1992,16 +1992,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
software_release
.
_computer_guid
=
computer_guid
self
.
assertRaises
(
slap
.
NotFoundError
,
software_release
.
destroyed
)
def
stepCheckN
otFound
SoftwareReleaseDestroyedAfterRegisterCall
(
self
,
sequence
,
def
stepCheckN
ameError
SoftwareReleaseDestroyedAfterRegisterCall
(
self
,
sequence
,
**
kw
):
url
=
sequence
[
"software_release_uri"
]
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
self
.
assertRaises
(
slap
.
NotFound
Error
,
software_release
.
destroyed
)
self
.
assertRaises
(
Name
Error
,
software_release
.
destroyed
)
def
stepCheckN
otFound
SoftwareReleaseAvailableAfterRegisterCall
(
self
,
sequence
,
def
stepCheckN
ameError
SoftwareReleaseAvailableAfterRegisterCall
(
self
,
sequence
,
**
kw
):
"""
Check that calling SoftwareRelease.available after just registration raises a
...
...
@@ -2012,9 +2012,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
self
.
assertRaises
(
slap
.
NotFound
Error
,
software_release
.
available
)
self
.
assertRaises
(
Name
Error
,
software_release
.
available
)
def
stepCheckN
otFound
SoftwareReleaseErrorAfterRegisterCall
(
self
,
sequence
,
def
stepCheckN
ameError
SoftwareReleaseErrorAfterRegisterCall
(
self
,
sequence
,
**
kw
):
"""
Check that calling SoftwareRelease.error after just registration raises a
...
...
@@ -2025,7 +2025,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
self
.
assertRaises
(
slap
.
NotFound
Error
,
software_release
.
error
,
"ErrorLog"
)
self
.
assertRaises
(
Name
Error
,
software_release
.
error
,
"ErrorLog"
)
def
stepCheckNotFoundComputerPartitionBuildingAfterRegisterCall
(
self
,
sequence
,
**
kw
):
...
...
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