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
Back To Top
Search