-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Module
LocalStack
Testcontainers version
2.0.1
Using the latest Testcontainers version?
Yes
Host OS
OSX
Host Arch
ARM
Docker version
28.3.2What happened?
I was looking at upgrading to Testcontainers Localstack 2.x
One of the things I noticed from release notes is:
Container classes relocated to org.testcontainers. package. For example, new MySQLContainer class is under org.testcontainers.mysql
This means going from https://github.com/testcontainers/testcontainers-java/blob/main/modules/localstack/src/main/java/org/testcontainers/containers/localstack/LocalStackContainer.java to https://github.com/testcontainers/testcontainers-java/blob/main/modules/localstack/src/main/java/org/testcontainers/localstack/LocalStackContainer.java which is great!
However, I noticed that we had some code that make use of the Service enum (LocalStackContainer.Service.SNS) and this wasn't copied over to the new class. I couldn't find either a deprecation or a mention of this in the release notes.
Wondering if this is expected?
Relevant log output
error: cannot find symbol
import static org.testcontainers.localstack.LocalStackContainer.Service.SNS;
^
symbol: class Service
location: class LocalStackContainer