Closed spencergibb closed 7 years ago
I don't have access
This test is failing as the service.occurence
value must be changed for machine which are faster than CircleCi -> https://github.com/cmoulliard/spring-cloud-kubernetes/blob/ba558139e71bd4f4275b9c09911b6020875d97d9/spring-cloud-kubernetes-ribbon/pom.xml#L145
Command
spring-cloud-kubernetes-fk/spring-cloud-kubernetes-ribbon $ mvn test -Dservice.occurence=1
...
2017-07-07 07:41:56.321 INFO 7952 --- [ Thread-6] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@643bef2a: startup date [Fri Jul 07 07:41:55 CEST 2017]; parent: org.springframework.web.context.support.GenericWebApplicationContext@322593ed
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.14:check (enforce-java-7) @ spring-cloud-kubernetes-ribbon ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.191 s
[INFO] Finished at: 2017-07-07T07:41:58+02:00
[INFO] Final Memory: 25M/425M
[INFO] ------------------------------------------------------------------------
Failed
org.springframework.cloud.kubernetes.ribbon.RibbonFallbackTest.testFallBackGreetingEndpoint
Failing for the past 49 builds (Since Failed#1579 )
Took 3 sec.
Error Message
expected:<[No instances available for testapp]> but was:<[404 Client Error]>
Stacktrace
org.junit.ComparisonFailure: expected:<[No instances available for testapp]> but was:<[404 Client Error]>
at org.springframework.cloud.kubernetes.ribbon.RibbonFallbackTest.testFallBackGreetingEndpoint(RibbonFallbackTest.java:114)
Standard Output
2017-07-07 16:14:51.941 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.springframework.cloud.kubernetes.ribbon.RibbonFallbackTest], using SpringBootContextLoader
2017-07-07 16:14:51.949 INFO --- [ main] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [org.springframework.cloud.kubernetes.ribbon.RibbonFallbackTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2017-07-07 16:14:52.002 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2017-07-07 16:14:52.015 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/TransactionDefinition]
2017-07-07 16:14:52.016 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Could not instantiate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
2017-07-07 16:14:52.017 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@5ae50ce6, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6f96c77, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@be64738, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3ba9ad43, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@49d904ec, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@48e4374, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@3d680b5a, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@4b5d6a01, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@4a22f9e2, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3c419631]
2017-07-07 16:14:53.823 INFO 16412 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4a31c2ee: startup date [Fri Jul 07 16:14:53 UTC 2017]; root of context hierarchy
2017-07-07 16:14:54.051 INFO 16412 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-07-07 16:14:54.092 INFO 16412 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$7f4af7a5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.4.RELEASE)
2017-07-07 16:14:54.408 INFO 16412 --- [ main] o.s.c.k.ribbon.RibbonFallbackTest : No active profile set, falling back to default profiles: default
2017-07-07 16:14:54.410 INFO 16412 --- [ main] o.s.w.c.s.GenericWebApplicationContext : Refreshing org.springframework.web.context.support.GenericWebApplicationContext@1e469dfd: startup date [Fri Jul 07 16:14:54 UTC 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4a31c2ee
2017-07-07 16:14:55.164 INFO 16412 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=b5e8be5e-ad2d-3620-89bd-8c10b3de1f86
2017-07-07 16:14:55.235 INFO 16412 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-07-07 16:14:55.322 INFO 16412 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$7f4af7a5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-07-07 16:14:56.235 INFO 16412 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@1e469dfd: startup date [Fri Jul 07 16:14:54 UTC 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4a31c2ee
2017-07-07 16:14:56.346 INFO 16412 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-07-07 16:14:56.347 INFO 16412 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-07-07 16:14:56.390 INFO 16412 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-07 16:14:56.391 INFO 16412 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-07 16:14:56.446 INFO 16412 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-07 16:14:57.243 WARN 16412 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2017-07-07 16:14:57.244 INFO 16412 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2017-07-07 16:14:57.254 WARN 16412 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2017-07-07 16:14:57.255 INFO 16412 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2017-07-07 16:14:57.426 INFO 16412 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0
2017-07-07 16:14:57.448 INFO 16412 --- [ main] o.s.c.k.ribbon.RibbonFallbackTest : Started RibbonFallbackTest in 4.302 seconds (JVM running for 6.07)
2017-07-07 16:14:57.497 INFO 16412 --- [ main] o.s.c.k.ribbon.RibbonFallbackTest : >>>>>>>>>> BEGIN PART 1 <<<<<<<<<<<<<
2017-07-07 16:14:57.808 INFO 16412 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7bbd0006: startup date [Fri Jul 07 16:14:57 UTC 2017]; parent: org.springframework.web.context.support.GenericWebApplicationContext@1e469dfd
2017-07-07 16:14:57.865 INFO 16412 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-07-07 16:14:58.063 INFO 16412 --- [ main] c.netflix.config.ChainedDynamicProperty : Flipping property: testapp.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2017-07-07 16:14:58.128 INFO 16412 --- [ main] c.netflix.loadbalancer.BaseLoadBalancer : Client: testapp instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=testapp,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2017-07-07 16:14:58.143 INFO 16412 --- [ main] c.n.l.DynamicServerListLoadBalancer : Using serverListUpdater PollingServerListUpdater
2017-07-07 16:14:58.220 INFO 16412 --- [127.0.0.1:49834] okhttp3.mockwebserver.MockWebServer : MockWebServer[40309] received request: GET /api/v1/namespaces/testns/endpoints/testapp HTTP/1.1 and responded: HTTP/1.1 200 OK
2017-07-07 16:14:58.274 INFO 16412 --- [ main] c.netflix.config.ChainedDynamicProperty : Flipping property: testapp.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2017-07-07 16:14:58.278 INFO 16412 --- [ main] c.n.l.DynamicServerListLoadBalancer : DynamicServerListLoadBalancer for client testapp initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=testapp,current list of Servers=[localhost:39140],Load balancer stats=Zone stats: {unknown=[Zone:unknown; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;]
},Server stats: [[Server:localhost:39140; Zone:UNKNOWN; Total Requests:0; Successive connection failure:0; Total blackout seconds:0; Last connection made:Thu Jan 01 00:00:00 UTC 1970; First connection made: Thu Jan 01 00:00:00 UTC 1970; Active Connections:0; total failure count in last (1000) msecs:0; average resp time:0.0; 90 percentile resp time:0.0; 95 percentile resp time:0.0; min resp time:0.0; max resp time:0.0; stddev resp time:0.0]
]}ServerList:org.springframework.cloud.kubernetes.ribbon.KubernetesServerList@113e6e06
2017-07-07 16:14:58.518 INFO 16412 --- [127.0.0.1:60407] okhttp3.mockwebserver.MockWebServer : MockWebServer[39140] received request: GET /greeting HTTP/1.1 and responded: HTTP/1.1 200 OK
2017-07-07 16:14:58.531 INFO 16412 --- [ main] o.s.c.k.ribbon.RibbonFallbackTest : >>>>>>>>>> END PART 1 <<<<<<<<<<<<<
2017-07-07 16:14:58.534 INFO 16412 --- [ main] o.s.c.k.ribbon.RibbonFallbackTest : >>>>>>>>>> BEGIN PART 2 <<<<<<<<<<<<<
2017-07-07 16:14:59.151 INFO 16412 --- [127.0.0.1:49834] okhttp3.mockwebserver.MockWebServer : MockWebServer[40309] received request: GET /api/v1/namespaces/testns/endpoints/testapp HTTP/1.1 and responded: HTTP/1.1 200 OK
2017-07-07 16:14:59.152 INFO 16412 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty : Flipping property: testapp.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2017-07-07 16:14:59.661 INFO 16412 --- [127.0.0.1:49834] okhttp3.mockwebserver.MockWebServer : MockWebServer[40309] received request: GET /api/v1/namespaces/testns/endpoints/testapp HTTP/1.1 and responded: HTTP/1.1 200 OK
2017-07-07 16:15:00.164 INFO 16412 --- [127.0.0.1:49834] okhttp3.mockwebserver.MockWebServer : MockWebServer[40309] received request: GET /api/v1/namespaces/testns/endpoints/testapp HTTP/1.1 and responded: HTTP/1.1 200 OK
2017-07-07 16:15:00.537 INFO 16412 --- [127.0.0.1:60407] okhttp3.mockwebserver.MockWebServer : MockWebServer[39140] received request: GET /greeting HTTP/1.1 and responded: HTTP/1.1 404 Client Error
Standard Error
Jul 07, 2017 4:14:52 PM okhttp3.mockwebserver.MockWebServer$2 execute
INFO: MockWebServer[40309] starting to accept connections
Jul 07, 2017 4:14:53 PM okhttp3.mockwebserver.MockWebServer$2 execute
INFO: MockWebServer[39140] starting to accept connections
RibbonFallbackTest.testFallBackGreetingEndpoint()
https://jenkins.spring.io/blue/organizations/jenkins/spring-cloud-kubernetes-master-ci/detail/spring-cloud-kubernetes-master-ci/1603/pipeline