
    b                     V    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 d Z
y	)
z=Library for working with Firebase Test Lab service endpoints.    )absolute_import)division)unicode_literals)
exceptions)log)
propertiesc                     t         j                  j                  j                  j	                         } t         j                  j                  j
                  j	                         }t        j                  dj                  |              t        j                  dj                  |             |du xs
 d|v xs d|v | du xs d| v k7  rt        j                  | |      y)aL  Ensure that test-service endpoints are compatible with each other.

  A staging/test ToolResults API endpoint will not work correctly with a
  production Testing API endpoint, and vice versa. This check is only relevant
  for internal development.

  Raises:
    IncompatibleApiEndpointsError if the endpoints are not compatible.
  zTest Service endpoint: [{0}]zTool Results endpoint: [{0}]Nzhttps://www.googleapiszhttps://toolresultszhttps://testing)r   VALUESapi_endpoint_overridestestingGettoolresultsr   infoformatr   IncompatibleApiEndpointsError)testing_urltoolresults_urls     5lib/googlecloudsdk/api_lib/firebase/test/endpoints.pyValidateTestServiceEndpointsr      s     !!88@@DDF+%%<<HHLLN/(()00=>(()00AB$ 0":o"M 0/d>/;>@ 
2
2_& &@    N)__doc__
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   googlecloudsdk.corer   r   r    r   r   <module>r      s"     D &  ' ; # *&r   