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
Ophélie Gagnard
slapos.core
Commits
405bf76f
Commit
405bf76f
authored
12 years ago
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proof that too long tag will fail.
parent
97970ea3
master
abyss
abyss_dev
alain-message
amarisoft
cleanup
cliff-cleanup
cygwin-link-local
feat/cli_request_file
feat/node-secrets
feat/openapi
feat/standalone-service
feat/testcase_upgrade_test
feature/cgroups
feature/format-crumbled
feature/manager-cpuset
fix/prune_recursive_return
fix/slapos-ansible
fix_format_ipv4_tap
hosting_daily_invoice
master-dev
message-box
nicolas-improve-attention-point
old.beginning
old.scan-filesystem-renaming
old.scan-filesystem_after-rebasing
old.scan-filesystem_before-rebasing
proxy
slapos-override-env
slapproxy-connection-parameter
tomo_fix_slapos_configurator
1.6.18
1.6.17
1.6.16
1.6.15
1.6.14
1.6.13
1.6.12
1.6.11
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.12
1.5.11
1.5.10
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.28
1.4.27
1.4.26
1.4.25
1.4.24
1.4.23
1.4.22
1.4.21
1.4.20
1.4.19
1.4.17
1.4.16
1.4.15
1.4.14
1.4.12
1.4.11
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.18
1.3.17
1.3.16
1.3.15
1.3.14
1.3.13
1.3.12
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6.3
1.3.6.2
1.3.6.1
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.4.1
1.2.4
1.2.3.1
1.2.3
1.2.2
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0rc6
1.0.0rc5
1.0.0rc4
1.0.0rc3
1.0.0-rc1
0.35.1
0.34
0.33.1
0.33
0.32.3
0.32.2
0.32
0.31.2
0.31.1
0.31
0.30
0.29
0.28.9
0.28.8
0.28.7
0.28.6
0.28.5
0.28.4
0.28.3
0.28.2
0.28.1
0.28
master-20180917
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
3 deletions
+52
-3
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
...oduct/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
+52
-3
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
View file @
405bf76f
...
...
@@ -4,6 +4,8 @@ from testVifibSlapWebService import TestVifibSlapWebServiceMixin
from
random
import
random
from
Products.ERP5Type.tests.backportUnittest
import
skip
from
Products.ERP5Type.Errors
import
UnsupportedWorkflowMethod
import
transaction
from
_mysql_exceptions
import
DataError
class
TestVifibSlapComputerPartitionUpdate
(
TestVifibSlapWebServiceMixin
):
def
stepRequestSoftwareInstanceUpdate
(
self
,
sequence
,
**
kw
):
...
...
@@ -467,18 +469,33 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
person
=
self
.
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
()
software_release
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_release_uid'
])
software_title
=
self
.
id
()
+
str
(
random
())
person
.
requestSoftwareInstance
(
software_release
=
software_release
.
getUrlString
(),
software_title
=
s
oftwar
e_title
,
software_title
=
s
elf
.
root_software_instanc
e_title
,
software_type
=
"RootSoftwareInstance"
,
instance_xml
=
self
.
minimal_correct_xml
,
sla_xml
=
""
,
shared
=
False
,
state
=
"started"
)
sequence
.
edit
(
root_software_instance_title
=
software_title
)
sequence
.
edit
(
root_software_instance_title
=
self
.
root_software_instance_title
)
def
stepPersonRequestSoftwareInstanceNoTicRaisesDataError
(
self
,
sequence
,
**
kw
):
person
=
self
.
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
()
software_release
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_release_uid'
])
person
.
requestSoftwareInstance
(
software_release
=
software_release
.
getUrlString
(),
software_title
=
self
.
root_software_instance_title
,
software_type
=
"RootSoftwareInstance"
,
instance_xml
=
self
.
minimal_correct_xml
,
sla_xml
=
""
,
shared
=
False
,
state
=
"started"
)
self
.
assertRaises
(
DataError
,
self
.
commit
)
transaction
.
abort
()
def
test_update_not_created_person_request_in_progress
(
self
):
self
.
root_software_instance_title
=
self
.
id
()
+
str
(
random
())
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_published_software_release
+
\
self
.
prepare_formated_computer
+
"""
...
...
@@ -512,6 +529,38 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_update_not_created_person_request_in_progress_long_title
(
self
):
self
.
root_software_instance_title
=
'a'
*
256
# longer then SQL column size
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_published_software_release
+
\
self
.
prepare_formated_computer
+
"""
LoginTestVifibAdmin
RequestSoftwareInstallation
Tic
Logout
SlapLoginCurrentComputer
ComputerSoftwareReleaseAvailable
Tic
SlapLogout
LoginTestVifibCustomer
PersonRequestSoftwareInstanceNoTicRaisesDataError
Logout
# and this that test finishes
# it is proven that person data are begin in progress
# but there is no way to request software instance update as...
# ...it does not exists yet
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestVifibSlapComputerPartitionUpdate
))
...
...
This diff is collapsed.
Click to expand it.
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