@Test public void testShouldGetEndPointsForPuppetMasterAndARegionNameUsingCache() throws OpenStackException { OpenStackRegionImpl openStackRegion = new OpenStackRegionImpl(); String regionName = "RegionOne"; RegionCache regionCache = new RegionCache(); regionCache.putUrl("RegionOne", "puppetmaster", "https: String resultURL = openStackRegion.getPuppetMasterEndPoint(regionName); assertNotNull(resultURL); assertEquals("https: }
@Override public String getPuppetMasterEndPoint(String regionName) throws OpenStackException { String url; try { log.info("Get url for puppet for default region " + regionName); url = getEndPointByNameAndRegionName("puppetmaster", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the Puppet Master endpoint"; log.info(msn); throw new OpenStackException(msn); } return url; }
OpenStackRegionImpl implements OpenStackRegion { @Override public String getPuppetMasterEndPoint(String regionName) throws OpenStackException { String url; try { log.info("Get url for puppet for default region " + regionName); url = getEndPointByNameAndRegionName("puppetmaster", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the Puppet Master endpoint"; log.info(msn); throw new OpenStackException(msn); } return url; } }
OpenStackRegionImpl implements OpenStackRegion { @Override public String getPuppetMasterEndPoint(String regionName) throws OpenStackException { String url; try { log.info("Get url for puppet for default region " + regionName); url = getEndPointByNameAndRegionName("puppetmaster", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the Puppet Master endpoint"; log.info(msn); throw new OpenStackException(msn); } return url; } OpenStackRegionImpl(); }
OpenStackRegionImpl implements OpenStackRegion { @Override public String getPuppetMasterEndPoint(String regionName) throws OpenStackException { String url; try { log.info("Get url for puppet for default region " + regionName); url = getEndPointByNameAndRegionName("puppetmaster", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the Puppet Master endpoint"; log.info(msn); throw new OpenStackException(msn); } return url; } OpenStackRegionImpl(); @Override String getEndPointByNameAndRegionName(String type, String regionName); OpenStackAccess getTokenAdmin(); @Override String getNovaEndPoint(String regionName); @Override String getPuppetMasterEndPoint(String regionName); @Override String getQuantumEndPoint(String regionName); String getSdcEndPoint(String regionName); String getDefaultRegion(); String getSupportEndPoint(); SystemPropertiesProvider getSystemPropertiesProvider(); void setSystemPropertiesProvider(SystemPropertiesProvider systemPropertiesProvider); Client getClient(); void setClient(Client client); String getFederatedQuantumEndPoint(); String getChefServerEndPoint(String regionName); HttpClientConnectionManager getHttpConnectionManager(); void setHttpConnectionManager(HttpClientConnectionManager httpConnectionManager); RegionCache getRegionCache(); }
OpenStackRegionImpl implements OpenStackRegion { @Override public String getPuppetMasterEndPoint(String regionName) throws OpenStackException { String url; try { log.info("Get url for puppet for default region " + regionName); url = getEndPointByNameAndRegionName("puppetmaster", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the Puppet Master endpoint"; log.info(msn); throw new OpenStackException(msn); } return url; } OpenStackRegionImpl(); @Override String getEndPointByNameAndRegionName(String type, String regionName); OpenStackAccess getTokenAdmin(); @Override String getNovaEndPoint(String regionName); @Override String getPuppetMasterEndPoint(String regionName); @Override String getQuantumEndPoint(String regionName); String getSdcEndPoint(String regionName); String getDefaultRegion(); String getSupportEndPoint(); SystemPropertiesProvider getSystemPropertiesProvider(); void setSystemPropertiesProvider(SystemPropertiesProvider systemPropertiesProvider); Client getClient(); void setClient(Client client); String getFederatedQuantumEndPoint(); String getChefServerEndPoint(String regionName); HttpClientConnectionManager getHttpConnectionManager(); void setHttpConnectionManager(HttpClientConnectionManager httpConnectionManager); RegionCache getRegionCache();  }