From 857a2896e3d79f692fc4b537e57b01d9d4a3d6e7 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 1 Feb 2022 10:31:17 +0100 Subject: [PATCH] Removed eureka --- .../pom.xml | 7 - pom.xml | 8 - spring-cloud-contract-stub-runner/pom.xml | 5 - .../eureka/ConditionalOnEurekaEnabled.java | 40 ---- .../cloud/eureka/EurekaStubsRegistrar.java | 163 ----------------- ...nerSpringCloudEurekaAutoConfiguration.java | 112 ------------ .../StubRunnerBootEurekaExample.java | 64 ------- ...nerSpringCloudAutoConfigurationSpec.groovy | 96 ---------- ...gCloudReactiveAutoConfigurationSpec.groovy | 97 ---------- .../pom.xml | 92 ---------- ...ingCloudEurekaAutoConfigurationSpec.groovy | 173 ------------------ .../src/test/resources/application.yml | 5 - .../src/test/resources/logback.xml | 25 --- .../bootService-0.0.1-SNAPSHOT-stubs.jar | Bin 2357 -> 0 bytes .../bootService-0.0.1-SNAPSHOT.pom | 27 --- .../stubs/bootService/maven-metadata.xml | 28 --- ...udDetectionServer-0.0.1-SNAPSHOT-stubs.jar | Bin 1897 -> 0 bytes .../fraudDetectionServer-0.0.1-SNAPSHOT.pom | 27 --- .../fraudDetectionServer/maven-metadata.xml | 28 --- .../loanIssuance-0.0.1-SNAPSHOT-stubs.jar | Bin 639 -> 0 bytes .../loanIssuance-0.0.1-SNAPSHOT.pom | 27 --- .../stubs/loanIssuance/maven-metadata.xml | 28 --- 22 files changed, 1052 deletions(-) delete mode 100644 spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/ConditionalOnEurekaEnabled.java delete mode 100644 spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/EurekaStubsRegistrar.java delete mode 100644 spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfiguration.java delete mode 100644 spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/serverexamples/StubRunnerBootEurekaExample.java delete mode 100644 spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudAutoConfigurationSpec.groovy delete mode 100644 spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudReactiveAutoConfigurationSpec.groovy delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/pom.xml delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfigurationSpec.groovy delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/application.yml delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/logback.xml delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT-stubs.jar delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT.pom delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/maven-metadata.xml delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT.pom delete mode 100644 tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml diff --git a/docker/spring-cloud-contract-stub-runner-docker/pom.xml b/docker/spring-cloud-contract-stub-runner-docker/pom.xml index 28701f722b..5fbeefd647 100644 --- a/docker/spring-cloud-contract-stub-runner-docker/pom.xml +++ b/docker/spring-cloud-contract-stub-runner-docker/pom.xml @@ -40,13 +40,6 @@ pom runtime - - org.springframework.cloud - spring-cloud-netflix-dependencies - ${spring-cloud-netflix.version} - pom - runtime - org.springframework.cloud spring-cloud-zookeeper-dependencies diff --git a/pom.xml b/pom.xml index 854e08d94a..dd1edfe529 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,6 @@ 4.0.0-SNAPSHOT 4.0.0-SNAPSHOT 4.0.0-SNAPSHOT - 4.0.0-SNAPSHOT 4.0.0-SNAPSHOT 4.0.0-SNAPSHOT 3.0.6.RELEASE @@ -284,13 +283,6 @@ pom import - - org.springframework.cloud - spring-cloud-netflix-dependencies - ${spring-cloud-netflix.version} - pom - import - org.springframework.cloud spring-cloud-stream-dependencies diff --git a/spring-cloud-contract-stub-runner/pom.xml b/spring-cloud-contract-stub-runner/pom.xml index c903a9795f..faa0ecb1e2 100644 --- a/spring-cloud-contract-stub-runner/pom.xml +++ b/spring-cloud-contract-stub-runner/pom.xml @@ -211,11 +211,6 @@ curator-test test - - org.springframework.cloud - spring-cloud-netflix-eureka-server - true - org.springframework.cloud spring-cloud-starter-consul-discovery diff --git a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/ConditionalOnEurekaEnabled.java b/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/ConditionalOnEurekaEnabled.java deleted file mode 100644 index 2ad62d3eb5..0000000000 --- a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/ConditionalOnEurekaEnabled.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2012-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.spring.cloud.eureka; - -import java.lang.annotation.Documented; -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; - -/** - * Conditional that checks if Eureka is enabled. - * - * @author Marcin Grzejszczak - * - * @since 1.0.0 - */ -@Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.TYPE, ElementType.METHOD }) -@Documented -@ConditionalOnProperty(value = "eureka.client.enabled", havingValue = "true", matchIfMissing = true) -@interface ConditionalOnEurekaEnabled { - -} diff --git a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/EurekaStubsRegistrar.java b/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/EurekaStubsRegistrar.java deleted file mode 100644 index ad13b2e6c0..0000000000 --- a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/EurekaStubsRegistrar.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright 2013-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.spring.cloud.eureka; - -import java.lang.invoke.MethodHandles; -import java.net.InetAddress; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; - -import com.netflix.appinfo.ApplicationInfoManager; -import com.netflix.appinfo.InstanceInfo; -import com.netflix.discovery.AbstractDiscoveryClientOptionalArgs; -import com.netflix.discovery.EurekaClient; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import org.springframework.beans.BeansException; -import org.springframework.cloud.client.serviceregistry.ServiceRegistry; -import org.springframework.cloud.commons.util.InetUtils; -import org.springframework.cloud.contract.stubrunner.StubConfiguration; -import org.springframework.cloud.contract.stubrunner.StubRunning; -import org.springframework.cloud.contract.stubrunner.spring.cloud.StubMapperProperties; -import org.springframework.cloud.contract.stubrunner.spring.cloud.StubsRegistrar; -import org.springframework.cloud.netflix.eureka.CloudEurekaClient; -import org.springframework.cloud.netflix.eureka.EurekaClientConfigBean; -import org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean; -import org.springframework.cloud.netflix.eureka.InstanceInfoFactory; -import org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration; -import org.springframework.context.ApplicationContext; -import org.springframework.util.StringUtils; - -/** - * Registers all stubs in Eureka Service Discovery. - * - * @author Marcin Grzejszczak - * @since 1.0.0 - */ -public class EurekaStubsRegistrar implements StubsRegistrar { - - private static final Log log = LogFactory.getLog(MethodHandles.lookup().lookupClass()); - - private final StubRunning stubRunning; - - private final StubMapperProperties stubMapperProperties; - - private final InetUtils inetUtils; - - private final EurekaInstanceConfigBean eurekaInstanceConfigBean; - - private final EurekaClientConfigBean eurekaClientConfigBean; - - private final List registrations = new LinkedList<>(); - - private final ServiceRegistry serviceRegistry; - - private final ApplicationContext context; - - public EurekaStubsRegistrar(StubRunning stubRunning, ServiceRegistry serviceRegistry, - StubMapperProperties stubMapperProperties, InetUtils inetUtils, - EurekaInstanceConfigBean eurekaInstanceConfigBean, EurekaClientConfigBean eurekaClientConfigBean, - ApplicationContext context) { - this.stubRunning = stubRunning; - this.stubMapperProperties = stubMapperProperties; - this.serviceRegistry = serviceRegistry; - this.inetUtils = inetUtils; - this.eurekaInstanceConfigBean = eurekaInstanceConfigBean; - this.eurekaClientConfigBean = eurekaClientConfigBean; - this.context = context; - } - - @Override - public void registerStubs() { - Map activeStubs = this.stubRunning.runStubs().validNamesAndPorts(); - for (Map.Entry entry : activeStubs.entrySet()) { - EurekaInstanceConfigBean instance = registration(entry); - log.info("Will register stub in Eureka " + "[" + instance.getAppname() + ", " + instance.getHostname() - + ", " + instance.getNonSecurePort() + ", " + instance.getInstanceId() + "]"); - InstanceInfo instanceInfo = new InstanceInfoFactory().create(instance); - ApplicationInfoManager applicationInfoManager = new ApplicationInfoManager(instance, instanceInfo); - AbstractDiscoveryClientOptionalArgs args = args(); - EurekaClient client = new CloudEurekaClient(applicationInfoManager, this.eurekaClientConfigBean, args, - this.context); - EurekaRegistration registration = EurekaRegistration.builder(instance) - .with(this.eurekaClientConfigBean, this.context).with(client).build(); - this.registrations.add(registration); - try { - this.serviceRegistry.register(registration); - log.info("Successfully registered stub " + "[" + entry.getKey().toColonSeparatedDependencyNotation() - + "] in Service Discovery"); - } - catch (Exception e) { - log.warn("Exception occurred while trying to register a stub [" - + entry.getKey().toColonSeparatedDependencyNotation() + "] in Service Discovery", e); - } - } - } - - private AbstractDiscoveryClientOptionalArgs args() { - try { - return this.context.getBean(AbstractDiscoveryClientOptionalArgs.class); - } - catch (BeansException e) { - return null; - } - } - - private EurekaInstanceConfigBean registration(Map.Entry entry) { - EurekaInstanceConfigBean config = new EurekaInstanceConfigBean(this.inetUtils); - String appName = name(entry.getKey()); - config.setInstanceEnabledOnit(true); - InetAddress address = this.inetUtils.findFirstNonLoopbackAddress(); - config.setIpAddress(address.getHostAddress()); - config.setHostname(StringUtils.hasText(hostName(entry)) ? hostName(entry) : address.getHostName()); - config.setAppname(appName); - config.setVirtualHostName(appName); - config.setSecureVirtualHostName(appName); - int port = port(entry); - config.setNonSecurePort(port); - config.setInstanceId(address.getHostAddress() + ":" + entry.getKey().getArtifactId() + ":" + port); - config.setLeaseRenewalIntervalInSeconds(1); - return config; - } - - protected String hostName(Map.Entry entry) { - return this.eurekaInstanceConfigBean.getHostname(); - } - - protected int port(Map.Entry entry) { - return entry.getValue(); - } - - private String name(StubConfiguration stubConfiguration) { - String resolvedName = this.stubMapperProperties - .fromIvyNotationToId(stubConfiguration.toColonSeparatedDependencyNotation()); - if (StringUtils.hasText(resolvedName)) { - return resolvedName; - } - return stubConfiguration.getArtifactId(); - } - - @Override - public void close() throws Exception { - for (EurekaRegistration registration : this.registrations) { - this.serviceRegistry.deregister(registration); - } - } - -} diff --git a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfiguration.java b/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfiguration.java deleted file mode 100644 index 2b40a56d20..0000000000 --- a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfiguration.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2013-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.spring.cloud.eureka; - -import java.util.Map; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.cloud.client.serviceregistry.ServiceRegistry; -import org.springframework.cloud.commons.util.InetUtils; -import org.springframework.cloud.contract.stubrunner.StubConfiguration; -import org.springframework.cloud.contract.stubrunner.StubRunning; -import org.springframework.cloud.contract.stubrunner.spring.StubRunnerConfiguration; -import org.springframework.cloud.contract.stubrunner.spring.cloud.ConditionalOnStubbedDiscoveryDisabled; -import org.springframework.cloud.contract.stubrunner.spring.cloud.StubMapperProperties; -import org.springframework.cloud.contract.stubrunner.spring.cloud.StubsRegistrar; -import org.springframework.cloud.netflix.eureka.CloudEurekaClient; -import org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration; -import org.springframework.cloud.netflix.eureka.EurekaClientConfigBean; -import org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean; -import org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration; -import org.springframework.context.ApplicationContext; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Profile; -import org.springframework.core.env.Environment; - -/** - * Autoconfiguration for registering stubs in a Eureka Service discovery. - * - * @author Marcin Grzejszczak - * @since 1.0.0 - */ -@Configuration(proxyBeanMethods = false) -@AutoConfigureAfter({ StubRunnerConfiguration.class, EurekaClientAutoConfiguration.class }) -@ConditionalOnClass(CloudEurekaClient.class) -@ConditionalOnStubbedDiscoveryDisabled -@ConditionalOnEurekaEnabled -@ConditionalOnProperty(value = "stubrunner.cloud.eureka.enabled", matchIfMissing = true) -public class StubRunnerSpringCloudEurekaAutoConfiguration { - - @Profile("!cloud") - @Configuration(proxyBeanMethods = false) - protected static class NonCloudConfig { - - @Bean(initMethod = "registerStubs") - public StubsRegistrar stubsRegistrar(StubRunning stubRunning, - ServiceRegistry serviceRegistry, ApplicationContext context, - StubMapperProperties stubMapperProperties, InetUtils inetUtils, - EurekaInstanceConfigBean eurekaInstanceConfigBean, EurekaClientConfigBean eurekaClientConfigBean) { - return new EurekaStubsRegistrar(stubRunning, serviceRegistry, stubMapperProperties, inetUtils, - eurekaInstanceConfigBean, eurekaClientConfigBean, context); - } - - } - - @Profile("cloud") - @Configuration(proxyBeanMethods = false) - protected static class CloudConfig { - - private static final int DEFAULT_PORT = 80; - - private static final Log log = LogFactory.getLog(CloudConfig.class); - - @Autowired - Environment environment; - - @Bean(initMethod = "registerStubs") - public StubsRegistrar stubsRegistrar(StubRunning stubRunning, - ServiceRegistry serviceRegistry, ApplicationContext context, - StubMapperProperties stubMapperProperties, InetUtils inetUtils, - EurekaInstanceConfigBean eurekaInstanceConfigBean, EurekaClientConfigBean eurekaClientConfigBean) { - return new EurekaStubsRegistrar(stubRunning, serviceRegistry, stubMapperProperties, inetUtils, - eurekaInstanceConfigBean, eurekaClientConfigBean, context) { - @Override - protected String hostName(Map.Entry entry) { - String hostname = CloudConfig.this.environment.getProperty("application.hostname") + "-" - + entry.getValue() + "." + CloudConfig.this.environment.getProperty("application.domain"); - log.info("Registering stub [" + entry.getKey().getArtifactId() + "] with hostname [" + hostname - + "]"); - return hostname; - } - - @Override - protected int port(Map.Entry entry) { - return DEFAULT_PORT; - } - }; - } - - } - -} diff --git a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/serverexamples/StubRunnerBootEurekaExample.java b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/serverexamples/StubRunnerBootEurekaExample.java deleted file mode 100644 index 5158dda531..0000000000 --- a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/serverexamples/StubRunnerBootEurekaExample.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2013-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.serverexamples; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.cloud.contract.stubrunner.server.EnableStubRunnerServer; -import org.springframework.cloud.contract.stubrunner.spring.AutoConfigureStubRunner; -import org.springframework.cloud.netflix.eureka.EnableEurekaClient; - -/** - * @author Marcin Grzejszczak - */ -// tag::stubrunnereureka[] -@SpringBootApplication -@EnableStubRunnerServer -@EnableEurekaClient -@AutoConfigureStubRunner -public class StubRunnerBootEurekaExample { - - public static void main(String[] args) { - SpringApplication.run(StubRunnerBootEurekaExample.class, args); - } - -} -// end::stubrunnereureka[] - -/* - * - * // tag::stubrunnereureka_args[] - * -Dstubrunner.repositoryRoot=https://repo.spring.io/snapshot (1) - * -Dstubrunner.cloud.stubbed.discovery.enabled=false (2) - * -Dstubrunner.ids=org.springframework.cloud.contract.verifier.stubs:loanIssuance,org. - * springframework.cloud.contract.verifier.stubs:fraudDetectionServer,org.springframework. - * cloud.contract.verifier.stubs:bootService (3) - * -Dstubrunner.idsToServiceIds.fraudDetectionServer= - * someNameThatShouldMapFraudDetectionServer (4) - * - * (1) - we tell Stub Runner where all the stubs reside (2) - we don't want the default - * behaviour where the discovery service is stubbed. That's why the stub registration will - * be picked (3) - we provide a list of stubs to download (4) - we provide a list of - * artifactId to serviceId mapping // end::stubrunnereureka_args[] - * - * - * -Dstubrunner.cloud.eureka.enabled=true - * -Dstubrunner.repositoryRoot=classpath:m2repo/repository/ - * -Dstubrunner.camel.enabled=false -Dspring.cloud.zookeeper.enabled=false - * -Dspring.cloud.zookeeper.discovery.enabled=false -Ddebug=true - * - */ diff --git a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudAutoConfigurationSpec.groovy b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudAutoConfigurationSpec.groovy deleted file mode 100644 index aafcf1e6ff..0000000000 --- a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudAutoConfigurationSpec.groovy +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2013-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.spring.cloud - -import spock.lang.Specification - -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.boot.autoconfigure.EnableAutoConfiguration -import org.springframework.boot.test.context.SpringBootTest -import org.springframework.cloud.client.loadbalancer.LoadBalanced -import org.springframework.cloud.consul.ConsulAutoConfiguration -import org.springframework.cloud.contract.stubrunner.StubFinder -import org.springframework.cloud.contract.stubrunner.spring.AutoConfigureStubRunner -import org.springframework.cloud.contract.stubrunner.spring.StubRunnerProperties -import org.springframework.cloud.contract.stubrunner.spring.cloud.loadbalancer.StubRunnerLoadBalancerClientFactory -import org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory -import org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration -import org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration -import org.springframework.context.annotation.Bean -import org.springframework.context.annotation.Configuration -import org.springframework.test.context.ActiveProfiles -import org.springframework.web.client.RestTemplate - -/** - * @author Marcin Grzejszczak - */ -@SpringBootTest(classes = Config) -@ActiveProfiles("cloudtest") -// tag::autoconfigure[] -@AutoConfigureStubRunner( - ids = ["org.springframework.cloud.contract.verifier.stubs:loanIssuance", - "org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer", - "org.springframework.cloud.contract.verifier.stubs:bootService"], - stubsMode = StubRunnerProperties.StubsMode.REMOTE, - repositoryRoot = "classpath:m2repo/repository/") -// end::autoconfigure[] -class StubRunnerSpringCloudAutoConfigurationSpec extends Specification { - - @Autowired - StubFinder stubFinder - @Autowired - @LoadBalanced - RestTemplate restTemplate - @Autowired - LoadBalancerClientFactory loadBalancerClientFactory; - - void setupSpec() { - System.clearProperty("stubrunner.repository.root") - System.clearProperty("stubrunner.classifier") - } - - void cleanupSpec() { - setupSpec() - } - - def setup() { - assert loadBalancerClientFactory instanceof StubRunnerLoadBalancerClientFactory - } - - // tag::test[] - def 'should make service discovery work'() { - expect: 'WireMocks are running' - "${stubFinder.findStubUrl('loanIssuance').toString()}/name".toURL().text == 'loanIssuance' - "${stubFinder.findStubUrl('fraudDetectionServer').toString()}/name".toURL().text == 'fraudDetectionServer' - and: 'Stubs can be reached via load service discovery' - restTemplate.getForObject('http://loanIssuance/name', String) == 'loanIssuance' - restTemplate.getForObject('http://someNameThatShouldMapFraudDetectionServer/name', String) == 'fraudDetectionServer' - } - // end::test[] - - @Configuration - @EnableAutoConfiguration(exclude = [EurekaClientAutoConfiguration, - ConsulAutoConfiguration, ZookeeperAutoConfiguration]) - static class Config { - - @Bean - @LoadBalanced - RestTemplate restTemplate() { - return new RestTemplate() - } - } -} diff --git a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudReactiveAutoConfigurationSpec.groovy b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudReactiveAutoConfigurationSpec.groovy deleted file mode 100644 index 1cd17eacab..0000000000 --- a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/StubRunnerSpringCloudReactiveAutoConfigurationSpec.groovy +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2013-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.spring.cloud - -import org.junit.AfterClass -import org.junit.BeforeClass -import spock.lang.Specification - -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.boot.autoconfigure.EnableAutoConfiguration -import org.springframework.boot.test.context.SpringBootTest -import org.springframework.cloud.client.ServiceInstance -import org.springframework.cloud.client.discovery.ReactiveDiscoveryClient -import org.springframework.cloud.client.loadbalancer.LoadBalanced -import org.springframework.cloud.consul.ConsulAutoConfiguration -import org.springframework.cloud.contract.stubrunner.StubFinder -import org.springframework.cloud.contract.stubrunner.spring.AutoConfigureStubRunner -import org.springframework.cloud.contract.stubrunner.spring.StubRunnerProperties -import org.springframework.cloud.contract.stubrunner.spring.cloud.loadbalancer.StubRunnerLoadBalancerClientFactory -import org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory -import org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration -import org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration -import org.springframework.context.annotation.Bean -import org.springframework.context.annotation.Configuration -import org.springframework.test.context.ActiveProfiles -import org.springframework.web.client.RestTemplate - -/** - * @author Marcin Grzejszczak - */ -@SpringBootTest(classes = Config) -@ActiveProfiles("cloudtest") -@AutoConfigureStubRunner( - ids = ["org.springframework.cloud.contract.verifier.stubs:loanIssuance", - "org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer", - "org.springframework.cloud.contract.verifier.stubs:bootService"], - stubsMode = StubRunnerProperties.StubsMode.REMOTE, - repositoryRoot = "classpath:m2repo/repository/") -class StubRunnerSpringCloudReactiveAutoConfigurationSpec extends Specification { - @Autowired - StubFinder stubFinder - @Autowired - ReactiveDiscoveryClient reactiveDiscoveryClient; - @Autowired - LoadBalancerClientFactory loadBalancerClientFactory; - RestTemplate restTemplate = new RestTemplate() - - @BeforeClass - @AfterClass - static void setupProps() { - System.clearProperty("stubrunner.repository.root") - System.clearProperty("stubrunner.classifier") - } - - def setup() { - assert loadBalancerClientFactory instanceof StubRunnerLoadBalancerClientFactory - } - - // tag::test[] - def 'should make service discovery work'() { - expect: 'WireMocks are running' - "${stubFinder.findStubUrl('loanIssuance').toString()}/name".toURL().text == 'loanIssuance' - "${stubFinder.findStubUrl('fraudDetectionServer').toString()}/name".toURL().text == 'fraudDetectionServer' - and: 'Stubs can be reached via load service discovery' - ServiceInstance loanIssuance = reactiveDiscoveryClient.getInstances('loanIssuance').blockFirst() - restTemplate.getForObject(loanIssuance.uri.toString() + '/name', String) == 'loanIssuance' - ServiceInstance fraudDetection = reactiveDiscoveryClient.getInstances('someNameThatShouldMapFraudDetectionServer').blockFirst() - restTemplate.getForObject(fraudDetection.uri.toString() + '/name', String) == 'fraudDetectionServer' - } - // end::test[] - - @Configuration - @EnableAutoConfiguration(exclude = [EurekaClientAutoConfiguration, - ConsulAutoConfiguration, ZookeeperAutoConfiguration]) - static class Config { - - @Bean - @LoadBalanced - RestTemplate restTemplate() { - return new RestTemplate() - } - } -} diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/pom.xml b/tests/spring-cloud-contract-stub-runner-boot-eureka/pom.xml deleted file mode 100644 index 5e4dc31ec6..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - 4.0.0 - - org.springframework.cloud - spring-cloud-contract-tests - 4.0.0-SNAPSHOT - .. - - spring-cloud-contract-stub-runner-boot-eureka - jar - Spring Cloud Contract Stub Runner Boot Eureka - Spring Cloud Contract Stub Runner Boot Eureka - - 1.19.1 - - - - org.springframework.cloud - spring-cloud-contract-stub-runner - - - com.sun.jersey.contribs - jersey-apache-client4 - ${jersey-apache-client4.version} - true - - - org.springframework.cloud - spring-cloud-starter-contract-stub-runner-jetty - test - - - org.springframework.cloud - spring-cloud-starter-netflix-eureka-client - true - - - org.springframework.cloud - spring-cloud-starter-netflix-eureka-server - true - - - junit - junit - test - - - org.codehaus.groovy - groovy - - - org.spockframework - spock-core - test - - - org.spockframework - spock-spring - test - - - org.springframework.boot - spring-boot-starter-test - test - - - org.springframework.boot - spring-boot-starter-web - test - - - org.springframework.boot - spring-boot-starter-webflux - test - - - - - - org.codehaus.gmavenplus - gmavenplus-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - - - - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfigurationSpec.groovy b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfigurationSpec.groovy deleted file mode 100644 index 207c8c44b0..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/eureka/StubRunnerSpringCloudEurekaAutoConfigurationSpec.groovy +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2013-2020 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.contract.stubrunner.spring.cloud.eureka - -import javax.servlet.Filter -import javax.servlet.FilterChain -import javax.servlet.FilterConfig -import javax.servlet.ServletException -import javax.servlet.ServletRequest -import javax.servlet.ServletResponse - -import spock.lang.AutoCleanup -import spock.lang.Shared -import spock.lang.Specification -import spock.util.concurrent.PollingConditions - -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.boot.SpringApplication -import org.springframework.boot.autoconfigure.EnableAutoConfiguration -import org.springframework.boot.test.context.SpringBootContextLoader -import org.springframework.boot.test.context.SpringBootTest -import org.springframework.cloud.client.loadbalancer.LoadBalanced -import org.springframework.cloud.contract.stubrunner.StubFinder -import org.springframework.cloud.contract.stubrunner.spring.AutoConfigureStubRunner -import org.springframework.cloud.contract.stubrunner.spring.StubRunnerProperties -import org.springframework.cloud.netflix.eureka.EnableEurekaClient -import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer -import org.springframework.context.ConfigurableApplicationContext -import org.springframework.context.annotation.Bean -import org.springframework.context.annotation.Configuration -import org.springframework.http.HttpMethod -import org.springframework.http.client.ClientHttpResponse -import org.springframework.test.context.ContextConfiguration -import org.springframework.web.client.DefaultResponseErrorHandler -import org.springframework.web.client.RequestCallback -import org.springframework.web.client.ResponseExtractor -import org.springframework.web.client.RestClientException -import org.springframework.web.client.RestTemplate - -/** - * @author Marcin Grzejszczak - */ -//TODO: Speed up this test somehow (move it out of Spring Cloud Contract core to samples) -@SpringBootTest(classes = Config, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, - properties = ["stubrunner.cloud.eureka.enabled=true", - "stubrunner.cloud.stubbed.discovery.enabled=false", - "stubrunner.cloud.ribbon.enabled=false", - "eureka.client.enabled=true", - "eureka.instance.leaseRenewalIntervalInSeconds=1", - "ribbon.ServerListRefreshInterval=100"]) -@AutoConfigureStubRunner(ids = -["org.springframework.cloud.contract.verifier.stubs:loanIssuance", - "org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer", - "org.springframework.cloud.contract.verifier.stubs:bootService"] , -repositoryRoot = "classpath:m2repo/repository/" , -stubsMode = StubRunnerProperties.StubsMode.REMOTE ) -class StubRunnerSpringCloudEurekaAutoConfigurationSpec extends Specification { - - @Autowired - StubFinder stubFinder - @Autowired - @LoadBalanced - RestTemplate restTemplate - @Shared - @AutoCleanup - ConfigurableApplicationContext eurekaServer - - void setupSpec() { - System.clearProperty("stubrunner.stubs.repository.root") - System.clearProperty("stubrunner.stubs.classifier") - eurekaServer = SpringApplication.run(EurekaServer, - "--stubrunner.cloud.eureka.enabled=true", - "--stubrunner.cloud.stubbed.discovery.enabled=false", - "--eureka.client.enabled=true", - "--server.port=8761", - "--spring.profiles.active=eureka") - } - - void cleanupSpec() { - System.clearProperty("stubrunner.stubs.repository.root") - System.clearProperty("stubrunner.stubs.classifier") - } - - PollingConditions conditions = new PollingConditions(timeout: 240, delay: 1) - - def 'should make service discovery work'() { - expect: 'WireMocks are running' - "${stubFinder.findStubUrl('loanIssuance').toString()}/name".toURL().text == 'loanIssuance' - "${stubFinder.findStubUrl('fraudDetectionServer').toString()}/name".toURL().text == 'fraudDetectionServer' - and: 'Stubs can be reached via load service discovery' - conditions.eventually { - assert restTemplate.getForObject('http://loanIssuance/name', String) == 'loanIssuance' - } - restTemplate.getForObject('http://someNameThatShouldMapFraudDetectionServer/name', String) == 'fraudDetectionServer' - } - - @Configuration - @EnableAutoConfiguration - @EnableEurekaClient - static class Config { - - @Bean - @LoadBalanced - RestTemplate restTemplate() { - def template = new RestTemplate() { - - @Override - protected T doExecute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor responseExtractor) throws RestClientException { - try { - return super.doExecute(url, method, requestCallback, responseExtractor) - } - catch (Exception e) { - throw new AssertionError(e) - } - } - } - template.errorHandler = new DefaultResponseErrorHandler() { - @Override - void handleError(ClientHttpResponse response) throws IOException { - try { - super.handleError(response) - } - catch (Exception e) { - throw new AssertionError(e) - } - } - } - return template - } - } - - @Configuration - @EnableAutoConfiguration - @EnableEurekaServer - static class EurekaServer { - - @Bean - Filter httpTraceFilter() { - return new Filter() { - @Override - void init(FilterConfig filterConfig) throws ServletException { - - } - - @Override - void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { - filterChain.doFilter(servletRequest, servletResponse) - } - - @Override - void destroy() { - - } - } - } - - - } -} diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/application.yml b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/application.yml deleted file mode 100644 index 2b91381a2c..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/application.yml +++ /dev/null @@ -1,5 +0,0 @@ -stubrunner: - idsToServiceIds: - fraudDetectionServer: someNameThatShouldMapFraudDetectionServer -server: - port: 0 diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/logback.xml b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/logback.xml deleted file mode 100644 index 96d75b755b..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/logback.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT-stubs.jar b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT-stubs.jar deleted file mode 100644 index c57c836db411777c483e2e05e4f5759921eb3c52..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2357 zcmWIWW@h1HVBp|j&|{wF!2kqIAOZ+Df!NnI#8KDN&rP41Apk|;rh2A#(m(~0KrDi+ z(AUw=)6F$FM9W7$;qWfsl_EwJs?>Q2Aj^i9!u4p-QN!6{Rd(V1{th+lJfJj zgHlUMi}F%a4E55B^7G3oLqj+jm=8ZG4&MvJr4`%^j4a<785meVCY$yh@>9NA|eAD=Q{xc6`6Mc4J@eSr2QMl>d3wcMbPUpDr-_4)2|a&k0u_ckej+y3cLy z^%UFHx7d41>tdG0ZPl>vd=b(*m&MI~ldkrnZFiiMq^x`FiXQGXWRv{*aIWK%?UAmv z@ebRXLY0=eTzGLftnr+t@$pvY*YBqs?04}ES>nv`K>2dS?w0)Eos(ZSYfKGh2&`Ik z=|o=MpLQO;>#r+|Z;Go&cys*9@%#Ac3o9rRApzqG44BW0PP7~Vdd36jD`Eo12svOb z0t4j~X27)e+HxN<5NLb;CA?%e*R6vWeO(1zV(+-9Y5_`{V zQ;b)!;eMn%s)bfEpk=(=#Dap%y!2v}jCW|}TMxT^{nzq=X=@9xNHM|@dc_&}r8z0S ziACAYIhm<>C62{zMTw;-A$g~)EgXc=vS97RK>tGqBCYdpuFsH~%-d=h5K^HmF`x5L zcU$|d*zFrHp4&EiQtJP^+itsfZsGTRxA*MM=QU?JeLYz^ik7h~^s?d;pQv9val;GW z3CuMG6MvaJc70La|3zZO{x_?bJsCs&{N)+nvwB<&V-GOo7d%$6_3n$?X515Jp7ZDy zSL|(EcK6BDcK7w#RlP3!mvtDIg()Z=F0Kijs-k@$d)K@M4m;cLsuJhQu3D_PTUXzp z(jnCHyifhQ`Q_WYe@8C3Z7R2=Nm4zh@BwRZg`M&8ZOwUw_wN}_5NOG1-m=s%J?Qn> z!)FcIWBGih!XZo~rXD*JQs;{9D!Zs(T*S`jYdzJ)g}v**7c1MO4VQ>A{hM zFJ5VGi}G%Md2-*O;u5}twK4kJ_}^((x~Ce}+zSn6UfS8u`leB8cDBN?S=X{W6pmVU zP1ZQ(_c!-P4`Y_%4tv2J#aAkR?){~&v`_I-{H^>~cm8{yugJf4o!54G**;)$U}O?u z#$8naa|jR!FuZjH(eR1`T^oAE0a6SCOBywSBwQO(HG*yeNHwgE0@W4}Ai(g~u?)yW zsu1vL1SMez0BKwZWFl#V*CZelq0xV;g2shisbwGj7|^3qGJ-pn?yJU9hx+tuO%xBrxs# xb(CU3u?t?bAcqZR(Sqz+KU5RoaY?A40lFMZArs)u$_8>BClG!EraDb94*<0u8@>Pl diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT.pom b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT.pom deleted file mode 100644 index dd16575a19..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/0.0.1-SNAPSHOT/bootService-0.0.1-SNAPSHOT.pom +++ /dev/null @@ -1,27 +0,0 @@ - - - - - 4.0.0 - org.springframework.cloud.contract.verifier.stubs - bootService - 0.0.1-SNAPSHOT - pom - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/maven-metadata.xml b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/maven-metadata.xml deleted file mode 100644 index 8461d4b2a6..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/bootService/maven-metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - org.springframework.cloud.contract.verifier.stubs - bootService - 0.0.1-SNAPSHOT - - - 0.0.1-SNAPSHOT - - 20160409062112 - - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT-stubs.jar deleted file mode 100644 index fdb70e383f00ec1a31fd06d81aa618347b8aa5b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1897 zcmWIWW@h1HVBp|jSmxB}!2kqIAOZ+Df!NnI#8KDN&rP41Apk|;rh2A#(m(~0KrDi+ z(AUw=)6F$FM9Q}aq3i`_uh=w%h>=Y@uFGBCR?

Ai(h6<{MwahD zlUYEPO`YKDf7pPh?fqZTiLE9AOJ5&*uI6jNTlgTP_uZB^0#VLZo0gcoT$1^!Uj3xi zi^3-YC+prG|F)Z-qmgTW_7%1hGv4Ip7?-NXu>9@sx>|Y6@ORS(h1?4TQ>#rQmmGhy z`&2onF`M?vx!ZC)*ELFVUsxaI8GW$!`OQxs|7Z$zoqXwb_0oisEj@R3M>M|AJ`~I_ zQzKv&iz%1;3*NTt=G)7^^Do}5`^e1o3HeZ_Sr<~2P( zH|KW#zDb8>96DXIt74fzkatY-vuQJwH#hIS^(%df(w-krM5KNk-@82KnLgJnc~DA1 zM2gvpoP`p=ppybdiXAzT;+J1SY`mQHJ8U4(^1hZUyEQ~W(f4%yQm%mf0)?i6tSW<( ziv-!GI;H&mEnmgsMH^J#SL~lVH|>DLl^@B0(h0%WF3i^2CiaeX@%mY}ZL|%3 zweJikKn{gkJOx;e1dsn^|PRW04*WXbl^_R{e!^wjnA)jN6SJhz{&mbWg`>|>$aKwmL3i7?|X+JN2z0s)4% zjvyLd(4lKXFX%vuL10OvCXj?{Ln`*rO#rDzE>l5#h{a_<8eW9q(*`Q*AOPgv`9LOI z8}^b9WSAT?B2rOHJ_)c{z&yv$(0GrqVff2IR!BLBRtBOw05z8*JD?aCHUxZw=>W7m lPn;W2Q#P_2m|2K)16n%AWiKlmD1_O8unOqAn?TbU7yzYKYMcN7 diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom deleted file mode 100644 index 33e8194127..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/0.0.1-SNAPSHOT/fraudDetectionServer-0.0.1-SNAPSHOT.pom +++ /dev/null @@ -1,27 +0,0 @@ - - - - - 4.0.0 - org.springframework.cloud.contract.verifier.stubs - fraudDetectionServer - 0.0.1-SNAPSHOT - pom - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml deleted file mode 100644 index 75dc4041ba..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/fraudDetectionServer/maven-metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - org.springframework.cloud.contract.verifier.stubs - fraudDetectionServer - 0.0.1-SNAPSHOT - - - 0.0.1-SNAPSHOT - - 20160409062112 - - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/0.0.1-SNAPSHOT/loanIssuance-0.0.1-SNAPSHOT-stubs.jar deleted file mode 100644 index e322590636a2642f1814bfec0720ea78f93fc4ec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 639 zcmWIWW@h1HVBp|jSnAa2!2kqIAOZ+Df!NnI#8KDN&rP41Apk|;rh2A#(m(~0KrDi+ z(AUw=)6F$FM9tz+^=Y@uFGB8Ii z

Ai(h6<{Mwai43=AwF(^fwV3JB2h($(?R)e8*T5VV5rQ=`&SS4)L?lj`D<@>Wga zb1^XAs-kSqs`Kuh)FKv;A - - - - 4.0.0 - org.springframework.cloud.contract.verifier.stubs - loanIssuance - 0.0.1-SNAPSHOT - pom - diff --git a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml b/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml deleted file mode 100644 index 4533bc03e8..0000000000 --- a/tests/spring-cloud-contract-stub-runner-boot-eureka/src/test/resources/m2repo/repository/org/springframework/cloud/contract/verifier/stubs/loanIssuance/maven-metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - org.springframework.cloud.contract.verifier.stubs - loanIssuance - 0.0.1-SNAPSHOT - - - 0.0.1-SNAPSHOT - - 20160409062111 - -