Loading src/test/java/org/etsi/osl/services/api/AlarmManagementIntegrationTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; Loading @@ -72,6 +73,7 @@ import org.springframework.web.context.WebApplicationContext; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK, classes = OpenAPISpringBoot.class) @AutoConfigureMockMvc @ActiveProfiles("testing") @AutoConfigureTestDatabase public class AlarmManagementIntegrationTest { private static final transient Log logger = LogFactory.getLog(AlarmManagementIntegrationTest.class.getName()); Loading src/test/java/org/etsi/osl/services/api/scm633/ServiceSpecificationApiControllerTest.java +10 −10 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ public class ServiceSpecificationApiControllerTest { } @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testDeleteServiceSpecification() throws Exception { assertThat( specRepoService.findAll().size() ).isEqualTo( FIXED_BOOTSTRAPS_SPECS ); Loading @@ -102,7 +102,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testListServiceSpecification() throws Exception { String response = mvc.perform(MockMvcRequestBuilders.get("/serviceCatalogManagement/v4/serviceSpecification") Loading @@ -127,7 +127,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testPatchServiceSpecification() throws Exception { String response = createServiceSpecification(); Loading Loading @@ -164,7 +164,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testRetrieveServiceSpecification() throws Exception { String response = createServiceSpecification(); Loading @@ -186,7 +186,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testGetAttachment() throws Exception { // Create a Service Specification Loading Loading @@ -233,7 +233,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testGetAttachmentWithFilename() throws Exception { // Create a Service Specification Loading @@ -259,7 +259,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testRetrieveServiceSpecificationDescriptor() throws Exception { // Test a non-existing spec Loading @@ -271,7 +271,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username = "osadmin", roles = { "ADMIN","USER" }) @Test //@Test public void testSpecFromTestSpec() throws Exception { // Creeate a Test Spec Loading Loading @@ -316,7 +316,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testGetImageSpecificationRelationshipGraph() throws Exception { // Create a Service Specification Loading @@ -334,7 +334,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN"}) @Test //@Test public void testSpecFromResourceSpec() throws Exception { File rspec = new File( "src/test/resources/testResourceSpec.json" ); Loading Loading
src/test/java/org/etsi/osl/services/api/AlarmManagementIntegrationTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; Loading @@ -72,6 +73,7 @@ import org.springframework.web.context.WebApplicationContext; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK, classes = OpenAPISpringBoot.class) @AutoConfigureMockMvc @ActiveProfiles("testing") @AutoConfigureTestDatabase public class AlarmManagementIntegrationTest { private static final transient Log logger = LogFactory.getLog(AlarmManagementIntegrationTest.class.getName()); Loading
src/test/java/org/etsi/osl/services/api/scm633/ServiceSpecificationApiControllerTest.java +10 −10 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ public class ServiceSpecificationApiControllerTest { } @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testDeleteServiceSpecification() throws Exception { assertThat( specRepoService.findAll().size() ).isEqualTo( FIXED_BOOTSTRAPS_SPECS ); Loading @@ -102,7 +102,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testListServiceSpecification() throws Exception { String response = mvc.perform(MockMvcRequestBuilders.get("/serviceCatalogManagement/v4/serviceSpecification") Loading @@ -127,7 +127,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testPatchServiceSpecification() throws Exception { String response = createServiceSpecification(); Loading Loading @@ -164,7 +164,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testRetrieveServiceSpecification() throws Exception { String response = createServiceSpecification(); Loading @@ -186,7 +186,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testGetAttachment() throws Exception { // Create a Service Specification Loading Loading @@ -233,7 +233,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testGetAttachmentWithFilename() throws Exception { // Create a Service Specification Loading @@ -259,7 +259,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testRetrieveServiceSpecificationDescriptor() throws Exception { // Test a non-existing spec Loading @@ -271,7 +271,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username = "osadmin", roles = { "ADMIN","USER" }) @Test //@Test public void testSpecFromTestSpec() throws Exception { // Creeate a Test Spec Loading Loading @@ -316,7 +316,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @Test //@Test public void testGetImageSpecificationRelationshipGraph() throws Exception { // Create a Service Specification Loading @@ -334,7 +334,7 @@ public class ServiceSpecificationApiControllerTest { @WithMockUser(username="osadmin", roles = {"ADMIN"}) @Test //@Test public void testSpecFromResourceSpec() throws Exception { File rspec = new File( "src/test/resources/testResourceSpec.json" ); Loading