/* * Copyright 2024 Collate. * 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. */ import { uuid } from '../utils/common'; import { GlobalSettingOptions } from './settings'; export const SERVICE_TYPE = { Database: GlobalSettingOptions.DATABASES, Messaging: GlobalSettingOptions.MESSAGING, Dashboard: GlobalSettingOptions.DASHBOARDS, Pipeline: GlobalSettingOptions.PIPELINES, MLModels: GlobalSettingOptions.MLMODELS, Storage: GlobalSettingOptions.STORAGES, Search: GlobalSettingOptions.SEARCH, Metadata: GlobalSettingOptions.METADATA, StoredProcedure: GlobalSettingOptions.STORED_PROCEDURES, ApiService: GlobalSettingOptions.APIS, }; const uniqueID = uuid(); export const REDSHIFT = { serviceType: 'Redshift', serviceName: `redshift-ct-test-${uniqueID}`, tableName: 'raw_payments', DBTTable: 'customers', description: `This is Redshift-ct-test-${uniqueID} description`, }; export const POSTGRES = { serviceType: 'Postgres', serviceName: `pw-postgres-test-${uuid()}`, tableName: 'order_items', }; export const HTTP_CONFIG_SOURCE = { DBT_CATALOG_HTTP_PATH: 'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/dbt_aut/catalog.json', DBT_MANIFEST_HTTP_PATH: 'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/dbt_aut/manifest.json', DBT_RUN_RESULTS_FILE_PATH: 'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/dbt_aut/run_results.json', }; export const DBT = { classification: 'dbtTags', tagName: 'model_tag_two', dbtQuery: 'select * from "dev"."dbt_automate_upgrade_tests"."stg_orders"', dbtLineageNodeLabel: 'customers', dbtLineageNode: 'dev.dbt_automate_upgrade_tests.stg_customers', dataQualityTest1: 'unique_customers_customer_id', dataQualityTest2: 'not_null_customers_customer_id', };