StoragesIntegrationTests

6

tests

0

failures

0

ignored

0.228s

duration

100%

successful

Tests

Test Duration Result
newTokenWithCorrectCredentialsShouldReturnOK() 0.006s passed
newTokenWithIncorrectCredentialsShouldReturnKO() 0.005s passed
retrieveAllStoragesShouldReturnOK() 0.128s passed
retrieveStorageByProductIdAndLocatorIdShouldReturnOK() 0.053s passed
retrieveStorageByProductIdAndLocatorIdWithMismatchCompanyShouldReturnKO() 0.008s passed
retrieveStorageByProductIdShouldReturnOK() 0.028s passed

Standard output

- Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.libertya.api.StoragesIntegrationTests], using SpringBootContextLoader
- Could not detect default resource locations for test class [org.libertya.api.StoragesIntegrationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- Could not detect default configuration classes for test class [org.libertya.api.StoragesIntegrationTests]: StoragesIntegrationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
- Found @SpringBootConfiguration org.libertya.api.LYRestAPI for test class org.libertya.api.StoragesIntegrationTests
- Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
- Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@538a90a5, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@74d53d63, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@18f27a81, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@624494d4, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@654c2f81, org.springframework.test.context.support.DirtiesContextTestExecutionListener@38af386e, org.springframework.test.context.event.EventPublishingTestExecutionListener@33827b88, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@7526bb18, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7112b21a, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@30bf881e, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@1041ebba, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@507f7cd1, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@349996a6]
2026-07-03 16:59:47.394 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, password=AdminLibertya, clientid=1010016, orgid=1010053, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:47.396 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NywiZXhwIjoyNjQ3MDExNTg3fQ.S325TAVCc_R5zCabnD-4l8YLOmf8dgwA5eGWrv
2026-07-03 16:59:47.400 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, password=AdminLibertya, clientid=1010016, orgid=1010053, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:47.402 INFO - SecurityController.keygen: <200 OK OK,Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJKV1RCdWlsZGVyIiwic3ViIjoiQWRtaW5MaWJlcnR5YSIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJ1c2VyTmFtZSI6IkFkbWluTGliZXJ0eWEiLCJjbGllbnRJRCI6MTAxMDAxNiwib3JnSUQiOjEwMTAwNTMsImlhdCI6MTc4MzA5Nzk4NywiZXhwIjoyNjQ3MDExNTg3fQ.S325TAVCc_R5zCabnD-4l8YLOmf8dgwA5eGWrv
2026-07-03 16:59:47.406 INFO - SecurityController.keygen Arg1: {}, Arg2: {accept=text/plain, application/json, application/*+json, */*, username=AdminLibertya, content-length=0, host=localhost:46480, connection=Keep-Alive, user-agent=Apache-HttpClient/4.5.2 (Java/1.8.0_121), accept-encoding=gzip,deflate},  
2026-07-03 16:59:47.407 INFO - SecurityController.keygen: <403 FORBIDDEN Forbidden,[]>
2026-07-03 16:59:47.413 INFO - StorageController.retrieveStorage Arg1: 1015400, Arg2: 1010278,  
2026-07-03 16:59:47.458 INFO - StorageController.retrieveStorage: <200 OK OK,class Storage {,     adClientId: 1010016,     adOrgId: 1010053,     created: 2026-04-13 23:33:57.036982,     createdby: 0,     datelastinventory: 2026-07-03 16:59:35.468373,     isactive: true,     mAttributesetinstanceId: 0,     mLocatorId: 1010278,     mProductId: 1015400,     mWarehous
2026-07-03 16:59:47.466 INFO - StorageController.getAllStorages Arg1: , Arg2: , Arg3: , Arg4: , Arg5: ,  
2026-07-03 16:59:47.510 INFO - StorageController.getAllStorages: <200 OK OK,[Optional[class Storage {,     adClientId: 1010016,     adOrgId: 1010053,     created: 2026-04-13 23:33:54.426214,     createdby: 0,     datelastinventory: null,     isactive: true,     mAttributesetinstanceId: 0,     mLocatorId: 1010278,     mProductId: 1004168,     mWarehouseId: 1010048
2026-07-03 16:59:47.593 INFO - StorageController.retrieveStorage Arg1: 1003856, Arg2: 1000261,  
2026-07-03 16:59:47.596 INFO - StorageController.retrieveStorage: <401 UNAUTHORIZED Unauthorized,Token de acceso limitado a compañía 1010016,[]>
2026-07-03 16:59:47.601 INFO - StorageController.retrieveStoragesOfProduct Arg1: 1015400,  
2026-07-03 16:59:47.623 INFO - StorageController.retrieveStoragesOfProduct: <200 OK OK,[Optional[class Storage {,     adClientId: 1010016,     adOrgId: 1010053,     created: 2026-04-13 23:33:57.036982,     createdby: 0,     datelastinventory: 2026-07-03 16:59:35.468373,     isactive: true,     mAttributesetinstanceId: 0,     mLocatorId: 1010278,     mProductId: 1015400,