Skip to content

[Bug?]: org.testcontainers.localstack.LocalStackContainer is missing the Service enum #11134

@rpalcolea

Description

@rpalcolea

Module

LocalStack

Testcontainers version

2.0.1

Using the latest Testcontainers version?

Yes

Host OS

OSX

Host Arch

ARM

Docker version

28.3.2

What 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions