Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
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
Paul Graydon
wendelin-telecom
Commits
f172a89b
Commit
f172a89b
authored
Jan 20, 2025
by
Paul Graydon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin_telecom_test: Add duplicated eNB log ingestion test
parent
fd43bb77
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
379 additions
and
3 deletions
+379
-3
bt5/wendelin_telecom_test/PathTemplateItem/web_page_module/test_example_ors_enb_log_with_duplicates.html
...page_module/test_example_ors_enb_log_with_duplicates.html
+248
-0
bt5/wendelin_telecom_test/PathTemplateItem/web_page_module/test_example_ors_enb_log_with_duplicates.xml
..._page_module/test_example_ors_enb_log_with_duplicates.xml
+111
-0
bt5/wendelin_telecom_test/TestTemplateItem/portal_components/test.erp5.testWendelinTelecom.py
...teItem/portal_components/test.erp5.testWendelinTelecom.py
+20
-3
No files found.
bt5/wendelin_telecom_test/PathTemplateItem/web_page_module/test_example_ors_enb_log_with_duplicates.html
0 → 100644
View file @
f172a89b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
bt5/wendelin_telecom_test/PathTemplateItem/web_page_module/test_example_ors_enb_log_with_duplicates.xml
0 → 100644
View file @
f172a89b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
test_example_ors_enb_log_with_duplicates
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test_example_ors_enb_log_with_duplicates
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Test ORS Example Log (With Duplicates)
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_test/TestTemplateItem/portal_components/test.erp5.testWendelinTelecom.py
View file @
f172a89b
...
...
@@ -68,6 +68,9 @@ class WendelinTelecomTest(SecurityTestCase):
self
.
test_ors_example_log_invalid_split_2
=
{
'log'
:
self
.
portal
.
web_page_module
.
test_example_ors_enb_log_invalid_split_2
.
getTextContent
()
}
self
.
test_ors_example_log_with_duplicates
=
{
'log'
:
self
.
portal
.
web_page_module
.
test_example_ors_enb_log_with_duplicates
.
getTextContent
()
}
self
.
test_ors_example_log_empty
=
{
'log'
:
""
}
# Set up ingestor user for performing ingestions
...
...
@@ -1033,6 +1036,8 @@ class WendelinTelecomTest(SecurityTestCase):
self
.
test_ors_example_log_invalid_split_1
,
self
.
test_ors_example_log_invalid_split_2
]
elif
data_key
==
"duplicated"
:
test_ors_example_logs
=
[
self
.
test_ors_example_log_with_duplicates
]
elif
data_key
==
"empty"
:
test_ors_example_logs
=
[
self
.
test_ors_example_log_empty
]
...
...
@@ -1088,7 +1093,7 @@ class WendelinTelecomTest(SecurityTestCase):
(
'ul_hi'
,
'<f8'
)
]
if
data_key
==
"valid"
:
if
data_key
in
[
"valid"
,
"duplicated"
]
:
e_rab_array_shape
=
(
82
,)
e_utran_array_shape
=
(
20992
,)
elif
data_key
==
"invalid"
:
...
...
@@ -1149,7 +1154,19 @@ class WendelinTelecomTest(SecurityTestCase):
# Call the above test, but test with invalid data
self
.
test_04_1_ingestValidOrsLogDataFromFluentd
(
data_key
=
"invalid"
)
def
test_04_3_ingestEmptyOrsLogDataFromFluentd
(
self
):
def
test_04_3_ingestDuplicatedOrsLogDataFromFluentd
(
self
):
'''
Test an ORS log ingestion where data lines have been duplicated:
simulate a fluentd gateway forwarding invalid ORS logs to the platform.
Check that all items are still valid, as duplicate log lines are removed before
the KPIs are calculated.
Also check the fetching of KPI values through the dedicated API endpoint.
'''
# Call the above test, but test with invalid data
self
.
test_04_1_ingestValidOrsLogDataFromFluentd
(
data_key
=
"duplicated"
)
def
test_04_4_ingestEmptyOrsLogDataFromFluentd
(
self
):
'''
Test an empty ORS log ingestion: simulate a fluentd gateway forwarding empty ORS logs to the platform.
Check that all items are valid, but the data arrays remain uninitialized.
...
...
@@ -1159,7 +1176,7 @@ class WendelinTelecomTest(SecurityTestCase):
# Call the above test, but test with empty data
self
.
test_04_1_ingestValidOrsLogDataFromFluentd
(
data_key
=
"empty"
)
def
test_04_
4
_ingestOrsLogDataWithoutTagPrefix
(
self
):
def
test_04_
5
_ingestOrsLogDataWithoutTagPrefix
(
self
):
'''
Simulate an entity trying to send data to the platform for ingestion
without using the 'ors.' tag prefix added by fluentd.
...
...
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