skip to Main Content

"message":"Head "https://registry-1.docker.io/v2/testcontainers/ryuk/manifests/0.3.0": unauthorized: incorrect username or password" when run test

I have added testcontainer in spring boot app import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @SpringBootTest @Testcontainers @AutoConfigureMockMvc class ProductServiceApplicationTests { @Container static MongoDBContainer mongoDBContainer = new MongoDBContainer("mongo:4.4.2"); @Autowired private MockMvc mockMvc; @Autowired private ObjectMapper objectMapper; @DynamicPropertySource static void setProperties(DynamicPropertyRegistry dynamicPropertyRegistry) { dynamicPropertyRegistry.add("spring.data.mongodb.uri",mongoDBContainer::getReplicaSetUrl); }…

VIEW QUESTION

Cannot run DB Integration tests with Spring Boot and Testcontainers – Docker

I try to run DB Integration tests with Spring Boot and Testcontainers but without success I added testcontainer to my pom.xml <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>postgresql</artifactId> <version>1.10.6</version> <scope>test</scope> </dependency> Here is the extract of application.properties under test/resources…

VIEW QUESTION
Back To Top
Search