2022-05-18 12:22:50 +05:30
/ *
2022-12-27 12:37:58 +05:30
* Copyright 2022 Collate .
2022-05-18 12:22:50 +05:30
* Licensed under the Apache License , Version 2.0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
* http : //www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an "AS IS" BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
2022-10-08 00:07:24 +05:30
export const uuid = ( ) => Cypress . _ . random ( 0 , 1e6 ) ;
2022-09-19 18:43:39 +05:30
const id = uuid ( ) ;
2022-10-19 20:55:31 +05:30
export const BASE _URL = location . origin ;
2023-01-15 18:24:10 +05:30
export const LOGIN _ERROR _MESSAGE =
'You have entered an invalid username or password.' ;
2022-10-19 20:55:31 +05:30
2022-05-18 12:22:50 +05:30
export const MYDATA _SUMMARY _OPTIONS = {
tables : 'tables' ,
topics : 'topics' ,
dashboards : 'dashboards' ,
pipelines : 'pipelines' ,
2022-10-08 00:07:24 +05:30
mlmodels : 'mlmodels' ,
2023-03-24 09:23:34 +05:30
service : 'service' ,
user : 'user' ,
teams : 'teams' ,
2023-03-21 19:33:44 +05:30
testSuite : 'test-suite' ,
containers : 'containers' ,
glossaryTerms : 'glossary-terms' ,
2022-10-08 00:07:24 +05:30
} ;
export const SEARCH _INDEX = {
tables : 'table_search_index' ,
topics : 'topic_search_index' ,
dashboards : 'dashboard_search_index' ,
pipelines : 'pipeline_search_index' ,
mlmodels : 'mlmodel_search_index' ,
2022-05-18 12:22:50 +05:30
} ;
2022-10-13 15:27:06 +05:30
export const DATA _QUALITY _SAMPLE _DATA _TABLE = {
term : 'dim_address' ,
entity : MYDATA _SUMMARY _OPTIONS . tables ,
serviceName : 'sample_data' ,
testCaseName : 'column_value_max_to_be_between' ,
2023-01-15 18:24:10 +05:30
testSuiteName : 'critical_metrics_suite' ,
2023-04-24 18:42:40 +02:00
sqlTestCase : 'Custom SQL Query' ,
2023-01-15 18:24:10 +05:30
sqlQuery : 'Select * from dim_address' ,
2022-10-13 15:27:06 +05:30
} ;
2022-05-22 10:36:43 +05:30
export const SEARCH _ENTITY _TABLE = {
2022-09-29 02:49:03 +05:30
table _1 : {
term : 'raw_customer' ,
2022-12-02 20:54:25 +05:30
displayName : 'raw_customer' ,
2022-09-29 02:49:03 +05:30
entity : MYDATA _SUMMARY _OPTIONS . tables ,
serviceName : 'sample_data' ,
} ,
table _2 : {
term : 'fact_session' ,
2023-03-14 10:33:51 +05:30
displayName : 'fact_session' ,
2022-09-29 02:49:03 +05:30
entity : MYDATA _SUMMARY _OPTIONS . tables ,
serviceName : 'sample_data' ,
2023-03-13 22:24:35 +05:30
schemaName : 'shopify' ,
2022-09-29 02:49:03 +05:30
} ,
2022-05-22 10:36:43 +05:30
table _3 : {
term : 'raw_product_catalog' ,
2023-03-14 10:33:51 +05:30
displayName : 'raw_product_catalog' ,
entity : MYDATA _SUMMARY _OPTIONS . tables ,
serviceName : 'sample_data' ,
2023-03-22 16:16:08 +05:30
schemaName : 'shopify' ,
2023-03-14 10:33:51 +05:30
} ,
table _4 : {
term : 'dim_address' ,
displayName : 'dim_address' ,
2022-05-22 10:36:43 +05:30
entity : MYDATA _SUMMARY _OPTIONS . tables ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_data' ,
2022-05-22 10:36:43 +05:30
} ,
} ;
export const SEARCH _ENTITY _TOPIC = {
topic _1 : {
term : 'shop_products' ,
2022-12-02 20:54:25 +05:30
displayName : 'shop_products' ,
2022-05-22 10:36:43 +05:30
entity : MYDATA _SUMMARY _OPTIONS . topics ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_kafka' ,
} ,
topic _2 : {
term : 'orders' ,
entity : MYDATA _SUMMARY _OPTIONS . topics ,
serviceName : 'sample_kafka' ,
2022-05-18 23:20:41 +05:30
} ,
2022-05-22 10:36:43 +05:30
} ;
export const SEARCH _ENTITY _DASHBOARD = {
dashboard _1 : {
2022-06-13 22:43:22 +05:30
term : 'Slack Dashboard' ,
2022-12-02 20:54:25 +05:30
displayName : 'Slack Dashboard' ,
2022-05-18 23:20:41 +05:30
entity : MYDATA _SUMMARY _OPTIONS . dashboards ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_superset' ,
2022-05-18 23:20:41 +05:30
} ,
2022-05-22 10:36:43 +05:30
dashboard _2 : {
2022-05-18 23:20:41 +05:30
term : 'Unicode Test' ,
entity : MYDATA _SUMMARY _OPTIONS . dashboards ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_superset' ,
2022-05-18 23:20:41 +05:30
} ,
2022-05-22 10:36:43 +05:30
} ;
2022-11-16 22:15:30 +05:30
2022-05-22 10:36:43 +05:30
export const SEARCH _ENTITY _PIPELINE = {
2022-07-05 18:03:08 +05:30
pipeline _1 : {
2022-09-29 15:21:33 +05:30
term : 'dim_product_etl' ,
2022-11-17 19:25:31 +05:30
displayName : 'dim_product etl' ,
2022-07-05 18:03:08 +05:30
entity : MYDATA _SUMMARY _OPTIONS . pipelines ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_airflow' ,
2022-07-05 18:03:08 +05:30
} ,
2022-05-22 10:36:43 +05:30
pipeline _2 : {
2022-09-29 15:21:33 +05:30
term : 'dim_location_etl' ,
2022-11-17 19:25:31 +05:30
displayName : 'dim_location etl' ,
2022-05-22 10:36:43 +05:30
entity : MYDATA _SUMMARY _OPTIONS . pipelines ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_airflow' ,
2022-05-21 03:03:55 +05:30
} ,
2022-05-18 23:20:41 +05:30
} ;
2022-10-06 18:43:04 +05:30
export const SEARCH _ENTITY _MLMODEL = {
mlmodel _1 : {
term : 'forecast_sales' ,
entity : MYDATA _SUMMARY _OPTIONS . mlmodels ,
serviceName : 'mlflow_svc' ,
} ,
mlmodel _2 : {
term : 'eta_predictions' ,
entity : MYDATA _SUMMARY _OPTIONS . mlmodels ,
serviceName : 'mlflow_svc' ,
} ,
} ;
2022-05-18 23:20:41 +05:30
2022-05-19 17:34:32 +05:30
export const DELETE _ENTITY = {
table : {
2023-05-04 17:36:24 +05:30
term : 'dim.shop' ,
2022-05-19 17:34:32 +05:30
entity : MYDATA _SUMMARY _OPTIONS . tables ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_data' ,
2022-05-19 17:34:32 +05:30
} ,
topic : {
term : 'shop_updates' ,
entity : MYDATA _SUMMARY _OPTIONS . topics ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_kafka' ,
2022-09-06 06:42:42 +05:30
} ,
2022-05-19 17:34:32 +05:30
} ;
2022-05-18 12:22:50 +05:30
export const RECENT _SEARCH _TITLE = 'Recent Search Terms' ;
export const RECENT _VIEW _TITLE = 'Recent Views' ;
export const MY _DATA _TITLE = 'My Data' ;
export const FOLLOWING _TITLE = 'Following' ;
2022-09-19 18:43:39 +05:30
export const TEAM _ENTITY = 'team_entity' ;
2022-05-18 23:20:41 +05:30
export const NO _SEARCHED _TERMS = 'No searched terms' ;
2022-05-19 17:34:32 +05:30
export const DELETE _TERM = 'DELETE' ;
2022-05-24 18:55:17 +05:30
export const TOTAL _SAMPLE _DATA _TEAMS _COUNT = 7 ;
export const TEAMS = {
Cloud _Infra : { name : 'Cloud_Infra' , users : 15 } ,
Customer _Support : { name : 'Customer_Support' , users : 20 } ,
Data _Platform : { name : 'Data_Platform' , users : 16 } ,
} ;
2022-09-19 18:43:39 +05:30
export const NEW _TEST _SUITE = {
name : ` mysql_matrix ` ,
description : 'mysql critical matrix' ,
} ;
export const NEW _TABLE _TEST _CASE = {
2023-04-24 18:42:40 +02:00
label : 'Table Column Name To Exist' ,
2022-09-20 02:59:15 +05:30
type : 'tableColumnNameToExist' ,
2022-09-19 18:43:39 +05:30
field : 'id' ,
description : 'New table test case for TableColumnNameToExist' ,
} ;
export const NEW _COLUMN _TEST _CASE = {
column : 'id' ,
type : 'columnValueLengthsToBeBetween' ,
2023-04-24 18:42:40 +02:00
label : 'Column Value Lengths To Be Between' ,
2022-09-19 18:43:39 +05:30
min : 3 ,
max : 6 ,
description : 'New table test case for columnValueLengthsToBeBetween' ,
} ;
2023-02-03 16:30:50 +05:30
export const NEW _COLUMN _TEST _CASE _WITH _NULL _TYPE = {
column : 'id' ,
type : 'columnValuesToBeNotNull' ,
2023-04-24 18:42:40 +02:00
label : 'Column Values To Be Not Null' ,
2023-02-03 16:30:50 +05:30
description : 'New table test case for columnValuesToBeNotNull' ,
} ;
2022-05-24 18:55:17 +05:30
export const NEW _TEAM = {
team _1 : {
name : 'account' ,
display _name : 'Account' ,
description : 'Account department' ,
} ,
team _2 : {
name : 'service' ,
display _name : 'Service' ,
description : 'Service department' ,
} ,
} ;
2022-09-19 18:43:39 +05:30
2022-05-24 18:55:17 +05:30
export const NEW _USER = {
email : ` test_ ${ id } @gmail.com ` ,
display _name : ` Test user ${ id } ` ,
description : 'Hello, I am test user' ,
} ;
export const NEW _ADMIN = {
email : ` test_ ${ id } @gmail.com ` ,
display _name : ` Test admin ${ id } ` ,
description : 'Hello, I am test admin' ,
} ;
2022-05-27 23:52:33 +05:30
2023-05-24 13:55:58 +05:30
export const NEW _CLASSIFICATION = {
2023-04-06 17:52:11 +05:30
name : 'CypressClassification' ,
2023-04-06 21:15:37 +05:30
displayName : 'CypressClassification' ,
2023-04-06 17:52:11 +05:30
description : 'This is the CypressClassification' ,
2022-05-27 23:52:33 +05:30
} ;
export const NEW _TAG = {
2023-04-06 17:52:11 +05:30
name : 'CypressTag' ,
2023-04-06 21:15:37 +05:30
displayName : 'CypressTag' ,
renamedName : 'CypressTag-1' ,
2023-06-27 17:40:25 +05:30
fqn : ` ${ NEW _CLASSIFICATION . name } .CypressTag ` ,
2023-04-06 17:52:11 +05:30
description : 'This is the CypressTag' ,
2022-05-27 23:52:33 +05:30
} ;
2022-06-01 11:36:36 +05:30
export const NEW _GLOSSARY = {
name : 'Business Glossary' ,
description : 'This is the Business glossary' ,
2022-11-14 18:09:38 +05:30
reviewer : 'Aaron Johnson' ,
2023-01-15 18:24:10 +05:30
tag : 'PII.None' ,
2022-06-01 11:36:36 +05:30
} ;
2023-01-19 16:47:44 +05:30
export const NEW _GLOSSARY _1 = {
name : 'Product Glossary' ,
description : 'This is the Product glossary' ,
reviewer : 'Brandy Miller' ,
tag : 'PII.None' ,
} ;
2022-06-01 11:36:36 +05:30
export const NEW _GLOSSARY _TERMS = {
term _1 : {
name : 'Purchase' ,
description : 'This is the Purchase' ,
synonyms : 'buy,collect,acquire' ,
2023-04-12 16:42:04 +05:30
fullyQualifiedName : 'Business Glossary.Purchase' ,
2022-06-01 11:36:36 +05:30
} ,
term _2 : {
name : 'Sales' ,
description : 'This is the Sales' ,
synonyms : 'give,disposal,deal' ,
2023-04-12 16:42:04 +05:30
fullyQualifiedName : 'Business Glossary.Sales' ,
2022-06-01 11:36:36 +05:30
} ,
} ;
2023-02-22 19:41:40 +05:30
export const GLOSSARY _TERM _WITH _DETAILS = {
name : 'Accounts' ,
description : 'This is the Accounts' ,
tag : 'PersonalData.Personal' ,
synonyms : 'book,ledger,results' ,
relatedTerms : 'Sales' ,
2023-03-28 14:39:41 +05:30
reviewer : 'Colin Ho' ,
2023-02-22 19:41:40 +05:30
inheritedReviewer : 'Aaron Johnson' ,
2023-04-12 16:42:04 +05:30
fullyQualifiedName : 'Business Glossary.Accounts' ,
2023-02-22 19:41:40 +05:30
} ;
2022-07-05 18:03:08 +05:30
2023-01-19 16:47:44 +05:30
export const NEW _GLOSSARY _1 _TERMS = {
term _1 : {
name : 'Features' ,
description : 'This is the Features' ,
synonyms : 'data,collect,time' ,
2023-04-12 16:42:04 +05:30
fullyQualifiedName : 'Product Glossary.Features' ,
2023-01-19 16:47:44 +05:30
} ,
term _2 : {
name : 'Uses' ,
description : 'This is the Uses' ,
synonyms : 'home,business,adventure' ,
2023-04-12 16:42:04 +05:30
fullyQualifiedName : 'Product Glossary.Uses' ,
2023-01-19 16:47:44 +05:30
} ,
} ;
2022-07-05 18:03:08 +05:30
export const service = {
name : 'Glue' ,
description : 'This is a Glue service' ,
newDescription : 'This is updated Glue service description' ,
2023-03-28 14:39:41 +05:30
Owner : 'Aaron Johnson' ,
2022-07-05 18:03:08 +05:30
} ;
2022-08-11 10:57:39 +05:30
export const SERVICE _TYPE = {
Database : 'Database' ,
Messaging : 'Messaging' ,
Dashboard : 'Dashboard' ,
2023-05-22 16:25:03 +05:30
Pipeline : 'Pipeline' ,
2022-08-11 10:57:39 +05:30
MLModels : 'ML Models' ,
2023-05-22 16:25:03 +05:30
Storage : 'Storage' ,
2022-08-11 10:57:39 +05:30
} ;
2022-08-23 19:21:06 +05:30
export const ENTITIES = {
entity _table : {
name : 'table' ,
description : 'This is Table custom property' ,
integerValue : '45' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
2022-09-29 15:21:33 +05:30
entityObj : SEARCH _ENTITY _TABLE . table _1 ,
2022-08-23 19:21:06 +05:30
} ,
entity _topic : {
name : 'topic' ,
description : 'This is Topic custom property' ,
integerValue : '23' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
2022-09-29 15:21:33 +05:30
entityObj : SEARCH _ENTITY _TOPIC . topic _1 ,
2022-08-23 19:21:06 +05:30
} ,
2023-01-15 18:24:10 +05:30
// commenting the dashboard test for not, need to make changes in dynamic data-test side
// entity_dashboard: {
// name: 'dashboard',
// description: 'This is Dashboard custom property',
// integerValue: '14',
// stringValue: 'This is string propery',
// markdownValue: 'This is markdown value',
// entityObj: SEARCH_ENTITY_DASHBOARD.dashboard_1,
// },
2022-08-23 19:21:06 +05:30
entity _pipeline : {
name : 'pipeline' ,
description : 'This is Pipeline custom property' ,
integerValue : '78' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
2022-09-29 15:21:33 +05:30
entityObj : SEARCH _ENTITY _PIPELINE . pipeline _1 ,
2022-08-23 19:21:06 +05:30
} ,
2022-09-06 06:42:42 +05:30
} ;
2022-09-23 16:05:54 +05:30
export const LOGIN = {
2023-07-05 21:13:29 +05:30
username : 'admin' ,
2022-09-23 16:05:54 +05:30
password : 'admin' ,
} ;
2022-10-17 17:37:34 +05:30
2022-11-01 17:58:24 +05:30
// For now skipping the dashboard entity "SEARCH_ENTITY_DASHBOARD.dashboard_1"
2023-01-15 18:24:10 +05:30
export const ANNOUNCEMENT _ENTITIES = [
SEARCH _ENTITY _TABLE . table _1 ,
SEARCH _ENTITY _TOPIC . topic _1 ,
SEARCH _ENTITY _PIPELINE . pipeline _1 ,
] ;
2022-10-17 18:47:17 +05:30
2022-10-17 17:37:34 +05:30
export const HTTP _CONFIG _SOURCE = {
DBT _CATALOG _HTTP _PATH :
'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/master/catalog.json' ,
DBT _MANIFEST _HTTP _PATH :
'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/master/manifest.json' ,
DBT _RUN _RESTLTS _FILE _PATH :
'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/master/run_results.json' ,
} ;
export const DBT = {
2023-01-06 11:08:21 +05:30
classification : 'dbtTags' ,
2022-10-17 17:37:34 +05:30
tagName : 'model_tag_one' ,
dbtQuery : 'select * from "dev"."dbt_jaffle"."stg_orders"' ,
2023-04-20 12:35:38 +05:30
dbtLineageNodeLabel : 'stg_customers' ,
dbtLineageNode : 'dev.dbt_jaffle.stg_customers' ,
2022-10-17 17:37:34 +05:30
dataQualityTest1 : 'dbt_utils_equal_rowcount_customers_ref_orders_' ,
dataQualityTest2 : 'not_null_customers_customer_id' ,
} ;
2022-11-14 18:09:38 +05:30
export const API _SERVICE = {
databaseServices : 'databaseServices' ,
messagingServices : 'messagingServices' ,
pipelineServices : 'pipelineServices' ,
dashboardServices : 'dashboardServices' ,
2023-05-22 16:25:03 +05:30
mlmodelServices : 'mlmodelServices' ,
storageServices : 'storageServices' ,
2023-01-15 18:24:10 +05:30
} ;
2022-12-30 15:40:52 +05:30
export const TEST _CASE = {
testCaseAlert : ` TestCaseAlert-ct-test- ${ uuid ( ) } ` ,
testCaseDescription : 'This is test case alert description' ,
dataAsset : 'Test Case' ,
filters : 'Test Results === Failed' ,
} ;
export const DESTINATION = {
webhook : {
name : ` webhookAlert-ct-test- ${ uuid ( ) } ` ,
locator : 'Webhook' ,
description : 'This is webhook description' ,
url : 'http://localhost:8585' ,
} ,
slack : {
name : ` slackAlert-ct-test- ${ uuid ( ) } ` ,
locator : 'Slack' ,
description : 'This is slack description' ,
url : 'http://localhost:8585' ,
} ,
msteams : {
name : ` msteamsAlert-ct-test- ${ uuid ( ) } ` ,
locator : 'MS Teams' ,
description : 'This is ms teams description' ,
url : 'http://localhost:8585' ,
} ,
} ;
2023-05-22 14:22:57 +05:30
export const CUSTOM _PROPERTY _INVALID _NAMES = {
CAPITAL _CASE : 'CapitalCase' ,
WITH _UNDERSCORE : 'with_underscore' ,
WITH _DOTS : 'with.' ,
WITH _SPACE : 'with ' ,
} ;
export const CUSTOM _PROPERTY _NAME _VALIDATION _ERROR =
'Name must start with lower case with no space, underscore, or dots.' ;
2023-05-24 13:55:58 +05:30
export const TAG _INVALID _NAMES = {
MIN _LENGTH : 'c' ,
MAX _LENGTH : 'a87439625b1c2d3e4f5061728394a5b6c7d8e90a1b2c3d4e5f67890ab' ,
WITH _SPECIAL _CHARS : '!@#$%^&*()' ,
} ;
2023-05-29 21:45:52 +05:30
export const GLOSSARY _INVALID _NAMES = {
MAX _LENGTH :
'a87439625b1c2d3e4f5061728394a5b6c7d8e90a1b2c3d4e5f67890aba87439625b1c2d3e4f5061728394a5b6c7d8e90a1b2c3d4e5f67890abName can be a maximum of 128 characters' ,
WITH _SPECIAL _CHARS : '!@#$%^&*()' ,
} ;
2023-05-24 13:55:58 +05:30
export const NAME _VALIDATION _ERROR =
'Name must contain only letters, numbers, underscores, hyphens, periods, parenthesis, and ampersands.' ;
export const NAME _MIN _MAX _LENGTH _VALIDATION _ERROR =
'Name size must be between 2 and 64' ;
2023-05-29 21:45:52 +05:30
export const GLOSSARY _NAME _MAX _LENGTH _VALIDATION _ERROR =
'Name can be a maximum of 128 characters' ;