Fix tranasaction behavior in delete tenant (#2136)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -33,11 +33,11 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
||||
@Feature("Component Tests - Repository")
|
||||
@Story("System Management")
|
||||
@ExtendWith(DisposableSqlTestDatabaseExtension.class)
|
||||
public class SystemManagementTest extends AbstractJpaIntegrationTest {
|
||||
class SystemManagementTest extends AbstractJpaIntegrationTest {
|
||||
|
||||
@Test
|
||||
@Description("Ensures that findTenants returns all tenants and not only restricted to the tenant which currently is logged in")
|
||||
public void findTenantsReturnsAllTenantsNotOnlyWhichLoggedIn() throws Exception {
|
||||
void findTenantsReturnsAllTenantsNotOnlyWhichLoggedIn() throws Exception {
|
||||
assertThat(systemManagement.findTenants(PAGE).getContent()).hasSize(1);
|
||||
|
||||
createTestTenantsForSystemStatistics(2, 0, 0, 0);
|
||||
@@ -47,7 +47,7 @@ public class SystemManagementTest extends AbstractJpaIntegrationTest {
|
||||
|
||||
@Test
|
||||
@Description("Ensures that getSystemUsageStatisticsWithTenants returns the usage of all tenants and not only the first 1000 (max page size).")
|
||||
public void systemUsageReportCollectsStatisticsOfManyTenants() throws Exception {
|
||||
void systemUsageReportCollectsStatisticsOfManyTenants() throws Exception {
|
||||
// Prepare tenants
|
||||
createTestTenantsForSystemStatistics(1050, 0, 0, 0);
|
||||
|
||||
@@ -57,7 +57,7 @@ public class SystemManagementTest extends AbstractJpaIntegrationTest {
|
||||
|
||||
@Test
|
||||
@Description("Checks that the system report calculates correctly the artifact size of all tenants in the system. It ignores deleted software modules with their artifacts.")
|
||||
public void systemUsageReportCollectsArtifactsOfAllTenants() throws Exception {
|
||||
void systemUsageReportCollectsArtifactsOfAllTenants() throws Exception {
|
||||
// Prepare tenants
|
||||
createTestTenantsForSystemStatistics(2, 1234, 0, 0);
|
||||
|
||||
@@ -81,7 +81,7 @@ public class SystemManagementTest extends AbstractJpaIntegrationTest {
|
||||
|
||||
@Test
|
||||
@Description("Checks that the system report calculates correctly the targets size of all tenants in the system")
|
||||
public void systemUsageReportCollectsTargetsOfAllTenants() throws Exception {
|
||||
void systemUsageReportCollectsTargetsOfAllTenants() throws Exception {
|
||||
// Prepare tenants
|
||||
createTestTenantsForSystemStatistics(2, 0, 100, 0);
|
||||
|
||||
@@ -101,7 +101,7 @@ public class SystemManagementTest extends AbstractJpaIntegrationTest {
|
||||
|
||||
@Test
|
||||
@Description("Checks that the system report calculates correctly the actions size of all tenants in the system")
|
||||
public void systemUsageReportCollectsActionsOfAllTenants() throws Exception {
|
||||
void systemUsageReportCollectsActionsOfAllTenants() throws Exception {
|
||||
// Prepare tenants
|
||||
createTestTenantsForSystemStatistics(2, 0, 20, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user