Server IP : 85.193.89.191 / Your IP : 18.219.212.91 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/979/cwd/lib/python2.7/site-packages/ansible/plugins/callback/ |
Upload File : |
� � �\c @` sN d d l m Z m Z m Z e Z d Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z y d d l m Z m Z e Z Wn e k r� e Z n Xy d d l m Z e Z WnE e k r y d d l m Z e Z Wqe k r e Z qXn Xd e f d � � YZ d d d � � YZ d d d � � YZ d S( i ( t absolute_importt divisiont print_functions� callback: junit type: aggregate short_description: write playbook output to a JUnit file. version_added: historical description: - This callback writes playbook output to a JUnit formatted XML file. - "Tasks show up in the report as follows: 'ok': pass 'failed' with 'EXPECTED FAILURE' in the task name: pass 'failed' with 'TOGGLE RESULT' in the task name: pass 'ok' with 'TOGGLE RESULT' in the task name: failure 'failed' due to an exception: error 'failed' for other reasons: failure 'skipped': skipped" options: output_dir: name: JUnit output dir default: ~/.ansible.log description: Directory to write XML files to. env: - name: JUNIT_OUTPUT_DIR task_class: name: JUnit Task class default: False description: Configure the output to be one class per yaml file env: - name: JUNIT_TASK_CLASS fail_on_change: name: JUnit fail on change default: False description: Consider any tasks reporting "changed" as a junit test failure env: - name: JUNIT_FAIL_ON_CHANGE fail_on_ignore: name: JUnit fail on ignore default: False description: Consider failed tasks as a junit test failure even if ignore_on_error is set env: - name: JUNIT_FAIL_ON_IGNORE include_setup_tasks_in_report: name: JUnit include setup tasks in report default: True description: Should the setup tasks be included in the final report env: - name: JUNIT_INCLUDE_SETUP_TASKS_IN_REPORT requirements: - whitelist in configuration - junit_xml (python lib) N( t to_bytest to_text( t CallbackBase( t TestSuitet TestCase( t OrderedDictt CallbackModulec B` s� e Z d Z d Z d Z d Z e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z RS( s This callback writes playbook output to a JUnit formatted XML file. Tasks show up in the report as follows: 'ok': pass 'failed' with 'EXPECTED FAILURE' in the task name: pass 'failed' with 'TOGGLE RESULT' in the task name: pass 'ok' with 'TOGGLE RESULT' in the task name: failure 'failed' due to an exception: error 'failed' for other reasons: failure 'skipped': skipped This plugin makes use of the following environment variables: JUNIT_OUTPUT_DIR (optional): Directory to write XML files to. Default: ~/.ansible.log JUNIT_TASK_CLASS (optional): Configure the output to be one class per yaml file Default: False JUNIT_FAIL_ON_CHANGE (optional): Consider any tasks reporting "changed" as a junit test failure Default: False JUNIT_FAIL_ON_IGNORE (optional): Consider failed tasks as a junit test failure even if ignore_on_error is set Default: False JUNIT_INCLUDE_SETUP_TASKS_IN_REPORT (optional): Should the setup tasks be included in the final report Default: True Requires: junit_xml g @t aggregatet junitc C` sI t t | � j � t j d t j j d � � | _ t j d d � j � | _ t j d d � j � | _ t j d d � j � | _ t j d d � j � | _ d | _ d | _ d | _ d | _ t | _ t s� t | _ | j j d � n t rt � | _ n t | _ | j j d � t j j | j � sEt j | j � n d S( Nt JUNIT_OUTPUT_DIRs ~/.ansible.logt JUNIT_TASK_CLASSt Falset JUNIT_FAIL_ON_CHANGEt JUNIT_FAIL_ON_IGNOREt# JUNIT_INCLUDE_SETUP_TASKS_IN_REPORTt TruesV The `junit_xml` python module is not installed. Disabling the `junit` callback plugin.sX The `ordereddict` python module is not installed. Disabling the `junit` callback plugin.( t superR t __init__t ost getenvt patht expandusert _output_dirt lowert _task_classt _fail_on_changet _fail_on_ignoret _include_setup_tasks_in_reportt Nonet _playbook_patht _playbook_namet _play_namet _task_dataR t disabledt HAS_JUNIT_XMLR t _displayt warningt HAS_ORDERED_DICTR t existst mkdir( t self( ( sB /usr/lib/python2.7/site-packages/ansible/plugins/callback/junit.pyR v s( ! c C` s� | j } | | j k r d S| j } | j � j � } | j � } | j } | j s� d j d � | j j � D� � } | r� | d | 7} q� n t | | | | | � | j | <d S( s2 record the start of a task for one or more hosts Ns , c s` s | ] } d | Vq d S( s %s=%sN( ( t .0t a( ( sB /usr/lib/python2.7/site-packages/ansible/plugins/callback/junit.pys <genexpr>� s t ( t _uuidR# R"