in component-test/src/main/java/TestAccessAnother.java [109:121]
public static void someExtraTestEnvironmentStuff() {
testEnvironment.setKeyPair(integrationTestEnvironment.getSeshatKeyTimestamp(), integrationTestEnvironment.getSeshatPublicKey(), integrationTestEnvironment.getSeshatPrivateKey());
testEnvironment.setProperty("eureka.client.serviceUrl.defaultZone", "http://localhost:8761/eureka");
testEnvironment.setProperty(SPRING_CLOUD_DISCOVERY_ENABLED_PROPERTY, "true");
testEnvironment.setProperty(RIBBON_USES_EUREKA_PROPERTY, "true");
testEnvironment.setProperty("eureka.instance.hostname", "localhost");
testEnvironment.setProperty("eureka.client.fetchRegistry", "true");
testEnvironment.setProperty("eureka.registration.enabled", "true");
testEnvironment.setProperty("eureka.instance.leaseRenewalIntervalInSeconds", "1"); //Speed up registration for test purposes.
testEnvironment.setProperty("eureka.client.initialInstanceInfoReplicationIntervalSeconds", "0"); //Speed up initial registration for test purposes.
testEnvironment.setProperty("eureka.client.instanceInfoReplicationIntervalSeconds", "1");
testEnvironment.populate();
}