Beispiel #1
0
 def _get_validation_endpoints():
     # returns the list of validation endpoint supported
     val_ep = '{}/validatedesign'
     return [
         {
             'name': 'Drydock',
             'url': val_ep.format(get_endpoint(Endpoints.DRYDOCK))
         },
         {
             'name': 'Armada',
             'url': val_ep.format(get_endpoint(Endpoints.ARMADA))
         },
     ]
Beispiel #2
0
def _get_validation_endpoints():
    """Returns the list of validation endpoint supported"""
    val_ep = '{}/validatedesign'
    return [{
        'name': 'Drydock',
        'url': val_ep.format(get_endpoint(Endpoints.DRYDOCK))
    }, {
        'name': 'Armada',
        'url': val_ep.format(get_endpoint(Endpoints.ARMADA))
    }, {
        'name': 'Promenade',
        'url': val_ep.format(get_endpoint(Endpoints.PROMENADE))
    }]
Beispiel #3
0
 def get_path(path):
     """
     Looks up and returns the Deckhand path as a full url pattern
     string if passed a value from DeckhandPaths
     """
     if not DeckhandClient._deckhand_svc_url:
         DeckhandClient._deckhand_svc_url = get_endpoint(Endpoints.DECKHAND)
     return DeckhandClient._deckhand_svc_url + path.value
Beispiel #4
0
def drydock_client():
    """Retreive a Drydock client"""
    # Setup the drydock session
    endpoint = svc_endpoints.get_endpoint(Endpoints.DRYDOCK)
    dd_url = urlparse(endpoint)
    session = dd_session.DrydockSession(dd_url.hostname,
                                        port=dd_url.port,
                                        auth_gen=_auth_gen)
    return dd_client.DrydockClient(session)
def drydock_client():
    """Retreive a Drydock client"""
    # Setup the drydock session
    endpoint = svc_endpoints.get_endpoint(Endpoints.DRYDOCK)
    dd_url = urlparse(endpoint)
    session = dd_session.DrydockSession(
        dd_url.hostname,
        port=dd_url.port,
        auth_gen=_auth_gen,
        timeout=(CONF.requests_config.drydock_client_connect_timeout,
                 CONF.requests_config.drydock_client_read_timeout))
    return dd_client.DrydockClient(session)