Skip to content

Include REST Docs request cookies in generated stubs#2490

Open
goutamadwant wants to merge 1 commit into
spring-cloud:mainfrom
goutamadwant:GH-2410-restdocs-request-cookies
Open

Include REST Docs request cookies in generated stubs#2490
goutamadwant wants to merge 1 commit into
spring-cloud:mainfrom
goutamadwant:GH-2410-restdocs-request-cookies

Conversation

@goutamadwant

Copy link
Copy Markdown

Summary

  • Add request cookie matching when generating WireMock stubs from REST Docs operations.
  • Include request cookies in the generated Spring Cloud Contract Groovy DSL.
  • Add regression coverage for both the snippet generation path and a MockMvc REST Docs flow.

Testing

  • ./mvnw -pl spring-cloud-contract-wiremock compiler:testCompile surefire:test -Dtest=WireMockSnippetTests,WiremockServerRestDocsMatcherApplicationTests
  • ./mvnw -pl spring-cloud-contract-wiremock surefire:test

Note: ./mvnw -pl spring-cloud-contract-wiremock test currently stops during checkstyle on existing JavadocVariable violations in untouched WireMock test classes.

Fixes gh-2410

Fixes spring-cloudgh-2410

Signed-off-by: goutamadwant <workwithgoutam@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REST Docs WireMock stubs don't include cookie matching from MockMvc requests

2 participants