package com.emc.ecs.serviceBroker.config;

import java.net.URL;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.emc.ecs.managementClient.Connection;
import com.emc.ecs.serviceBroker.repository.EcsRepositoryCredentials;

@Configuration
@ComponentScan(basePackages = "com.emc.ecs.serviceBroker")
public class BrokerConfig {

	@Bean
	public Connection ecsConnection() {
		URL certificate = getClass().getClassLoader().getResource("localhost.pem");
		return new Connection("https://8.34.215.78:4443", "root", "ChangeMe", certificate);
	}
	
	@Bean
	public EcsRepositoryCredentials getRepositoryCredentials() {
		return new EcsRepositoryCredentials("ecs-cf-service-broker-repository", "ecs-cf-service-broker-repository",
				"ns1", "urn:storageos:ReplicationGroupInfo:d4fc7068-1051-49ee-841f-1102e44c841e:global");
	}

}
@@ -58,16 +58,88 @@
 t.URL;%0A%0A
+import org.cloudfoundry.community.servicebroker.model.BrokerApiVersion;%0A
 import o
@@ -686,19 +686,23 @@
 s://
-8.34.215.78
+104.197.239.202
 :444
@@ -743,32 +743,128 @@
 e);%0A%09%7D%0A%09%0A%09@Bean%0A
+%09public BrokerApiVersion brokerApiVersion() %7B%0A%09%09return new BrokerApiVersion(%222.7%22);%0A%09%7D%0A%09%0A%09@Bean%0A
 %09public EcsRepos
@@ -1070,43 +1070,43 @@
 nfo:
-d4fc7068-1051-49ee-841f-1102e44c841
+f81a7335-cadf-48fb-8eda-4856b250e9d
 e:gl

Set broker to version 2.7