Skip to content

Commit 119dcc6

Browse files
harshilgajera-crestmkolasinski-splunkdvarasani-crestmbruzda-splunksrv-rr-github-token
authored
feat: add cim 6.2.0 support (#928)
Adding support for cim 6.2.0 Adding compatibility for python 3.13 Update ignore_internal_errors file --------- Co-authored-by: mkolasinski-splunk <105011638+mkolasinski-splunk@users.noreply.github.com> Co-authored-by: dvarasani-crest <151819886+dvarasani-crest@users.noreply.github.com> Co-authored-by: Marcin Bruzda <94437843+mbruzda-splunk@users.noreply.github.com> Co-authored-by: srv-rr-github-token <94607705+srv-rr-github-token@users.noreply.github.com> Co-authored-by: mbruzda <mbruzda@splunk.com> Co-authored-by: Darshan Varasani <dvarasani@splunk.com>
1 parent 5b12b14 commit 119dcc6

File tree

14 files changed

+81
-67
lines changed

14 files changed

+81
-67
lines changed

NOTICE

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
The following 3rd-party software packages may be used by or distributed with pytest-splunk-addon. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
99

10-
Date generated: 2025-10-27
10+
Date generated: 2025-11-19
1111

12-
Revision ID: 6303babdf76a1a5c0dabd335e2fda2f069c87948
12+
Revision ID: 683fb5aecf5f30568520e0b9e320bf59f22e13bf
1313

1414
================================================================================
1515
================================================================================
@@ -66,9 +66,9 @@ No licenses found
6666
- jsonschema (4.17.3) [MIT, Apache-2.0]
6767
- junitparser (4.0.2) [Apache-2.0]
6868
- packaging (24.0) [Apache-2.0]
69-
- pkgutil_resolve_name (1.3.10) [MIT, PSF-2.0]
69+
- pkgutil_resolve_name (1.3.10) [PSF-2.0, MIT]
7070
- pluggy (1.2.0) [MIT]
71-
- pyparsing (3.1.4) [MIT, BSD-3-Clause, MIT-CMU, GPL-1.0-only]
71+
- pyparsing (3.1.4) [MIT, MIT-CMU, GPL-1.0-only, BSD-3-Clause]
7272
- pyrsistent (0.19.3) [MIT, BSD-3-Clause]
7373
- pytest (7.4.4) [MIT]
7474
- pytest-ordering (0.6) [MIT]
@@ -1927,7 +1927,24 @@ Package Depth: Transitive
19271927
--------------------------------------------------------------------------------
19281928

19291929
* Declared Licenses *
1930-
MIT, PSF-2.0
1930+
PSF-2.0, MIT
1931+
1932+
* PSF-2.0 *
1933+
--------------------------------------------------------------------------------
1934+
File matches:
1935+
LICENSE
1936+
--------------------------------------------------------------------------------
1937+
1938+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
1939+
1940+
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation.
1941+
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.
1942+
3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.
1943+
4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
1944+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
1945+
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
1946+
7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
1947+
8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.
19311948

19321949
* MIT *
19331950
--------------------------------------------------------------------------------
@@ -2012,23 +2029,6 @@ agrees to be bound by the terms and conditions of this License
20122029
Agreement.
20132030

20142031

2015-
* PSF-2.0 *
2016-
--------------------------------------------------------------------------------
2017-
File matches:
2018-
LICENSE
2019-
--------------------------------------------------------------------------------
2020-
2021-
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
2022-
2023-
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation.
2024-
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.
2025-
3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.
2026-
4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
2027-
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
2028-
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
2029-
7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
2030-
8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.
2031-
20322032

20332033
--------------------------------------------------------------------------------
20342034
Package Title: pluggy (1.2.0)
@@ -2111,12 +2111,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21112111

21122112

21132113
* Other Licenses *
2114-
BSD-3-Clause, MIT-CMU, GPL-1.0-only
2114+
MIT-CMU, GPL-1.0-only, BSD-3-Clause
2115+
2116+
* MIT-CMU *
2117+
--------------------------------------------------------------------------------
2118+
File matches:
2119+
examples/snmp_api.h
2120+
--------------------------------------------------------------------------------
2121+
2122+
2123+
Copyright 1989, 1991, 1992 by Carnegie Mellon University
2124+
Derivative Work - 1996, 1998-2000 Copyright 1996, 1998-2000 The Regents of the University of California
2125+
All Rights Reserved
2126+
Permission to use, copy, modify and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of CMU and The Regents of the University of California not be used in advertising or publicity pertaining to distribution of the software without specific written permission.
2127+
CMU AND THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL CMU OR THE REGENTS OF THE UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM THE LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2128+
2129+
* GPL-1.0-only *
2130+
--------------------------------------------------------------------------------
2131+
File matches:
2132+
examples/verilog_parse.py
2133+
--------------------------------------------------------------------------------
2134+
2135+
2136+
Copyright (C) 2004-2011 Paul T. McGuire. All rights reserved.
2137+
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 1.
2138+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2139+
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21152140

21162141
* BSD-3-Clause *
21172142
--------------------------------------------------------------------------------
21182143
File matches:
2119-
examples/searchparser.py
2144+
examples/booleansearchparser.py
21202145
--------------------------------------------------------------------------------
21212146

21222147

@@ -2147,31 +2172,6 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21472172
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21482173
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21492174

2150-
* MIT-CMU *
2151-
--------------------------------------------------------------------------------
2152-
File matches:
2153-
examples/snmp_api.h
2154-
--------------------------------------------------------------------------------
2155-
2156-
2157-
Copyright 1989, 1991, 1992 by Carnegie Mellon University
2158-
Derivative Work - 1996, 1998-2000 Copyright 1996, 1998-2000 The Regents of the University of California
2159-
All Rights Reserved
2160-
Permission to use, copy, modify and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of CMU and The Regents of the University of California not be used in advertising or publicity pertaining to distribution of the software without specific written permission.
2161-
CMU AND THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL CMU OR THE REGENTS OF THE UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM THE LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2162-
2163-
* GPL-1.0-only *
2164-
--------------------------------------------------------------------------------
2165-
File matches:
2166-
examples/verilog_parse.py
2167-
--------------------------------------------------------------------------------
2168-
2169-
2170-
Copyright (C) 2004-2011 Paul T. McGuire. All rights reserved.
2171-
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 1.
2172-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2173-
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2174-
21752175

21762176
--------------------------------------------------------------------------------
21772177
Package Title: pyrsistent (0.19.3)
@@ -5913,13 +5913,13 @@ Copyright (c) 2022 SISSA (International School for Advanced Studies).
59135913

59145914
Copyright (c) 2018-2021 SISSA (International School for Advanced Studies).
59155915

5916-
Copyright (c) 2018-2023 SISSA (International School for Advanced Studies).
5917-
59185916
Copyright (c) 2018-2022 SISSA (International School for Advanced Studies).
59195917

5920-
Copyright (c) 2023 SISSA (International School for Advanced Studies).
5918+
Copyright (c) 2018-2023 SISSA (International School for Advanced Studies).
59215919

59225920
Copyright (c) 2018 SISSA (International School for Advanced Studies).
5921+
5922+
Copyright (c) 2023 SISSA (International School for Advanced Studies).
59235923
MIT License
59245924
Copyright (c) <year> <copyright holders>
59255925

@@ -6332,4 +6332,4 @@ This formulation of W3C's notice and license became active on August 14 1998 so
63326332
--------------------------------------------------------------------------------
63336333
--------------------------------------------------------------------------------
63346334

6335-
Report Generated by FOSSA on 2025-10-27
6335+
Report Generated by FOSSA on 2025-11-19

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
[tool.poetry]
1818
name = "pytest-splunk-addon"
19-
version = "6.2.0"
19+
version = "6.3.0-beta.3"
2020
description = "A Dynamic test tool for Splunk Apps and Add-ons"
2121
authors = ["Splunk <addonfactory@splunk.com>"]
2222
license = "APACHE-2.0"

pytest_splunk_addon/.ignore_splunk_internal_errors

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ app="search" sid="*" message_key="" message=Failed to get latest bucketMap from
1414
ERROR SavedSplunker - savedsearch_id="nobody;cloud-monitoring-console-summarizer;splunk-svc", message="Error in 'eval' command: Failed to parse the provided arguments. Usage: eval dest_key = expression.". No actions executed
1515
SavedSplunker - savedsearch_id="nobody;splunk_instance_monitoring;SIM SS - Splunk Apps Manifest", message="Error in 'lookup' command: Could not construct lookup 'splunk_upgrade_prereq_es_installable_apps.csv, app, OUTPUT, es_managed'. See search.log for more details.". No actions executed
1616
ERROR SearchMessages - orig_component="SearchStatusEnforcer" app="search" sid="*" message_key="" message=Error in 'noah' command: operation='get_latest_bucket_map' failed with err='Failed Dependency'
17-
Error reading SSG config from KV Store
17+
Error reading SSG config from KV Store
18+
"service":"compsup"
19+
"service":"ipc_broker"

pytest_splunk_addon/CIM_Models/datamodel_definition.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,8 +2396,9 @@
23962396
},
23972397
},
23982398
}
2399-
# No fields changes between v6.0.0 and v6.0.2
2399+
# No recommended/required fields changes between v6.0.0 and v6.2.0
24002400
datamodels["6.0.1"] = datamodels["6.0.0"]
24012401
datamodels["6.0.2"] = datamodels["6.0.0"]
24022402
datamodels["6.1.0"] = datamodels["6.0.2"]
2403-
datamodels["latest"] = datamodels["6.1.0"]
2403+
datamodels["6.2.0"] = datamodels["6.1.0"]
2404+
datamodels["latest"] = datamodels["6.2.0"]

pytest_splunk_addon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919
__author__ = """Splunk Inc."""
2020
__email__ = "addonfactory@splunk.com"
21-
__version__ = "6.2.0"
21+
__version__ = "6.3.0-beta.3"

pytest_splunk_addon/addon_parser/props_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _get_extract_fields(self, name: str, value: str):
203203
yield field
204204

205205
# If SOURCE_KEY is used in EXTRACT, generate the test for the same.
206-
regex_for_source_key = r"(?:(?i)in\s+(\w+))\s*$"
206+
regex_for_source_key = r"(?i)(?:in\s+(\w+))\s*$"
207207
extract_source_key = re.search(regex_for_source_key, value, re.MULTILINE)
208208
if extract_source_key:
209209
LOGGER.info(f"Found a source key in {name}")
@@ -260,7 +260,7 @@ def _get_fieldalias_fields(self, name: str, value: str):
260260
"""
261261
regex = (
262262
r"(\"(?:\\\"|[^\"])*\"|\'(?:\\\'|[^\'])*\'|[^\s,]+)"
263-
r"\s+(?i)(?:as(?:new)?)\s+"
263+
r"\s+(?:as(?:new)?)\s+"
264264
r"(\"(?:\\\"|[^\"])*\"|\'(?:\\\'|[^\'])*\'|[^\s,]+)"
265265
)
266266
fields_tuples = re.findall(regex, value, re.IGNORECASE)

pytest_splunk_addon/data_models/Data_Access.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@
6565
"type": "optional",
6666
"comment": "Name of the destination as defined by the Vendor."
6767
},
68+
{
69+
"name": "dest_type",
70+
"type": "optional",
71+
"comment": "The type of the destination object, such as 'instance', 'storage', 'firewall', 'printer'."
72+
},
6873
{
6974
"name": "dest_url",
7075
"type": "optional",

pytest_splunk_addon/data_models/Endpoint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
{
616616
"name": "status",
617617
"type": "required",
618-
"expected_values": ["critical", "started", "stopped", "warning"],
618+
"expected_values": ["critical", "started", "stopped", "warning", "installed"],
619619
"validation": "",
620620
"comment": "The status of the service."
621621
},

pytest_splunk_addon/data_models/Intrusion_Detection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
"type": "optional",
8282
"comment": "The unique identifier or event code of the event signature."
8383
},
84+
{
85+
"name": "dest_type",
86+
"type": "optional",
87+
"comment": "The type of the destination object, such as 'instance', 'storage', 'firewall'."
88+
},
8489
{
8590
"name": "src",
8691
"type": "conditional",

pytest_splunk_addon/data_models/Updates.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
{
2929
"name": "file_name",
3030
"type": "required",
31+
"multi_value": true,
3132
"comment":"The name of the patch package that was installed or attempted."
3233
},
3334
{

0 commit comments

Comments
 (0)