microcks / microcks-testcontainers-java

Java lib for Testcontainers that enables embedding Microcks into your JUnit tests with lightweight, throwaway instance thanks to containers.
https://microcks.io
Apache License 2.0
19 stars 4 forks source link

Allow import of remote artifacts #42

Closed lbroudoux closed 6 months ago

lbroudoux commented 6 months ago

Reason/Context

As of today, we can only load local artifacts coming from the project structure (and loaded as a classpath resource). Because Microcks promotes reusing shared artifacts, we should also be able to load remote HTTP(S) artifacts within our Testcontainers module.

Description

Provide a withMainRemoteArtifacts(String... artifactsUrl) and a withSecondaryRemoteArtifacts(String... artifactsUrl) methods to allow loading remote artifacts just after the container startup.

Implementation ideas

This method may reuse the /api/artifact/download API endpoint of the running Microcks container.