Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
wendelin
Commits
a9ba8af3
Commit
a9ba8af3
authored
Jul 29, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
fb636ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
54 deletions
+2
-54
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+1
-48
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.xml
...TemplateItem/portal_components/test.erp5.testWendelin.xml
+1
-6
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
a9ba8af3
...
...
@@ -349,61 +349,14 @@ class Test(ERP5TypeTestCase):
Test ingestion using a POST Request containing a msgpack encoded message
simulating input from fluentd.
"""
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
import
time
portal
=
self
.
portal
now
=
datetime
.
now
()
reference
=
"test_sensor.test_product"
title
=
reference
ingestion_policy
=
portal
.
portal_ingestion_policies
[
'default'
]
# create related data supply and etc.
use_category
=
portal
.
restrictedTraverse
(
"portal_categories/use/big_data/ingestion/stream"
)
data_operation
=
portal
.
restrictedTraverse
(
"data_operation_module/wendelin_ingest_data"
)
# create Data Product
#data_product = portal.data_product_module.newContent(
# portal_type = "Data Product",
# title = "Append to Data Stream",
# reference = reference.split('.')[1])
#data_product.setUseValue(use_category)
#data_product.setAggregatedPortalTypeList(["Data Stream", "Progress Indicator"])
#data_product.validate()
# create Data Supply
#data_supply_kw = {'title': title,
# 'reference': reference.split('.')[0],
# 'version': '001',
# 'effective_date': now,
# 'expiration_date': now + timedelta(days=365)}
#data_supply = portal.data_supply_module.newContent( \
# portal_type='Data Supply', **data_supply_kw)
#data_supply.validate()
# add ingestion line
#data_supply_line_kw = {'title': 'Ingest Data',
# 'reference': 'ingestion_operation',
# 'int_index': 1,
# 'quantity': 1.0}
#data_supply_line = data_supply.newContent(portal_type='Data Supply Line', **data_supply_line_kw)
#data_supply_line.setResourceValue(data_operation)
# add append to Data Stream line
#data_supply_line_kw = {'title': 'Data Stream',
# 'reference': 'out_stream',
# 'int_index': 2,
# 'quantity': 1.0}
#data_supply_line = data_supply.newContent(portal_type='Data Supply Line', \
# **data_supply_line_kw)
#data_supply_line.setResourceValue(data_product)
#data_supply_line.setUseValue(use_category)
#self.tic()
data_supply
=
portal
.
data_supply_module
[
"default"
]
data_list
=
[]
...
...
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.xml
View file @
a9ba8af3
...
...
@@ -45,12 +45,7 @@
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W:366, 4: Unused variable \'data_operation\' (unused-variable)
</string>
<string>
W:352, 4: Unused variable \'timedelta\' (unused-variable)
</string>
<string>
W:359, 4: Unused variable \'title\' (unused-variable)
</string>
<string>
W:364, 4: Unused variable \'use_category\' (unused-variable)
</string>
</tuple>
<tuple/>
</value>
</item>
<item>
...
...
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