Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(embedded search): adding domain & container tests #6221

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This urn is the same every time right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep its in the mce file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

);

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 smoke-test/tests/cypress/cypress/integration/domains/domains.js
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");
});
});
199 changes: 131 additions & 68 deletions smoke-test/tests/cypress/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,18 @@
{
"fieldPath": "shipment_info",
"globalTags": { "tags": [{ "tag": "urn:li:tag:Legacy" }] },
"glossaryTerms": { "terms": [{ "urn": "urn:li:glossaryTerm:CypressNode.CypressColumnInfoType" }], "auditStamp": { "time": 0, "actor": "urn:li:corpuser:jdoe", "impersonator": null }}
"glossaryTerms": {
"terms": [
{
"urn": "urn:li:glossaryTerm:CypressNode.CypressColumnInfoType"
}
],
"auditStamp": {
"time": 0,
"actor": "urn:li:corpuser:jdoe",
"impersonator": null
}
}
}
]
}
Expand Down Expand Up @@ -623,7 +634,18 @@
},
"nativeDataType": "boolean",
"recursive": false,
"glossaryTerms": { "terms": [{ "urn": "urn:li:glossaryTerm:CypressNode.CypressColumnInfoType" }], "auditStamp": { "time": 0, "actor": "urn:li:corpuser:jdoe", "impersonator": null }}
"glossaryTerms": {
"terms": [
{
"urn": "urn:li:glossaryTerm:CypressNode.CypressColumnInfoType"
}
],
"auditStamp": {
"time": 0,
"actor": "urn:li:corpuser:jdoe",
"impersonator": null
}
}
},
{
"fieldPath": "timestamp",
Expand Down Expand Up @@ -792,16 +814,18 @@
],
"primaryKeys": null,
"foreignKeysSpecs": null,
"foreignKeys": [{
"name": "user id",
"foreignFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD),user_id)"
],
"sourceFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD),user_id)"
],
"foreignDataset": "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)"
}]
"foreignKeys": [
{
"name": "user id",
"foreignFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD),user_id)"
],
"sourceFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD),user_id)"
],
"foreignDataset": "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)"
}
]
}
}
]
Expand Down Expand Up @@ -934,16 +958,18 @@
],
"primaryKeys": null,
"foreignKeysSpecs": null,
"foreignKeys": [{
"name": "user id",
"foreignFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD),user_id)"
],
"sourceFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD),user_id)"
],
"foreignDataset": "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)"
}]
"foreignKeys": [
{
"name": "user id",
"foreignFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD),user_id)"
],
"sourceFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD),user_id)"
],
"foreignDataset": "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_deleted,PROD)"
}
]
}
},
{
Expand Down Expand Up @@ -1150,16 +1176,18 @@
],
"primaryKeys": ["user_name"],
"foreignKeysSpecs": null,
"foreignKeys": [{
"name": "user session",
"foreignFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_cypress_users_created,PROD),user_id)"
],
"sourceFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_cypress_users_deleted,PROD),user_id)"
],
"foreignDataset": "urn:li:dataset:(urn:li:dataPlatform:hive,fct_cypress_users_created,PROD)"
}]
"foreignKeys": [
{
"name": "user session",
"foreignFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_cypress_users_created,PROD),user_id)"
],
"sourceFields": [
"urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:hive,fct_cypress_users_deleted,PROD),user_id)"
],
"foreignDataset": "urn:li:dataset:(urn:li:dataPlatform:hive,fct_cypress_users_created,PROD)"
}
]
}
},
{
Expand Down Expand Up @@ -1484,10 +1512,12 @@
},
{
"com.linkedin.pegasus2avro.common.Ownership": {
"owners": [{
"owner": "urn:li:corpuser:jdoe",
"type": "DATAOWNER"
}],
"owners": [
{
"owner": "urn:li:corpuser:jdoe",
"type": "DATAOWNER"
}
],
"lastModified": {
"time": 1581407189000,
"actor": "urn:li:corpuser:jdoe"
Expand All @@ -1504,17 +1534,20 @@
"proposedSnapshot": {
"com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot": {
"urn": "urn:li:glossaryNode:CypressNode",
"aspects": [{
"com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo": {
"definition": "Provides basic concepts such as account, account holder, account provider, relationship manager that are commonly used by financial services providers to describe customers and to determine counterparty identities"
}
},
"aspects": [
{
"com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo": {
"definition": "Provides basic concepts such as account, account holder, account provider, relationship manager that are commonly used by financial services providers to describe customers and to determine counterparty identities"
}
},
{
"com.linkedin.pegasus2avro.common.Ownership": {
"owners": [{
"owner": "urn:li:corpuser:jdoe",
"type": "DATAOWNER"
}],
"owners": [
{
"owner": "urn:li:corpuser:jdoe",
"type": "DATAOWNER"
}
],
"lastModified": {
"time": 1581407189000,
"actor": "urn:li:corpuser:jdoe"
Expand All @@ -1526,7 +1559,7 @@
},
"proposedDelta": null
},
{
{
"auditHeader": null,
"proposedSnapshot": {
"com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot": {
Expand Down Expand Up @@ -1567,8 +1600,8 @@
"changeType": "UPSERT",
"aspectName": "operation",
"aspect": {
"value": "{\"timestampMillis\": 1622243780153, \"lastUpdatedTimestamp\": 1622243780153, \"actor\": \"urn:li:corpuser:harshal\", \"operationType\": \"CREATE\", \"affectedDatasets\": []}",
"contentType": "application/json"
"value": "{\"timestampMillis\": 1622243780153, \"lastUpdatedTimestamp\": 1622243780153, \"actor\": \"urn:li:corpuser:harshal\", \"operationType\": \"CREATE\", \"affectedDatasets\": []}",
"contentType": "application/json"
},
"systemMetadata": null
},
Expand All @@ -1584,7 +1617,8 @@
"contentType": "application/json"
},
"systemMetadata": null
},{
},
{
"auditHeader": null,
"entityType": "dataProcessInstance",
"entityUrn": "urn:li:dataProcessInstance:c39d6e424c70a1b3e8982535c68b5b5888",
Expand All @@ -1596,7 +1630,8 @@
"contentType": "application/json"
},
"systemMetadata": null
},{
},
{
"auditHeader": null,
"entityType": "dataProcessInstance",
"entityUrn": "urn:li:dataProcessInstance:c39d6e424c70a1b3e8982535c68b5b5888",
Expand All @@ -1608,7 +1643,8 @@
"contentType": "application/json"
},
"systemMetadata": null
},{
},
{
"auditHeader": null,
"entityType": "dataProcessInstance",
"entityUrn": "urn:li:dataProcessInstance:c39d6e424c70a1b3e8982535c68b5b5888",
Expand All @@ -1620,7 +1656,8 @@
"contentType": "application/json"
},
"systemMetadata": null
},{
},
{
"auditHeader": null,
"entityType": "dataProcessInstance",
"entityUrn": "urn:li:dataProcessInstance:c39d6e424c70a1b3e8982535c68b5b5888",
Expand All @@ -1644,7 +1681,9 @@
"description": null,
"dataType": "TEXT",
"version": null,
"sources": ["urn:li:dataset:(urn:li:dataPlatform:kafka,SampleCypressKafkaDataset,PROD)"]
"sources": [
"urn:li:dataset:(urn:li:dataPlatform:kafka,SampleCypressKafkaDataset,PROD)"
]
}
},
{
Expand All @@ -1669,7 +1708,9 @@
"description": "this is a description from source system",
"dataType": "ORDINAL",
"version": null,
"sources": ["urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)"]
"sources": [
"urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)"
]
}
},
{
Expand All @@ -1691,9 +1732,7 @@
"aspects": [
{
"com.linkedin.pegasus2avro.common.BrowsePaths": {
"paths": [
"/sagemaker/cypress-feature-table"
]
"paths": ["/sagemaker/cypress-feature-table"]
}
},
{
Expand Down Expand Up @@ -1752,7 +1791,9 @@
}
],
"onlineMetrics": null,
"mlFeatures": ["urn:li:mlFeature:(cypress-test-2,some-cypress-feature-1)"],
"mlFeatures": [
"urn:li:mlFeature:(cypress-test-2,some-cypress-feature-1)"
],
"tags": [],
"deployments": [],
"trainingJobs": [],
Expand All @@ -1764,9 +1805,7 @@
},
{
"com.linkedin.pegasus2avro.common.BrowsePaths": {
"paths": [
"/sagemaker/cypress-model-package-group/cypress-model"
]
"paths": ["/sagemaker/cypress-model-package-group/cypress-model"]
}
}
]
Expand Down Expand Up @@ -1812,9 +1851,7 @@
},
{
"com.linkedin.pegasus2avro.common.BrowsePaths": {
"paths": [
"/sagemaker/cypress-model-package-group"
]
"paths": ["/sagemaker/cypress-model-package-group"]
}
}
]
Expand Down Expand Up @@ -1843,10 +1880,12 @@
},
{
"com.linkedin.pegasus2avro.common.Ownership": {
"owners": [{
"owner": "urn:li:corpuser:jdoe",
"type": "DATAOWNER"
}],
"owners": [
{
"owner": "urn:li:corpuser:jdoe",
"type": "DATAOWNER"
}
],
"lastModified": {
"time": 1581407189000,
"actor": "urn:li:corpuser:jdoe"
Expand All @@ -1857,5 +1896,29 @@
}
},
"proposedDelta": null
},
{
"auditHeader": null,
"entityType": "domain",
"entityUrn": "urn:li:domain:marketing",
"changeType": "UPSERT",
"aspectName": "domainProperties",
"aspect": {
"value": "{\"name\": \"Marketing\", \"description\": \"My custom domain\" }",
"contentType": "application/json"
},
"systemMetadata": null
},
{
"auditHeader": null,
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:kafka,SampleCypressKafkaDataset,PROD)",
"changeType": "UPSERT",
"aspectName": "domains",
"aspect": {
"value": "{\"domains\": [\"urn:li:domain:marketing\"] }",
"contentType": "application/json"
},
"systemMetadata": null
}
]