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
Lisa Casino
slapos.core
Commits
30947267
Commit
30947267
authored
Oct 12, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_hypermedia: Skip test as this is not supported anymore.
parent
91291b55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
11 deletions
+41
-11
master/bt5/slapos_hypermedia/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.py
...rtal_components/test.erp5.testSlapOSHypermediaScenario.py
+2
-1
master/bt5/slapos_hypermedia/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.xml
...tal_components/test.erp5.testSlapOSHypermediaScenario.xml
+39
-10
No files found.
master/bt5/slapos_hypermedia/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.py
View file @
30947267
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# Copyright (c) 2002-2013 Nexedi SA and Contributors. All Rights Reserved.
# Copyright (c) 2002-2013 Nexedi SA and Contributors. All Rights Reserved.
import
transaction
from
Products.SlapOS.tests.testSlapOSMixin
import
\
from
Products.SlapOS.tests.testSlapOSMixin
import
\
testSlapOSMixin
testSlapOSMixin
import
json
import
json
import
httplib
import
httplib
import
urlparse
import
urlparse
import
base64
import
base64
from
unittest
import
skip
def
hateoasGetLinkFromLinks
(
links
,
title
):
def
hateoasGetLinkFromLinks
(
links
,
title
):
if
type
(
links
)
==
dict
:
if
type
(
links
)
==
dict
:
...
@@ -44,6 +44,7 @@ class TestSlapOSHypermediaPersonScenario(testSlapOSMixin):
...
@@ -44,6 +44,7 @@ class TestSlapOSHypermediaPersonScenario(testSlapOSMixin):
self
.
tic
()
self
.
tic
()
return
person_user
return
person_user
@
skip
(
"Hypermedia is not supported anymore."
)
def
test
(
self
):
def
test
(
self
):
erp5_person
=
self
.
_makeUser
()
erp5_person
=
self
.
_makeUser
()
self
.
tic
()
self
.
tic
()
...
...
master/bt5/slapos_hypermedia/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.xml
View file @
30947267
...
@@ -6,10 +6,22 @@
...
@@ -6,10 +6,22 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testSlapOSHypermediaScenario
</string>
</value>
<value>
<string>
testSlapOSHypermediaScenario
</string>
</value>
</item>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testSlapOSHypermediaScenario
</string>
</value>
<value>
<string>
test.erp5.testSlapOSHypermediaScenario
</string>
</value>
...
@@ -34,13 +46,15 @@
...
@@ -34,13 +46,15 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
W: 36, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W: 12, 5: Using type() instead of isinstance() for a typecheck. (unidiomatic-typecheck)
</string>
<string>
W: 36, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W: 59, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W: 36, 4: Unused variable \'api_scheme\' (unused-variable)
</string>
<string>
W:290, 4: Unused variable \'news_hal\' (unused-variable)
</string>
<string>
W:232, 4: Unused variable \'news_hal\' (unused-variable)
</string>
<string>
W: 60, 8: Unused variable \'api_fragment\' (unused-variable)
</string>
<string>
W:341, 4: Unused variable \'software_hal\' (unused-variable)
</string>
<string>
W: 59, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W: 37, 8: Unused variable \'api_fragment\' (unused-variable)
</string>
<string>
W:395, 4: Unused variable \'software_hal\' (unused-variable)
</string>
<string>
W: 3, 0: Unused import transaction (unused-import)
</string>
<string>
W:422, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W:422, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W:423, 8: Unused variable \'api_fragment\' (unused-variable)
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
@@ -51,13 +65,28 @@
...
@@ -51,13 +65,28 @@
<item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<key>
<string>
workflow_history
</string>
</key>
<value>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
I
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
</value>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
</pickle>
...
@@ -70,7 +99,7 @@
...
@@ -70,7 +99,7 @@
<item>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Q
=
</string>
</persistent>
</value>
</value>
</item>
</item>
</dictionary>
</dictionary>
...
@@ -79,7 +108,7 @@
...
@@ -79,7 +108,7 @@
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"
3"
aka=
"AAAAAAAAAAM
="
>
<record
id=
"
4"
aka=
"AAAAAAAAAAQ
="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
</pickle>
...
...
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