Skip to content

Commit b971004

Browse files
committed
Add Azurite container to Azure module
- Remove host configuration Signed-off-by: Esta Nagy <[email protected]>
1 parent e197419 commit b971004

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

modules/azure/src/main/java/org/testcontainers/azure/AzuriteContainer.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public class AzuriteContainer extends GenericContainer<AzuriteContainer> {
4646
"mcr.microsoft.com/azure-storage/azurite"
4747
);
4848

49-
private String host = DEFAULT_HOST;
50-
5149
private MountableFile cert = null;
5250

5351
private String certExtension = null;
@@ -93,17 +91,6 @@ public AzuriteContainer withSsl(final MountableFile pemCert, final MountableFile
9391
return this;
9492
}
9593

96-
/**
97-
* Sets the hostname we want to use to connect to our emulator. (default: {@link #DEFAULT_HOST})
98-
*
99-
* @param host The host name
100-
* @return this
101-
*/
102-
public AzuriteContainer withHost(final String host) {
103-
this.host = host;
104-
return this;
105-
}
106-
10794
@Override
10895
protected void configure() {
10996
withCommand(getCommandLine());

modules/azure/src/test/java/org/testcontainers/azure/AzuriteContainerTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public class AzuriteContainerTest {
2323

2424
private static final String PASSWORD = "changeit";
2525

26-
private static final String LOOPBACK_IP = "127.0.0.1";
27-
2826
private static Properties originalSystemProperties;
2927

3028
@BeforeClass
@@ -88,7 +86,6 @@ public void testWithBlobServiceClientWithSslUsingPfx() {
8886
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
8987
)
9088
.withSsl(MountableFile.forClasspathResource("/keystore.pfx"), PASSWORD)
91-
.withHost(LOOPBACK_IP)
9289
) {
9390
emulator.start();
9491
testBlob(emulator);
@@ -102,7 +99,6 @@ public void testWithQueueServiceClientWithSslUsingPfx() {
10299
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
103100
)
104101
.withSsl(MountableFile.forClasspathResource("/keystore.pfx"), PASSWORD)
105-
.withHost(LOOPBACK_IP)
106102
) {
107103
emulator.start();
108104
testQueue(emulator);
@@ -116,7 +112,6 @@ public void testWithTableServiceClientWithSslUsingPfx() {
116112
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
117113
)
118114
.withSsl(MountableFile.forClasspathResource("/keystore.pfx"), PASSWORD)
119-
.withHost(LOOPBACK_IP)
120115
) {
121116
emulator.start();
122117
testTable(emulator);
@@ -133,7 +128,6 @@ public void testWithBlobServiceClientWithSslUsingPem() {
133128
MountableFile.forClasspathResource("/certificate.pem"),
134129
MountableFile.forClasspathResource("/key.pem")
135130
)
136-
.withHost(LOOPBACK_IP)
137131
) {
138132
emulator.start();
139133
testBlob(emulator);
@@ -150,7 +144,6 @@ public void testWithQueueServiceClientWithSslUsingPem() {
150144
MountableFile.forClasspathResource("/certificate.pem"),
151145
MountableFile.forClasspathResource("/key.pem")
152146
)
153-
.withHost(LOOPBACK_IP)
154147
) {
155148
emulator.start();
156149
testQueue(emulator);
@@ -167,7 +160,6 @@ public void testWithTableServiceClientWithSslUsingPem() {
167160
MountableFile.forClasspathResource("/certificate.pem"),
168161
MountableFile.forClasspathResource("/key.pem")
169162
)
170-
.withHost(LOOPBACK_IP)
171163
) {
172164
emulator.start();
173165
testTable(emulator);

0 commit comments

Comments
 (0)