You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ap...@apache.org on 2018/08/07 18:52:28 UTC
atlas git commit: Unit test fixes
Repository: atlas
Updated Branches:
refs/heads/branch-0.8 9dc245b8b -> a5254b551
Unit test fixes
Change-Id: I1879e36a4a2a30b7ed888e70708967802bc80058
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/a5254b55
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/a5254b55
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/a5254b55
Branch: refs/heads/branch-0.8
Commit: a5254b551764848f3377587fed4ab4a45f148a1e
Parents: 9dc245b
Author: apoorvnaik <ap...@apache.org>
Authored: Tue Jul 31 07:06:17 2018 -0700
Committer: apoorvnaik <ap...@apache.org>
Committed: Tue Aug 7 11:04:38 2018 -0700
----------------------------------------------------------------------
.../apache/atlas/repository/impexp/ExportImportTestBase.java | 5 ++---
.../atlas/repository/userprofile/UserProfileServiceTest.java | 3 ++-
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/atlas/blob/a5254b55/repository/src/test/java/org/apache/atlas/repository/impexp/ExportImportTestBase.java
----------------------------------------------------------------------
diff --git a/repository/src/test/java/org/apache/atlas/repository/impexp/ExportImportTestBase.java b/repository/src/test/java/org/apache/atlas/repository/impexp/ExportImportTestBase.java
index 7a61209..d61b274 100644
--- a/repository/src/test/java/org/apache/atlas/repository/impexp/ExportImportTestBase.java
+++ b/repository/src/test/java/org/apache/atlas/repository/impexp/ExportImportTestBase.java
@@ -62,12 +62,11 @@ public class ExportImportTestBase {
protected void assertAuditEntry(ExportImportAuditService auditService) {
AtlasSearchResult result = null;
try {
- result = auditService.get("", "", getCurrentCluster(), "", "", "", 10, 0);
+ result = auditService.get("", "", "", "", "", "", 10, 0);
} catch (AtlasBaseException e) {
fail("auditService.get: failed!");
- } catch (AtlasException e) {
- fail("getCurrentCluster: failed!");
}
+
assertNotNull(result);
assertNotNull(result.getEntities());
assertTrue(result.getEntities().size() > 0);
http://git-wip-us.apache.org/repos/asf/atlas/blob/a5254b55/repository/src/test/java/org/apache/atlas/repository/userprofile/UserProfileServiceTest.java
----------------------------------------------------------------------
diff --git a/repository/src/test/java/org/apache/atlas/repository/userprofile/UserProfileServiceTest.java b/repository/src/test/java/org/apache/atlas/repository/userprofile/UserProfileServiceTest.java
index 0532f16..17dc252 100644
--- a/repository/src/test/java/org/apache/atlas/repository/userprofile/UserProfileServiceTest.java
+++ b/repository/src/test/java/org/apache/atlas/repository/userprofile/UserProfileServiceTest.java
@@ -59,6 +59,7 @@ public class UserProfileServiceTest {
@Test
public void filterInternalType() throws AtlasBaseException {
+ final int NUMER_OF_INTERNAL_TYPES = 4;
SearchFilter searchFilter = new SearchFilter();
AtlasTypesDef filteredTypeDefs = typeDefStore.searchTypesDef(searchFilter);
int maxTypeDefs = filteredTypeDefs.getEntityDefs().size();
@@ -67,7 +68,7 @@ public class UserProfileServiceTest {
filteredTypeDefs = typeDefStore.searchTypesDef(searchFilter);
assertNotNull(filteredTypeDefs);
- assertEquals(filteredTypeDefs.getEntityDefs().size(), maxTypeDefs - 3);
+ assertEquals(filteredTypeDefs.getEntityDefs().size(), maxTypeDefs - NUMER_OF_INTERNAL_TYPES);
}
@Test