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
Roque
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):
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
SlapLoginCurrentComputer
\
SelectNewSoftwareReleaseUri
\
SelectNewSoftwareReleaseUri
\
CheckN
otFound
SoftwareReleaseAvailableAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseAvailableAfterRegisterCall
\
SlapLogout
\
SlapLogout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseBuilding.py
View file @
7c5735a3
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SelectNewSoftwareReleaseUri
\
SelectNewSoftwareReleaseUri
\
SlapLoginCurrentComputer
\
SlapLoginCurrentComputer
\
CheckN
otFound
SoftwareReleaseBuildingAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseBuildingAfterRegisterCall
\
SlapLogout
\
SlapLogout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
View file @
7c5735a3
...
@@ -12,7 +12,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
...
@@ -12,7 +12,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
SlapLoginCurrentComputer
\
SelectNewSoftwareReleaseUri
\
SelectNewSoftwareReleaseUri
\
CheckN
otFound
SoftwareReleaseDestroyedAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseDestroyedAfterRegisterCall
\
SlapLogout
\
SlapLogout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
View file @
7c5735a3
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
...
@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_formated_computer
+
'
\
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
SlapLoginCurrentComputer
\
SelectNewSoftwareReleaseUri
\
SelectNewSoftwareReleaseUri
\
CheckN
otFound
SoftwareReleaseErrorAfterRegisterCall
\
CheckN
ameError
SoftwareReleaseErrorAfterRegisterCall
\
SlapLogout
\
SlapLogout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
7c5735a3
...
@@ -1969,7 +1969,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1969,7 +1969,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
assertTrue
(
isinstance
(
computer
.
getSoftwareReleaseList
()[
0
],
self
.
assertTrue
(
isinstance
(
computer
.
getSoftwareReleaseList
()[
0
],
slap
.
SoftwareRelease
))
slap
.
SoftwareRelease
))
def
stepCheckN
otFound
SoftwareReleaseBuildingAfterRegisterCall
(
self
,
def
stepCheckN
ameError
SoftwareReleaseBuildingAfterRegisterCall
(
self
,
sequence
,
**
kw
):
sequence
,
**
kw
):
"""
"""
Check that calling SoftwareRelease.building after just registration raises a
Check that calling SoftwareRelease.building after just registration raises a
...
@@ -1980,7 +1980,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1980,7 +1980,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
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
):
def
stepCheckNotFoundSoftwareReleaseDestroyedCall
(
self
,
sequence
,
**
kw
):
computer_guid
=
sequence
[
"computer_reference"
]
computer_guid
=
sequence
[
"computer_reference"
]
...
@@ -1992,16 +1992,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1992,16 +1992,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
software_release
.
_computer_guid
=
computer_guid
software_release
.
_computer_guid
=
computer_guid
self
.
assertRaises
(
slap
.
NotFoundError
,
software_release
.
destroyed
)
self
.
assertRaises
(
slap
.
NotFoundError
,
software_release
.
destroyed
)
def
stepCheckN
otFound
SoftwareReleaseDestroyedAfterRegisterCall
(
self
,
sequence
,
def
stepCheckN
ameError
SoftwareReleaseDestroyedAfterRegisterCall
(
self
,
sequence
,
**
kw
):
**
kw
):
url
=
sequence
[
"software_release_uri"
]
url
=
sequence
[
"software_release_uri"
]
self
.
slap
=
slap
.
slap
()
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
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
):
**
kw
):
"""
"""
Check that calling SoftwareRelease.available after just registration raises a
Check that calling SoftwareRelease.available after just registration raises a
...
@@ -2012,9 +2012,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -2012,9 +2012,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
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
):
**
kw
):
"""
"""
Check that calling SoftwareRelease.error after just registration raises a
Check that calling SoftwareRelease.error after just registration raises a
...
@@ -2025,7 +2025,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -2025,7 +2025,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
software_release
=
self
.
slap
.
registerSoftwareRelease
(
url
)
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
,
def
stepCheckNotFoundComputerPartitionBuildingAfterRegisterCall
(
self
,
sequence
,
**
kw
):
**
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