forked from micronaut-projects/micronaut-guides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Micronaut Framework 3.9.1 (micronaut-projects#1267)
- Loading branch information
Showing
17 changed files
with
39 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...cronaut-cloud-trace-base/groovy/src/main/groovy/example/micronaut/InventoryService.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
guides/micronaut-cloud-trace-base/java/src/main/java/example/micronaut/InventoryService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 12 additions & 22 deletions
34
...onaut-object-storage-gcp/java/src/test/java/example/micronaut/FakeGcsServerContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,22 @@ | ||
package example.micronaut; | ||
|
||
import io.micronaut.core.io.socket.SocketUtils; | ||
import org.testcontainers.containers.FixedHostPortGenericContainer; | ||
import org.testcontainers.containers.GenericContainer; | ||
import org.testcontainers.utility.DockerImageName; | ||
|
||
public class FakeGcsServerContainer extends FixedHostPortGenericContainer<FakeGcsServerContainer> { | ||
class FakeGcsServerContainer extends GenericContainer<FakeGcsServerContainer> { | ||
|
||
public static final String DEFAULT_IMAGE_NAME = "fsouza/fake-gcs-server:1.40.1"; | ||
public static final int DEFAULT_PORT = 4443; | ||
private static final String DEFAULT_IMAGE_NAME = "fsouza/fake-gcs-server:1.40.1"; | ||
private static final int DEFAULT_PORT = 4443; | ||
|
||
private int port; | ||
|
||
public FakeGcsServerContainer(String dockerImageName) { | ||
super(dockerImageName); | ||
} | ||
|
||
@Override | ||
protected void configure() { | ||
super.configure(); | ||
|
||
this.port = SocketUtils.findAvailableTcpPort(); | ||
addFixedExposedPort(port, DEFAULT_PORT); | ||
|
||
withCreateContainerCmdModifier(cmd -> cmd.withEntrypoint("/bin/fake-gcs-server", "-scheme", "http")); | ||
public FakeGcsServerContainer() { | ||
super(DEFAULT_IMAGE_NAME); | ||
this.withExposedPorts(DEFAULT_PORT) | ||
.withCreateContainerCmdModifier(cmd -> cmd.withEntrypoint("/bin/fake-gcs-server", "-scheme", "http")); | ||
} | ||
|
||
public int getPort() { | ||
return port; | ||
public String getUrl() { | ||
if (!isRunning()) { | ||
start(); | ||
} | ||
return String.format("http://%s:%s", getHost(), getMappedPort(DEFAULT_PORT)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.8.9 | ||
3.9.1 |