forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'datahub-project:master' into master
- Loading branch information
Showing
17 changed files
with
282 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
metadata-ingestion/tests/unit/utilities/test_memory_footprint.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from collections import defaultdict | ||
|
||
from datahub.utilities import memory_footprint | ||
|
||
|
||
def test_total_size_with_empty_dict(): | ||
size = memory_footprint.total_size({}) | ||
# Only asserting if it is bigger than 0 because the actual sizes differs per python version | ||
assert size > 0 | ||
|
||
|
||
def test_total_size_with_list(): | ||
size = memory_footprint.total_size({"1": [1, 2, 3, 4]}) | ||
# Only asserting if it is bigger than 0 because the actual sizes differs per python version | ||
assert size > 0 | ||
|
||
|
||
def test_total_size_with_none(): | ||
size = memory_footprint.total_size(None) | ||
# Only asserting if it is bigger than 0 because the actual sizes differs per python version | ||
assert size > 0 | ||
|
||
|
||
def test_total_size_with_defaultdict(): | ||
size = memory_footprint.total_size(defaultdict) | ||
# Only asserting if it is bigger than 0 because the actual sizes differs per python version | ||
assert size > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
smoke-test/tests/cypress/cypress/integration/containers/containers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
describe("containers", () => { | ||
it("can see elements inside the container", () => { | ||
cy.login(); | ||
cy.visit( | ||
"http://localhost:9002/container/urn:li:container:348c96555971d3f5c1ffd7dd2e7446cb" | ||
); | ||
|
||
cy.contains("jaffle_shop"); | ||
|
||
cy.contains("customers"); | ||
cy.contains("customers_source"); | ||
cy.contains("orders"); | ||
cy.contains("raw_orders"); | ||
cy.contains("1 - 9 of 9"); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
smoke-test/tests/cypress/cypress/integration/domains/domains.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
describe("domains", () => { | ||
it("can see elements inside the domain", () => { | ||
cy.login(); | ||
cy.visit( | ||
"http://localhost:9002/domain/urn:li:domain:marketing/Entities?is_lineage_mode=false" | ||
); | ||
|
||
cy.contains("Marketing"); | ||
cy.contains("SampleCypressKafkaDataset"); | ||
cy.contains("1 - 1 of 1"); | ||
}); | ||
}); |
Oops, something went wrong.