Skip to content

Align WireMockContainer constructor with the Testcontainers certification requirements + Verify image and version compatibility in the constructor#58

Merged
oleg-nenashev merged 6 commits into
mainfrom
constructors
Jul 17, 2023
Merged

Align WireMockContainer constructor with the Testcontainers certification requirements + Verify image and version compatibility in the constructor#58
oleg-nenashev merged 6 commits into
mainfrom
constructors

Conversation

@oleg-nenashev
Copy link
Copy Markdown
Member

@oleg-nenashev oleg-nenashev commented Jul 6, 2023

Aligns the module constructors with the Official image requirements. It is a breaking change that I am not particularly fond of, but following AtomicJar's certification requirements:

  • Avoid Default constructor - BREAKING
  • WireMock(String) constructor now takes the full image string, not just version - BREAKING
  • Verify image and version compatibility in the constructor.

References

Submitter checklist

  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)
  • Test coverage that demonstrates that the change works as expected

@oleg-nenashev oleg-nenashev added the breaking This change breaks backward compatibility label Jul 6, 2023
@Mahoney
Copy link
Copy Markdown

Mahoney commented Jul 7, 2023

Are AtomicJar's certification requirements online somewhere?

@oleg-nenashev
Copy link
Copy Markdown
Member Author

Are AtomicJar's certification requirements online somewhere?

Nope. There's a slidedeck, but I doubt I have the latest version. @eddumelendez is my source of the info 😄

Comment thread src/main/java/org/wiremock/integrations/testcontainers/WireMockContainer.java Outdated
class WireMockContainerBannerTest {

WireMockContainer wireMockContainer = new WireMockContainer("2.35.0");
WireMockContainer wireMockContainer = new WireMockContainer(WireMockContainer.WIREMOCK_2_LATEST);
Copy link
Copy Markdown
Contributor

@bitxon bitxon Jul 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe wold be better to use constructor without params in all tests

Copy link
Copy Markdown
Member Author

@oleg-nenashev oleg-nenashev Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will later create a TestConfig class, similar to wiremock/wiremock-docker#67. It will include a static method for tests

Co-authored-by: Nikita Karpuk <bitxon.dev@gmail.com>
@oleg-nenashev oleg-nenashev merged commit 188fefe into main Jul 17, 2023
@oleg-nenashev oleg-nenashev deleted the constructors branch July 17, 2023 14:39
@oleg-nenashev oleg-nenashev changed the title Align WireMockContainer constructor with the Testcontainers certification requirements Align WireMockContainer constructor with the Testcontainers certification requirements + Verify image and version compatibility in the constructor Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking This change breaks backward compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants