
    "ljP                     T    d dl mZm Z  d dlmZ d dlmZ d dlmZ  G d d      Zd	dZ	y)
    )UTCdatetime)CollectorContext)SystemdCollector)CollectorConfigc                       e Zd Zd Zy)
FakeRunnerc                     |dd ddgk(  sJ y)Nr      	systemctlshow)r   zULoadState=loaded
ActiveState=active
SubState=running
Result=success
ExecMainStatus=0
  )selfargstimeout_secondss      tests/unit/test_collectors.pyrunzFakeRunner.run	   s    Aay[&1111r    N)__name__
__module____qualname__r   r   r   r   r	   r	      s    sr   r	   Nc                    t        dddddf      }t        t                     j                  t	        t        j                  t              d||             }|j                  sJ |j                  d   j                  j                  dk(  sJ y )	Nsystemdzsystemd.worker.mainzworker.service)job_keyservice_name)definitionshostr   healthy)r   r   r	   collectr   r   nowr   successobservationshealth_statusvalue)tmp_pathconfigresults      r   *test_systemd_collector_uses_read_only_showr)      s    Y	La  tD  AE  @G  HFjl+334DX\\RUEVX^`fhp4qrF>>>q!//55BBBr   )returnN)
r   r   worker_watcher.collectors.baser   !worker_watcher.collectors.systemdr   worker_watcher.configr   r	   r)   r   r   r   <module>r.      s#    " ; > 1s sCr   