
    VhO
                        d Z ddlmZ ddlZddlmZmZ ddlmZ ddl	m
Z
mZmZ ddlmZ dd	lmZ dd
lmZmZ ddlmZmZmZmZmZmZ ddlmZ ddZy)zWindows integration testing.    )annotationsN   )ApplicationErrorANSIBLE_TEST_CONFIG_ROOT)handle_layout_messages)create_container_hooks	local_sshroot_ssh) walk_windows_integration_targets)WindowsIntegrationConfig)WindowsInventoryConfigWindowsRemoteConfig   )command_integration_filtercommand_integration_filteredget_inventory_absolute_pathget_inventory_relative_pathcheck_inventorydelegate_inventory)data_contextc           	        t        t               j                  j                         t	        |       }t
        j                  j                  t        t
        j                  j                  |            dz   }t        | j                  t              rA| j                  t              }t        | |      }| j                  s|j                  sD||_        n<t
        j                  j                  t               j                  j                   |      }| j"                  sJt        | j                  t$              s0t
        j                  j'                  |      st)        d|d|      t+        | |       t-        | |       t/        t1        d            }t3        | |      \  }}t5        | |j6                  j8                        g}|j;                         D 	cg c]  }	t=        |	       }
}	t?        | ||
      \  }}tA        | ||||||       yc c}	w )z2Entry point for the `windows-integration` command.z	.templatezInventory not found: z
Use --inventory to specify the inventory path.
Use --windows to provision resources and generate an inventory file.
See also inventory template: T)include_hidden)
pre_targetpost_targetN)!r   r   contentintegration_messagesr   ospathjoinr   basename
issubclasstarget_typer   only_targetr   delegaterootexplainr   isfiler   r   r   tupler   r   r	   controller_profilepython!get_controller_target_connectionsr
   r   r   )argsinventory_relative_pathtemplate_pathtargetinventory_pathall_targets
host_stateinternal_targetscontrol_connectionssshmanaged_connectionsr   r   s                c/home/dcms/DCMS/lib/python3.12/site-packages/ansible_test/_internal/commands/integration/windows.pycommand_windows_integrationr8   0   s   <>11FFG9$?GGLL!9277;K;KLc;dehssM$""$:;!!"894T6B==1FKln&<&<&A&ACZ[<<
4+;+;=P QZ\ZaZaZhZhiwZx 2@P
 	
 D.)t^,8MNK#=dK#P J $T:+H+H+O+OPQ4>4`4`4bcS8C=cc4T;NPcdJ z3C[R`mw  FQ  R ds   H
)r,   r   returnNone)__doc__
__future__r   r   utilr   r   util_commonr   
containersr   r	   r
   r/   r   configr   host_configsr   r    r   r   r   r   r   r   datar   r8        r7   <module>rF      sF    " " 	
 
 
!RrE   