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
Léo-Paul Géneau
slapos.core
Commits
ce27c48a
Commit
ce27c48a
authored
Apr 23, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
root_state property is deprecated
parent
1d1eed55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
master/bt5/vifib_slapos_core_test/TestTemplateItem/testSlapOSCorePersonRequest.py
...core_test/TestTemplateItem/testSlapOSCorePersonRequest.py
+8
-8
master/bt5/vifib_slapos_core_test/bt/revision
master/bt5/vifib_slapos_core_test/bt/revision
+1
-1
No files found.
master/bt5/vifib_slapos_core_test/TestTemplateItem/testSlapOSCorePersonRequest.py
View file @
ce27c48a
...
...
@@ -159,7 +159,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
state
=
"started"
,
)
hosting_subscription
=
person
.
REQUEST
.
get
(
'request_hosting_subscription'
)
self
.
assertEquals
(
"started"
,
hosting_subscription
.
get
Root
State
())
self
.
assertEquals
(
"started"
,
hosting_subscription
.
get
Slap
State
())
person
.
requestSoftwareInstance
(
software_release
=
software_release
,
...
...
@@ -171,7 +171,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
state
=
"stopped"
,
)
hosting_subscription
=
person
.
REQUEST
.
get
(
'request_hosting_subscription'
)
self
.
assertEquals
(
"stopped"
,
hosting_subscription
.
get
Root
State
())
self
.
assertEquals
(
"stopped"
,
hosting_subscription
.
get
Slap
State
())
person
.
requestSoftwareInstance
(
software_release
=
software_release
,
...
...
@@ -183,7 +183,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
state
=
"destroyed"
,
)
hosting_subscription
=
person
.
REQUEST
.
get
(
'request_hosting_subscription'
)
self
.
assertEquals
(
"destroyed"
,
hosting_subscription
.
get
Root
State
())
self
.
assertEquals
(
"destroyed"
,
hosting_subscription
.
get
Slap
State
())
def
test_Person_requestSoftwareInstance_returnHostingSubscriptionUrl
(
self
):
person
=
self
.
getPortalObject
().
ERP5Site_getAuthenticatedMemberPersonValue
()
...
...
@@ -241,7 +241,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
self
.
assertEquals
(
instance_xml
,
hosting_subscription
.
getTextContent
())
self
.
assertEquals
(
sla_xml
,
hosting_subscription
.
getSlaXml
())
self
.
assertEquals
(
shared
,
hosting_subscription
.
getRootSlave
())
self
.
assertEquals
(
state
,
hosting_subscription
.
get
Root
State
())
self
.
assertEquals
(
state
,
hosting_subscription
.
get
Slap
State
())
self
.
assertEquals
(
"HOSTSUBS-%s"
%
(
previous_id
+
1
),
hosting_subscription
.
getReference
())
self
.
assertEquals
(
"validated"
,
hosting_subscription
.
getValidationState
())
...
...
@@ -334,7 +334,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
self
.
assertEquals
(
instance_xml2
,
hosting_subscription
.
getTextContent
())
self
.
assertEquals
(
sla_xml2
,
hosting_subscription
.
getSlaXml
())
self
.
assertEquals
(
shared2
,
hosting_subscription
.
getRootSlave
())
self
.
assertEquals
(
state2
,
hosting_subscription
.
get
Root
State
())
self
.
assertEquals
(
state2
,
hosting_subscription
.
get
Slap
State
())
self
.
assertEquals
(
"validated"
,
hosting_subscription
.
getValidationState
())
def
test_Person_requestSoftwareInstance_duplicatedHostingSubscription
(
self
):
...
...
@@ -432,7 +432,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
self
.
assertEquals
(
instance_xml2
,
hosting_subscription2
.
getTextContent
())
self
.
assertEquals
(
sla_xml2
,
hosting_subscription2
.
getSlaXml
())
self
.
assertEquals
(
shared2
,
hosting_subscription2
.
getRootSlave
())
self
.
assertEquals
(
state2
,
hosting_subscription2
.
get
Root
State
())
self
.
assertEquals
(
state2
,
hosting_subscription2
.
get
Slap
State
())
self
.
assertEquals
(
"validated"
,
hosting_subscription2
.
getValidationState
())
def
test_Person_requestSoftwareInstance_noConflictWithDeletedHostingSubscription
(
self
):
...
...
@@ -455,7 +455,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
state
=
"destroyed"
,
)
hosting_subscription
=
person
.
REQUEST
.
get
(
'request_hosting_subscription'
)
self
.
assertEquals
(
"destroyed"
,
hosting_subscription
.
get
Root
State
())
self
.
assertEquals
(
"destroyed"
,
hosting_subscription
.
get
Slap
State
())
transaction
.
commit
()
self
.
tic
()
...
...
@@ -469,6 +469,6 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
state
=
"started"
,
)
hosting_subscription2
=
person
.
REQUEST
.
get
(
'request_hosting_subscription'
)
self
.
assertEquals
(
"started"
,
hosting_subscription2
.
get
Root
State
())
self
.
assertEquals
(
"started"
,
hosting_subscription2
.
get
Slap
State
())
self
.
assertNotEquals
(
hosting_subscription
.
getRelativeUrl
(),
hosting_subscription2
.
getRelativeUrl
())
master/bt5/vifib_slapos_core_test/bt/revision
View file @
ce27c48a
3
\ No newline at end of file
4
\ No newline at end of file
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