Requirement test sample files should be validated as XMLs before used
@nandinivij ya está trabajando en esto.
Desde el 22/2/2022.
- #565 de @nandinivij — cerrado sin fusionar
Evaluación
Este issue todavía no se ha evaluado.
Descripción
If element is not formatted correctly (eg. <field name="dest" value="so1" \> instead of <field name="dest" value="so1" />), tests are not executed and misleading information is given to the user:
WARNING pytest-splunk-addon:splunk.py:831 Could not connect to Universal Forwarder Instance. Will try again. exception=[Errno 0] Error
INFO pytest-splunk-addon:splunk.py:817 Trying to connect Universal Forwarder instance... splunk={"uf_host": "127.0.0.1", "uf_port": 61328, "uf_username": "admin", "uf_password": "[some password]"}
INFO pytest-splunk-addon:splunk.py:825 Connected to Universal Forwarder instance.
INFO pytest-splunk-addon:splunk.py:784 Events cleanup was disabled.
DEBUG filelock:_api.py:169 Attempting to acquire lock 140391159921680 on ef875bad1f9e4cfc94db55edbf5a90d1_events.lock
DEBUG filelock:_api.py:173 Lock 140391159921680 acquired on ef875bad1f9e4cfc94db55edbf5a90d1_events.lock
DEBUG filelock:_api.py:203 Attempting to release lock 140391159921680 on ef875bad1f9e4cfc94db55edbf5a90d1_events.lock
DEBUG filelock:_api.py:206 Lock 140391159921680 released on ef875bad1f9e4cfc94db55edbf5a90d1_events.lock
INFO pytest-splunk-addon:hec_event_ingestor.py:120 Making a HEC event request with the following params:
hec_uri:https://127.0.0.1:61242/services/collector
headers:{'Authorization': 'Splunk 9b741d03-43e9-4164-908b-e09102327d22'}
DEBUG urllib3.connectionpool:connectionpool.py:1005 Starting new HTTPS connection (1): 127.0.0.1:61242
DEBUG urllib3.connectionpool:connectionpool.py:465 https://127.0.0.1:61242 "POST /services/collector/event HTTP/1.1" 200 27
=========================================================================================================== short test summary info ============================================================================================================
ERROR tests/requirement_test/test_addon.py::Test_App::test_events_with_untokenised_values - File "<string>", line None
=================================================================================================== 1 skipped, 1 error in 194.39s (0:03:14) ====================================================================================================
Desirable is to have information that "XML is not formatted correctly" and tests terminated.
- Lenguaje dominante
- Python
- Estrellas
- 66
- Forks
- 21
- Merge medio
- 7 h 10 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de splunk/pytest-splunk-addon
-
sample_generation/rule.py randint() crashes under Python 3.13 (float args no longer accepted)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
splunk/pytest-splunk-addon#959 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
splunk/pytest-splunk-addon#967 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
splunk/pytest-splunk-addon#963 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
splunk/pytest-splunk-addon#895 ·
-
enhancement major
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
splunk/pytest-splunk-addon#549 ·
Todos los issues de splunk/pytest-splunk-addon
Issues similares
-
infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
khuisman/mcp-gee-sweet#1152 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
backroom bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ditto-assistant/ditto-subnet#3069 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
open-webui/open-webui#32901 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
0.3.3 bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día