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
4ebabd62
Commit
4ebabd62
authored
May 24, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup Portal Certificate Authority required by test.
parent
24a4ed2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
master/bt5/vifib_slapos_core_test/TestTemplateItem/testSlapOSCorePersonRequest.py
...core_test/TestTemplateItem/testSlapOSCorePersonRequest.py
+8
-2
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 @
4ebabd62
# Copyright (c) 2002-2012 Nexedi SA and Contributors. All Rights Reserved.
# Copyright (c) 2002-2012 Nexedi SA and Contributors. All Rights Reserved.
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.Vifib.tests.testVifibSlapWebService
import
\
TestVifibSlapWebServiceMixin
import
transaction
import
transaction
class
TestSlapOSCorePersonRequest
(
ERP5TypeTestCase
):
class
TestSlapOSCorePersonRequest
(
TestVifibSlapWebServiceMixin
):
def
generateNewId
(
self
):
def
generateNewId
(
self
):
return
self
.
getPortalObject
().
portal_ids
.
generateNewId
(
return
self
.
getPortalObject
().
portal_ids
.
generateNewId
(
...
@@ -15,6 +16,8 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
...
@@ -15,6 +16,8 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
new_id
=
self
.
generateNewId
()
new_id
=
self
.
generateNewId
()
self
.
setupPortalCertificateAuthority
()
# Clone software release document
# Clone software release document
software_release
=
portal
.
software_release_module
.
template_software_release
.
\
software_release
=
portal
.
software_release_module
.
template_software_release
.
\
Base_createCloneDocument
(
batch_mode
=
1
)
Base_createCloneDocument
(
batch_mode
=
1
)
...
@@ -59,6 +62,9 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
...
@@ -59,6 +62,9 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
new_person
=
self
.
getPortalObject
().
ERP5Site_getAuthenticatedMemberPersonValue
()
new_person
=
self
.
getPortalObject
().
ERP5Site_getAuthenticatedMemberPersonValue
()
self
.
assertEquals
(
person_user
.
getRelativeUrl
(),
new_person
.
getRelativeUrl
())
self
.
assertEquals
(
person_user
.
getRelativeUrl
(),
new_person
.
getRelativeUrl
())
def
beforeTearDown
(
self
):
pass
def
test_Person_requestSoftwareInstance_requiredParameter
(
self
):
def
test_Person_requestSoftwareInstance_requiredParameter
(
self
):
person
=
self
.
getPortalObject
().
ERP5Site_getAuthenticatedMemberPersonValue
()
person
=
self
.
getPortalObject
().
ERP5Site_getAuthenticatedMemberPersonValue
()
...
...
master/bt5/vifib_slapos_core_test/bt/revision
View file @
4ebabd62
9
10
\ No newline at end of file
\ 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