Browse Source

fixed tests

pull/8391/head
YevhenBondarenko 4 years ago
parent
commit
6054a14424
  1. 8
      application/src/test/java/org/thingsboard/server/controller/BaseHomePageApiTest.java

8
application/src/test/java/org/thingsboard/server/controller/BaseHomePageApiTest.java

@ -59,7 +59,6 @@ import org.thingsboard.server.common.data.tenant.profile.DefaultTenantProfileCon
import org.thingsboard.server.common.stats.TbApiUsageStateClient;
import org.thingsboard.server.dao.settings.AdminSettingsService;
import org.thingsboard.server.dao.tenant.TbTenantProfileCache;
import org.thingsboard.server.service.security.auth.mfa.config.TwoFaConfigManager;
import org.thingsboard.server.service.ws.telemetry.cmd.v2.EntityCountCmd;
import org.thingsboard.server.service.ws.telemetry.cmd.v2.EntityCountUpdate;
import org.thingsboard.server.service.ws.telemetry.cmd.v2.EntityDataUpdate;
@ -91,9 +90,6 @@ public abstract class BaseHomePageApiTest extends AbstractControllerTest {
@MockBean
private SmsService smsService;
@MockBean
TwoFaConfigManager twoFaConfigManager;
//For system administrator
@Test
public void testTenantsCountWsCmd() throws Exception {
@ -380,6 +376,10 @@ public abstract class BaseHomePageApiTest extends AbstractControllerTest {
Assert.assertTrue(featuresInfo.isTwoFaEnabled());
Assert.assertTrue(featuresInfo.isNotificationEnabled());
Assert.assertTrue(featuresInfo.isOauthEnabled());
adminSettingsService.deleteAdminSettingsByTenantIdAndKey(TenantId.SYS_TENANT_ID, "notifications");
adminSettingsService.deleteAdminSettingsByTenantIdAndKey(TenantId.SYS_TENANT_ID, "twoFaSettings");
adminSettingsService.deleteAdminSettingsByTenantIdAndKey(TenantId.SYS_TENANT_ID, "sms");
}
@Test

Loading…
Cancel
Save