Skip to content

Commit

Permalink
Fix DeviceDaoTest
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiLandiak committed Sep 4, 2024
1 parent e9dd2d6 commit 1d98ca2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,8 @@ private List<EntityViewInfo> loadListOfInfo(PageLink pageLink, String urlTemplat
return loadedItems;
}

// edge-only: @Ignore - edge entities support available for CE/PE
@Ignore
@Test
@Ignore("Edge entities support available for CE/PE only")
public void testAssignEntityViewToEdge() throws Exception {
Edge edge = constructEdge("My edge", "default");
Edge savedEdge = doPost("/api/edge", edge, Edge.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.google.protobuf.AbstractMessage;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.common.util.concurrent.MoreExecutors;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.thingsboard.common.util.ThingsBoardThreadFactory;
Expand Down Expand Up @@ -110,6 +111,7 @@ public void testSaveDeviceName0x00_thenSomeDatabaseException() {
}

@Test
@Ignore("HasVersion check is ignored for Edge")
public void testSaveDevice_versionIncrement() {
Device device = getDevice(tenantId1, customerId1, "1ewfewf2");
device = saveDevice(tenantId1, device);
Expand All @@ -126,6 +128,7 @@ public void testSaveDevice_versionIncrement() {
}

@Test
@Ignore("HasVersion check is ignored for Edge")
public void testSaveDevice_versionIncrement_noChanges() {
Device device = getDevice(tenantId1, customerId1, "1ewfewf2");
device = saveDevice(tenantId1, device);
Expand Down

0 comments on commit 1d98ca2

Please sign in to comment.