by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:55

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • 13:25
    andreeagheorghescu commented #752
  • 13:25
    andreeagheorghescu commented #752
  • 12:56

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • 09:58

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • 07:34
    spring-issuemaster labeled #1424
  • 07:29
    sguillope opened #1424
  • 06:59

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • 03:54

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • 00:53

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • Jun 04 21:54

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • Jun 04 19:38
    JosephGaiser edited #1423
  • Jun 04 19:36
    spring-issuemaster labeled #1423
  • Jun 04 19:32
    JosephGaiser opened #1423
  • Jun 04 18:54

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • Jun 04 17:30
    JosephGaiser edited #1414
  • Jun 04 15:57

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • Jun 04 12:54

    spring-buildmaster on gh-pages

    Sync docs from master to gh-pag… (compare)

  • Jun 04 12:20
    CircleCI success: spring-cloud build (#11301) in https://github.com/spring-cloud/spring-cloud-contract
    • Migrated to docs.spring.io & updated sc-build
      (e05463f5f561a11fa7f04f2acf4c6787ae048f91 by Marcin Grzejszczak)
  • Jun 04 11:50

    marcingrzejszczak on 2.2.x

    Migrated to docs.spring.io & up… (compare)

Marcin Grzejszczak
@marcingrzejszczak
You have to ask more precise questions. I don't know what the problem is
Ayush Jain
@ayushjamsaria_twitter
I'm getting this error while trying to setup Spring Cloud Contract with the book store nodejs sample application by following this link. Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not PUT 'http://192.168.0.28:8081/artifactory/libs-release-local/com/example/bookstore/0.0.1.RELEASE/bookstore-0.0.1.RELEASE.pom'. Received status code 404 from server: Not Found
Marcin Grzejszczak
@marcingrzejszczak
You're saying that the sample doesn't work?
Ayush Jain
@ayushjamsaria_twitter
Yeah. I'm getting this error with the sample
Marcin Grzejszczak
@marcingrzejszczak
can you show exactly what you're doing?
Ayush Jain
@ayushjamsaria_twitter
I did setup the nodejs application from this repository 'https://github.com/spring-cloud-samples/spring-cloud-contract-nodejs' and after that I changed the APP_ IP in run_contracts_test.sh to my system IP as 'whats_my_ip.sh' is not working in windows. Also installed the docker and docker compose to run the contract tests. The problem is while publishing the stub to artifactory in my local, the tests are being executed but after that it's failing and giving the above error.
image.png
Artifactory container is also up and running.
Marcin Grzejszczak
@marcingrzejszczak
ok so that's an issue with publishing to artifactory I don't know how I can help you with that
Ayush Jain
@ayushjamsaria_twitter
I can try to debug if you can point me where to look for.
Marcin Grzejszczak
@marcingrzejszczak
I mean I don't think it's contract issue but your docker setup
Ayush Jain
@ayushjamsaria_twitter
I understand as there's not enough to set configurations for docker so I'm wondering what could be wrong
Sreenivasulu Bellamkonda
@sreeni1990
Hi All, I am new Spring cloud contract testing .. I need a some example project to understand ...Could you help on this.
Marcin Grzejszczak
@marcingrzejszczak
Have you read the documentation?
you have the getting started section
also you have the https://github.com/spring-cloud-samples/spring-cloud-contract-samples samples. Everything's there
Sreenivasulu Bellamkonda
@sreeni1990
Okay, I will go through it .... Thank you @marcingrzejszczak
Sreenivasulu Bellamkonda
@sreeni1990
@marcingrzejszczak , Do you have any example code in github for quick start ?
Looking for the Spring cloud contract with open Api /swagger contract
Marcin Grzejszczak
@marcingrzejszczak
I have given you links to samples including the one you asked for
There's also a community plugin to support contracts written in openapi please check it out
Jared Culp
@jaredculp
is there a way to extend the dsl for body matchers without having to use a separate jar described in https://cloud.spring.io/spring-cloud-static/spring-cloud-contract/2.2.3.RELEASE/reference/html/advanced.html#contract-dsl-extending-common-jar? in other words we would like to place the common functions in the same maven artifact as where the contracts live
Marcin Grzejszczak
@marcingrzejszczak
Maybe if you manage to keep them as comoiled class files and add them as a classpath dep that could work but I've never tried it
I have cloned this repo . So many modules are there
Which modules i need refer for Contract testing with swagger /open api
tjoner
@tjoner

Hi, When upgrading spring-cloud-dependencies to Hoxton.SR5 we received errors in our spring cloud contract client stub tests where we're using Spring Cloud Contract Stub Runner for running the WireMock instances to simulate the actual service being called. When running the test, we received class not found exception for java.lang.ClassNotFoundException: org.springframework.cloud.loadbalancer.config.LoadBalancerAutoConfiguration

It works fine with spring-cloud-dependencies Hoxton.SR4 but not with Hoxton.SR5. By adding additional dependency to spring-cloud-loadbalancer, the contract client stub tests pass.

Are there any new dependencies in spring-cloud-contract to spring-cloud-loadbalancer that needs to be added?

Marcin Grzejszczak
@marcingrzejszczak
interesting
can you file an issue?
most likely I've forgotten about adding some @ConditionalOnClass
Marcin Grzejszczak
@marcingrzejszczak
thank you!
Marcin Grzejszczak
@marcingrzejszczak
fixed
tjoner
@tjoner
Thanks!
Knut Schleßelmann
@kschlesselmann
Hi … currently we experience some random test failures in our application. I noticed that https://cloud.spring.io/spring-cloud-contract/reference/html/project-features.html#features-wiremock mentions the @AutoconfigureWiremock annotations is only supported on tomcat … is this true? Until now we were fine using netty/webflux as well …
Marcin Grzejszczak
@marcingrzejszczak
Hmmm nothing changed for that matter afair
Knut Schleßelmann
@kschlesselmann
@marcingrzejszczak The weird thing is I get missing verify assertions even though wiremock logs an incoming request right above … and if I run the test by itself it's green … in combination with other tests it's failing … but just on jenkins and my machine … all other devs are fine … it's completely weird
@marcingrzejszczak But do you even care about tomcat vs netty?
Marcin Grzejszczak
@marcingrzejszczak
We don't cause wiremock has an embedded jetty
Knut Schleßelmann
@kschlesselmann
@marcingrzejszczak Why is it documented so specific then?
If you have a Spring Boot application that uses Tomcat as an embedded server (which is the default with spring-boot-starter-web), you can add spring-cloud-starter-contract-stub-runner to your classpath and add @AutoConfigureWireMock to use Wiremock in your tests.
Knut Schleßelmann
@kschlesselmann
@marcingrzejszczak OK … now it's even better. If I run gradle test --test "some.subset.*" it's alternating with green/red … if I use clean test it's always red …
Marcin Grzejszczak
@marcingrzejszczak
There's another starter if you're using jetty in your app
Knut Schleßelmann
@kschlesselmann
netty (default with webflux)
Marcin Grzejszczak
@marcingrzejszczak
so that shouldn't be a problem
I mean I wonder what changed, cause I don't recall any changes in stub runner for that matter
can you create a sample that I could check out?
maybe your client has changed that it's closing the connection too fast and WireMock is not capable of returning the response fast enough
Knut Schleßelmann
@kschlesselmann
That's the problem … I've got not idea what's causing the problems and I cannot reproduce it :-(