From 674c61997eb051c4a4f865f688b21a43904e4e4c Mon Sep 17 00:00:00 2001 From: anders-albert Date: Sun, 2 Mar 2025 16:24:28 +0100 Subject: [PATCH] refactor: deleted unused snapshots --- .../describe_datamodel.txt | 109 -- .../describe_datamodel.yaml | 4 - .../describe_datamodel_windows.txt | 109 -- .../datamodel_graphql.yaml | 8 - .../timeseries_datapoints.yaml | 14 - .../cdf_apm_simple_data_model.yaml | 1 - .../cdf_asset_source_model.yaml | 1 - .../cdf_core_extension.yaml | 1 - .../cdf_core_extension_full.yaml | 1 - .../cdf_functions_dummy.yaml | 1 - .../cdf_idp_default.yaml | 1 - .../cdf_infield_location_2.yaml | 7 - .../cdf_location_example.yaml | 1 - .../cdf_location_filter_view_based.yaml | 1 - .../cdf_timeseries_equipment_sql.yaml | 1 - .../core_extension.yaml | 1 - .../enterprise.yaml | 1 - .../example_pump_data_model.yaml | 1 - .../idm_extension.yaml | 1 - .../my_example_module.yaml | 1 - .../my_location_filter.yaml | 1 - .../p_and_id_parser.yaml | 1 - .../test_build_clean_snapshots/pi.yaml | 1 - .../test_build_clean_snapshots/sap.yaml | 1 - .../sap_assets.yaml | 1 - .../sap_events.yaml | 1 - .../test_build_clean_snapshots/search.yaml | 1 - .../sharepoint.yaml | 1 - .../cdf_apm_simple.yaml | 1650 ----------------- .../cdf_apm_simple_data_model.yaml | 1039 ----------- .../cdf_asset_source_model.yaml | 115 -- .../cdf_core_extension.yaml | 644 ------- .../cdf_core_extension_full.yaml | 1551 ---------------- .../cdf_data_pipeline_asset_debug.yaml | 71 - .../cdf_functions_dummy.yaml | 40 - .../cdf_idp_default.yaml | 1 - .../cdf_infield_location_2.yaml | 497 ----- .../cdf_location_example.yaml | 44 - .../cdf_location_filter_view_based.yaml | 19 - .../test_build_deploy_snapshots/cdf_sap.yaml | 248 --- .../cdf_timeseries_equipment_sql.yaml | 82 - 41 files changed, 6274 deletions(-) delete mode 100644 tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.txt delete mode 100644 tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.yaml delete mode 100644 tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel_windows.txt delete mode 100644 tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/datamodel_graphql.yaml delete mode 100644 tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/timeseries_datapoints.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_apm_simple_data_model.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_asset_source_model.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension_full.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_functions_dummy.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_idp_default.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_infield_location_2.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_example.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_filter_view_based.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/cdf_timeseries_equipment_sql.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/core_extension.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/enterprise.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/example_pump_data_model.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/idm_extension.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/my_example_module.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/my_location_filter.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/p_and_id_parser.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/pi.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/sap.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/sap_assets.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/sap_events.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/search.yaml delete mode 100644 tests/test_unit/test_cli/test_build_clean_snapshots/sharepoint.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple_data_model.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_asset_source_model.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension_full.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_data_pipeline_asset_debug.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_functions_dummy.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_idp_default.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_infield_location_2.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_example.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_filter_view_based.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_sap.yaml delete mode 100644 tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_timeseries_equipment_sql.yaml diff --git a/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.txt b/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.txt deleted file mode 100644 index 6d7258088..000000000 --- a/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.txt +++ /dev/null @@ -1,109 +0,0 @@ -Describing data model test in space test in project test... -Verifying access rights... - Space test -┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Info ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Name │ test │ -│ Description │ Space for APM simple data model │ -│ Created time │ 2024-01-11 13:46:19 │ -│ Last updated time │ 2024-01-11 13:46:19 │ -│ Containers (3) │ Asset │ -│ │ WorkItem │ -│ │ WorkOrder │ -└───────────────────┴─────────────────────────────────┘ - Data model apm_simple in space test -┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓ -┃ Info ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩ -│ Description │ None │ -│ Version │ 1 │ -│ Global │ False │ -│ Created time │ 2024-01-11 13:46:19 │ -│ Last updated time │ 2024-01-11 13:46:19 │ -│ Number of views │ 3 │ -│ List of views │ Asset │ -│ │ WorkItem │ -│ │ WorkOrder │ -└───────────────────┴─────────────────────┘ - View Asset, version 1 in space test -┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Info ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Number of properties │ 13 │ -│ Used for │ node │ -│ Implements │ │ -│ List of properties │ areaId │ -│ │ categoryId │ -│ │ children │ -│ │ createdDate │ -│ │ description │ -│ │ documents │ -│ │ isActive │ -│ │ isCriticalLine │ -│ │ metrics │ -│ │ parent │ -│ │ sourceDb │ -│ │ tag │ -│ │ updatedDate │ -│ Direct relations(1) │ parent --> no source │ -│ Edge relations(1) │ children -- outwards --> (test, Asset, 1) │ -│ Number of nodes │ 1 │ -└──────────────────────┴───────────────────────────────────────────┘ - View WorkItem, version 1 in space test -┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Info ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Number of properties │ 10 │ -│ Used for │ node │ -│ Implements │ │ -│ List of properties │ criticality │ -│ │ description │ -│ │ isCompleted │ -│ │ itemInfo │ -│ │ itemName │ -│ │ linkedAssets │ -│ │ method │ -│ │ title │ -│ │ toBeDone │ -│ │ workOrder │ -│ Direct relations(1) │ workOrder --> no source │ -│ Edge relations(1) │ linkedAssets -- outwards --> (test, Asset, │ -│ │ {{view_Asset_version}}) │ -│ Number of nodes │ 1 │ -└──────────────────────┴───────────────────────────────────────────────────────┘ - View WorkOrder, version 1 in space test -┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Info ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Number of properties │ 21 │ -│ Used for │ node │ -│ Implements │ │ -│ List of properties │ actualHours │ -│ │ createdDate │ -│ │ description │ -│ │ dueDate │ -│ │ durationHours │ -│ │ endTime │ -│ │ isActive │ -│ │ isCancelled │ -│ │ isCompleted │ -│ │ isSafetyCritical │ -│ │ linkedAssets │ -│ │ percentageProgress │ -│ │ plannedStart │ -│ │ priorityDescription │ -│ │ programNumber │ -│ │ startTime │ -│ │ status │ -│ │ title │ -│ │ workItems │ -│ │ workOrderNumber │ -│ │ workPackageNumber │ -│ Direct relations(0) │ │ -│ Edge relations(2) │ linkedAssets -- outwards --> (test, Asset, │ -│ │ 8069f1498c7f9a) │ -│ │ workItems -- outwards --> (test, WorkItem, │ -│ │ 94d2b7121128a2) │ -│ Number of nodes │ 1 │ -└──────────────────────┴───────────────────────────────────────────────────────┘ \ No newline at end of file diff --git a/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.yaml b/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.yaml deleted file mode 100644 index 88561b08c..000000000 --- a/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel.yaml +++ /dev/null @@ -1,4 +0,0 @@ -Container: 1 -DataModel: 1 -Space: 1 -View: 1 diff --git a/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel_windows.txt b/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel_windows.txt deleted file mode 100644 index 9b77e9c9c..000000000 --- a/tests/test_unit/test_cdf_tk/snapshots/describe_data_snapshots/describe_datamodel_windows.txt +++ /dev/null @@ -1,109 +0,0 @@ -Describing data model test in space test in project test... -Verifying access rights... - Space test -┌───────────────────┬─────────────────────────────────┐ -│ Info │ Value │ -├───────────────────┼─────────────────────────────────┤ -│ Name │ test │ -│ Description │ Space for APM simple data model │ -│ Created time │ 2024-01-11 13:46:19 │ -│ Last updated time │ 2024-01-11 13:46:19 │ -│ Containers (3) │ Asset │ -│ │ WorkItem │ -│ │ WorkOrder │ -└───────────────────┴─────────────────────────────────┘ - Data model apm_simple in space test -┌───────────────────┬─────────────────────┐ -│ Info │ Value │ -├───────────────────┼─────────────────────┤ -│ Description │ None │ -│ Version │ 1 │ -│ Global │ False │ -│ Created time │ 2024-01-11 13:46:19 │ -│ Last updated time │ 2024-01-11 13:46:19 │ -│ Number of views │ 3 │ -│ List of views │ Asset │ -│ │ WorkItem │ -│ │ WorkOrder │ -└───────────────────┴─────────────────────┘ - View Asset, version 1 in space test -┌──────────────────────┬───────────────────────────────────────────┐ -│ Info │ Value │ -├──────────────────────┼───────────────────────────────────────────┤ -│ Number of properties │ 13 │ -│ Used for │ node │ -│ Implements │ │ -│ List of properties │ areaId │ -│ │ categoryId │ -│ │ children │ -│ │ createdDate │ -│ │ description │ -│ │ documents │ -│ │ isActive │ -│ │ isCriticalLine │ -│ │ metrics │ -│ │ parent │ -│ │ sourceDb │ -│ │ tag │ -│ │ updatedDate │ -│ Direct relations(1) │ parent --> no source │ -│ Edge relations(1) │ children -- outwards --> (test, Asset, 1) │ -│ Number of nodes │ 1 │ -└──────────────────────┴───────────────────────────────────────────┘ - View WorkItem, version 1 in space test -┌──────────────────────┬──────────────────────────────────────────────────────┐ -│ Info │ Value │ -├──────────────────────┼──────────────────────────────────────────────────────┤ -│ Number of properties │ 10 │ -│ Used for │ node │ -│ Implements │ │ -│ List of properties │ criticality │ -│ │ description │ -│ │ isCompleted │ -│ │ itemInfo │ -│ │ itemName │ -│ │ linkedAssets │ -│ │ method │ -│ │ title │ -│ │ toBeDone │ -│ │ workOrder │ -│ Direct relations(1) │ workOrder --> no source │ -│ Edge relations(1) │ linkedAssets -- outwards --> (test, Asset, │ -│ │ {{view_Asset_version}}) │ -│ Number of nodes │ 1 │ -└──────────────────────┴──────────────────────────────────────────────────────┘ - View WorkOrder, version 1 in space test -┌──────────────────────┬──────────────────────────────────────────────────────┐ -│ Info │ Value │ -├──────────────────────┼──────────────────────────────────────────────────────┤ -│ Number of properties │ 21 │ -│ Used for │ node │ -│ Implements │ │ -│ List of properties │ actualHours │ -│ │ createdDate │ -│ │ description │ -│ │ dueDate │ -│ │ durationHours │ -│ │ endTime │ -│ │ isActive │ -│ │ isCancelled │ -│ │ isCompleted │ -│ │ isSafetyCritical │ -│ │ linkedAssets │ -│ │ percentageProgress │ -│ │ plannedStart │ -│ │ priorityDescription │ -│ │ programNumber │ -│ │ startTime │ -│ │ status │ -│ │ title │ -│ │ workItems │ -│ │ workOrderNumber │ -│ │ workPackageNumber │ -│ Direct relations(0) │ │ -│ Edge relations(2) │ linkedAssets -- outwards --> (test, Asset, │ -│ │ 8069f1498c7f9a) │ -│ │ workItems -- outwards --> (test, WorkItem, │ -│ │ 94d2b7121128a2) │ -│ Number of nodes │ 1 │ -└──────────────────────┴──────────────────────────────────────────────────────┘ \ No newline at end of file diff --git a/tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/datamodel_graphql.yaml b/tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/datamodel_graphql.yaml deleted file mode 100644 index 2629a2b83..000000000 --- a/tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/datamodel_graphql.yaml +++ /dev/null @@ -1,8 +0,0 @@ -DataModel: -- args: - - - test_space - - test_model - - '1' - description: Data model for test_model - dml: "type MyType {\n myField: String\n myOtherField: Int\n}\n" - name: test_model diff --git a/tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/timeseries_datapoints.yaml b/tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/timeseries_datapoints.yaml deleted file mode 100644 index 59ae3be71..000000000 --- a/tests/test_unit/test_cdf_tk/snapshots/load_data_snapshots/timeseries_datapoints.yaml +++ /dev/null @@ -1,14 +0,0 @@ -Datapoints: -- args: [] - dataframe: - empty_count: 0 - first_row: - Value: 1 - index_name: missing - last_row: - Value: 10 - nan_count: 0 - null_count: 0 - shape: 10x1 - kwargs: {} - name: missing diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_apm_simple_data_model.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_apm_simple_data_model.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_apm_simple_data_model.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_asset_source_model.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_asset_source_model.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_asset_source_model.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension_full.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension_full.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_core_extension_full.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_functions_dummy.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_functions_dummy.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_functions_dummy.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_idp_default.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_idp_default.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_idp_default.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_infield_location_2.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_infield_location_2.yaml deleted file mode 100644 index 129f1aed7..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_infield_location_2.yaml +++ /dev/null @@ -1,7 +0,0 @@ -deleted: - Space: - - sp_asset_oid2_source - - sp_infield_oid2_app_data - TransformationSchedule: - - externalId: tr_asset_oid2_workmate_infield_sync_assets_from_hierarchy_to_apm - - externalId: tr_workorder_oid2_workmate_infield_sync_workorders_to_apm_activities diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_example.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_example.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_example.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_filter_view_based.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_filter_view_based.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_location_filter_view_based.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_timeseries_equipment_sql.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_timeseries_equipment_sql.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/cdf_timeseries_equipment_sql.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/core_extension.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/core_extension.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/core_extension.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/enterprise.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/enterprise.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/enterprise.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/example_pump_data_model.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/example_pump_data_model.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/example_pump_data_model.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/idm_extension.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/idm_extension.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/idm_extension.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/my_example_module.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/my_example_module.yaml deleted file mode 100644 index f6f3b6f44..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/my_example_module.yaml +++ /dev/null @@ -1 +0,0 @@ -deleted: {} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/my_location_filter.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/my_location_filter.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/my_location_filter.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/p_and_id_parser.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/p_and_id_parser.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/p_and_id_parser.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/pi.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/pi.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/pi.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/sap.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/sap.yaml deleted file mode 100644 index f6f3b6f44..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/sap.yaml +++ /dev/null @@ -1 +0,0 @@ -deleted: {} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/sap_assets.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/sap_assets.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/sap_assets.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/sap_events.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/sap_events.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/sap_events.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/search.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/search.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/search.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_clean_snapshots/sharepoint.yaml b/tests/test_unit/test_cli/test_build_clean_snapshots/sharepoint.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_clean_snapshots/sharepoint.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple.yaml deleted file mode 100644 index 8095b5f7e..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple.yaml +++ /dev/null @@ -1,1650 +0,0 @@ -Container: -- externalId: Asset - name: Asset - properties: - areaId: - autoIncrement: false - name: areaId - nullable: true - type: - list: false - type: int32 - categoryId: - autoIncrement: false - name: categoryId - nullable: true - type: - list: false - type: int32 - createdDate: - autoIncrement: false - name: createdDate - nullable: true - type: - list: false - type: timestamp - description: - autoIncrement: false - name: description - nullable: true - type: - collation: ucs_basic - list: false - type: text - documents: - autoIncrement: false - name: documents - nullable: true - type: - list: true - type: file - isActive: - autoIncrement: false - name: isActive - nullable: true - type: - list: false - type: boolean - isCriticalLine: - autoIncrement: false - name: isCriticalLine - nullable: true - type: - list: false - type: boolean - metrics: - autoIncrement: false - name: metrics - nullable: true - type: - list: true - type: timeseries - parent: - autoIncrement: false - name: parent - nullable: true - type: - type: direct - sourceDb: - autoIncrement: false - name: sourceDb - nullable: true - type: - collation: ucs_basic - list: false - type: text - tag: - autoIncrement: false - name: tag - nullable: true - type: - collation: ucs_basic - list: false - type: text - updatedDate: - autoIncrement: false - name: updatedDate - nullable: true - type: - list: false - type: timestamp - space: apm_simple - usedFor: node -- externalId: WorkItem - name: WorkItem - properties: - criticality: - autoIncrement: false - name: criticality - nullable: true - type: - collation: ucs_basic - list: false - type: text - description: - autoIncrement: false - name: description - nullable: true - type: - collation: ucs_basic - list: false - type: text - isCompleted: - autoIncrement: false - name: isCompleted - nullable: true - type: - list: false - type: boolean - itemInfo: - autoIncrement: false - name: itemInfo - nullable: true - type: - collation: ucs_basic - list: false - type: text - itemName: - autoIncrement: false - name: itemName - nullable: true - type: - collation: ucs_basic - list: false - type: text - method: - autoIncrement: false - name: method - nullable: true - type: - collation: ucs_basic - list: false - type: text - title: - autoIncrement: false - name: title - nullable: true - type: - collation: ucs_basic - list: false - type: text - toBeDone: - autoIncrement: false - name: toBeDone - nullable: true - type: - list: false - type: boolean - workOrder: - autoIncrement: false - name: workOrder - nullable: true - type: - type: direct - space: apm_simple - usedFor: node -- externalId: WorkOrder - name: WorkOrder - properties: - actualHours: - autoIncrement: false - name: actualHours - nullable: true - type: - list: false - type: int32 - createdDate: - autoIncrement: false - name: createdDate - nullable: true - type: - list: false - type: timestamp - description: - autoIncrement: false - name: description - nullable: true - type: - collation: ucs_basic - list: false - type: text - dueDate: - autoIncrement: false - name: dueDate - nullable: true - type: - list: false - type: timestamp - durationHours: - autoIncrement: false - name: durationHours - nullable: true - type: - list: false - type: int32 - endTime: - autoIncrement: false - name: endTime - nullable: true - type: - list: false - type: timestamp - isActive: - autoIncrement: false - name: isActive - nullable: true - type: - list: false - type: boolean - isCancelled: - autoIncrement: false - name: isCancelled - nullable: true - type: - list: false - type: boolean - isCompleted: - autoIncrement: false - name: isCompleted - nullable: true - type: - list: false - type: boolean - isSafetyCritical: - autoIncrement: false - name: isSafetyCritical - nullable: true - type: - list: false - type: boolean - percentageProgress: - autoIncrement: false - name: percentageProgress - nullable: true - type: - list: false - type: int32 - plannedStart: - autoIncrement: false - name: plannedStart - nullable: true - type: - list: false - type: timestamp - priorityDescription: - autoIncrement: false - name: priorityDescription - nullable: true - type: - collation: ucs_basic - list: false - type: text - programNumber: - autoIncrement: false - name: programNumber - nullable: true - type: - collation: ucs_basic - list: false - type: text - startTime: - autoIncrement: false - name: startTime - nullable: true - type: - list: false - type: timestamp - status: - autoIncrement: false - name: status - nullable: true - type: - collation: ucs_basic - list: false - type: text - title: - autoIncrement: false - name: title - nullable: true - type: - collation: ucs_basic - list: false - type: text - workOrderNumber: - autoIncrement: false - name: workOrderNumber - nullable: true - type: - collation: ucs_basic - list: false - type: text - workPackageNumber: - autoIncrement: false - name: workPackageNumber - nullable: true - type: - collation: ucs_basic - list: false - type: text - space: apm_simple - usedFor: node -DataModel: -- externalId: apm_simple - name: apm_simple - space: apm_simple - version: '1' - views: - - externalId: Asset - space: apm_simple - type: view - version: '1' - - externalId: WorkOrder - space: apm_simple - type: view - version: '1' - - externalId: WorkItem - space: apm_simple - type: view - version: '1' -Row: -- args: [] - columns: - - key - - externalId - - sourceExternalId - - targetExternalId - dataframe: 65045431972253372923239764963735693788120831221123132526172499668461365615556 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: asset2children - name: apm_simple_asset2children_True -- args: [] - columns: - - key - - categoryId - - sourceDb - - parentExternalId - - updatedDate - - createdDate - - externalId - - isCriticalLine - - description - - tag - - areaId - - isActive - dataframe: 94430041190918800494911115394739451784112572138295829851999408806509502700252 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: assets - name: apm_simple_assets_True -- args: [] - columns: - - timeseries - - asset - dataframe: 55950994081533176249747558585122252386224890969921942100864987065996004229529 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: timeseries2assets - name: apm_simple_timeseries2assets_True -- args: [] - columns: - - key - - externalId - - sourceExternalId - - targetExternalId - dataframe: 70999460826851891666355556169020792890288256089899308969084950738510319920668 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: workitem2assets - name: apm_simple_workitem2assets_True -- args: [] - columns: - - key - - startTime - - externalId - - description - - workOrder - - toBeDone - - endTime - - itemInfo - - itemName - - title - - criticality - - method - - isCompleted - dataframe: 15402156880038161691649867030405339701750462867801433644546809449178377662691 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: workitems - name: apm_simple_workitems_True -- args: [] - columns: - - key - - externalId - - sourceExternalId - - targetExternalId - dataframe: 18638660796871288518235232457006931572805212660330594264228924851739487286440 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: workorder2assets - name: apm_simple_workorder2assets_True -- args: [] - columns: - - key - - externalId - - sourceExternalId - - targetExternalId - dataframe: 87761117627110273022694517750470728190726449018707882989068562732740921122223 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: workorder2items - name: apm_simple_workorder2items_True -- args: [] - columns: - - key - - isCompleted - - plannedStart - - externalId - - isSafetyCritical - - workPackageNumber - - endTime - - status - - durationHours - - workOrderNumber - - title - - percentageProgress - - startTime - - actualHours - - description - - isCancelled - - isActive - - priorityDescription - - dueDate - - createdDate - - programNumber - dataframe: 39027066751652190754154965909250931653588743896956924953253757672617848762589 - kwargs: - db_name: apm_simple - ensure_parent: true - table_name: workorders - name: apm_simple_workorders_True -Space: -- description: Imported space - name: apm_simple - space: apm_simple -TimeSeries: -- dataSetId: 999 - description: PH 1st Stg Disch Gas Coolers - externalId: pi_160633 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 23-PDT-92602 - convers: '1' - descriptor: PH 1st Stg Disch Gas Coolers - digitalset: '' - displaydigits: '-5' - engunits: '' - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 23-PDT-92602:X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '160633' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '145133' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_23-PDT-92602:X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_23-PDT-92602:X.Value -- dataSetId: 999 - description: PH 1stStgSuctCool Gas Out - externalId: pi_160696 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 23-PT-92504 - convers: '1' - descriptor: PH 1stStgSuctCool Gas Out - digitalset: '' - displaydigits: '-5' - engunits: '' - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 23-PT-92504:X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '160696' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '145196' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_23-PT-92504:X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_23-PT-92504:X.Value -- dataSetId: 999 - description: PH 1stStgComp Discharge - externalId: pi_160702 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 23-PT-92536 - convers: '1' - descriptor: PH 1stStgComp Discharge - digitalset: '' - displaydigits: '-5' - engunits: bar - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 23-PT-92536:X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '160702' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '145202' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_23-PT-92536:X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_23-PT-92536:X.Value - unit: bar -- dataSetId: 999 - description: PH 1stStgSuctCool Gas Out Measured Value - externalId: pi_160781 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 23-TIC-92504 - convers: '1' - descriptor: PH 1stStgSuctCool Gas Out Measured Value - digitalset: '' - displaydigits: '-5' - engunits: degC - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 23-TIC-92504:Z.X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '160781' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '145281' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_23-TIC-92504:Z.X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_23-TIC-92504:Z.X.Value - unit: degC -- dataSetId: 999 - description: PH 1stStgDiscCool CM Out - externalId: pi_163582 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 45-PT-92608 - convers: '1' - descriptor: PH 1stStgDiscCool CM Out - digitalset: '' - displaydigits: '-5' - engunits: '' - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 45-PT-92608:X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '163582' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '148082' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_45-PT-92608:X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_45-PT-92608:X.Value -- dataSetId: 999 - description: PH 1stStgDiscClr CoolMed Sply - externalId: pi_163657 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 45-TT-92606 - convers: '1' - descriptor: PH 1stStgDiscClr CoolMed Sply - digitalset: '' - displaydigits: '-5' - engunits: '' - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 45-TT-92606:X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '163657' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '148157' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_45-TT-92606:X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_45-TT-92606:X.Value -- dataSetId: 999 - description: PH 1stStgDiscCool Gas Out Output - externalId: pi_191092 - isStep: false - isString: false - metadata: - archiving: '1' - compdev: '0' - compdevpercent: '0' - compmax: '3600' - compmin: '0' - compressing: '0' - contextAgent: PI contextualization pipeline - contextAlgorithm: Exact match - contextClass: VAL - contextConfidenceScore: '1' - contextMatchString: 23-TT-92604A - convers: '1' - descriptor: PH 1stStgDiscCool Gas Out Output - digitalset: '' - displaydigits: '-5' - engunits: degC - excdev: '0' - excdevpercent: '0' - excmax: '0' - excmin: '0' - exdesc: '' - filtercode: '0' - future: '0' - instrumenttag: 23-TT-92604A:X.Value - location1: '1' - location2: '0' - location3: '7' - location4: '1' - location5: '2' - pointid: '191092' - pointsource: VLH_PCN1 - pointtype: Float32 - ptclassid: '2' - ptclassname: classic - ptclassrev: '1' - recno: '175484' - scan: '1' - shutdown: '0' - sourcetag: '' - span: '100' - squareroot: '0' - srcptid: '0' - step: '0' - tag: VAL_23-TT-92604A:X.Value - totalcode: '0' - typicalvalue: '50' - userint1: '0' - userint2: '0' - userreal1: '0' - userreal2: '0' - zero: '0' - name: VAL_23-TT-92604A:X.Value - unit: degC -Transformation: -- conflictMode: upsert - dataSetId: 999 - destination: - type: asset_hierarchy - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-asset-hierarchy - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Asset-hierarchy - ownerIsCurrentUser: true - query: "select\n cast(`externalId` as STRING) as externalId,\n cast(`externalId`\ - \ as STRING) as name,\n cast(`description` as STRING) as description,\n cast(`sourceDb`\ - \ as STRING) as source,\n cast(`parentExternalId` as STRING) as parentExternalId\n\ - from\n `apm_simple`.`assets`;\n" - schedule: - externalId: apm_simple-load-asset-hierarchy - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: children - destinationType: Asset - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-asset2children - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Asset2children - ownerIsCurrentUser: true - query: "select\n cast(`externalId` as STRING) as externalId,\n node_reference('apm_simple',\ - \ `sourceExternalId`) as startNode,\n node_reference('apm_simple', `targetExternalId`)\ - \ as endNode\nfrom\n `apm_simple`.`asset2children`;\n" - schedule: - externalId: apm_simple-load-asset2children - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- conflictMode: upsert - dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: null - destinationType: Asset - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-assets - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Assets - ownerIsCurrentUser: true - query: "select\n cast(`externalId` as STRING) as externalId,\n cast(`categoryId`\ - \ as INT) as categoryId,\n cast(`isCriticalLine` as BOOLEAN) as isCriticalLine,\n\ - \ cast(`sourceDb` as STRING) as sourceDb,\n cast(`updatedDate` as TIMESTAMP)\ - \ as updatedDate,\n cast(`createdDate` as TIMESTAMP) as createdDate,\n node_reference('apm_simple',\ - \ `parentExternalId`) as parent,\n cast(`description` as STRING) as description,\n\ - \ cast(`tag` as STRING) as tag,\n cast(`areaId` as INT) as areaId,\n cast(`isActive`\ - \ as BOOLEAN) as isActive\nfrom\n `apm_simple`.`assets`;\n" - schedule: - externalId: apm_simple-load-assets - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: null - destinationType: Asset - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-timeseries2assets - ignoreNullFields: true - isPublic: true - name: apm_simple-load-timeseries2assets - ownerIsCurrentUser: true - query: "select\n cast(`asset` as STRING) as externalId,\n array(timeseries) as\ - \ metrics\nfrom\n `apm_simple`.`timeseries2assets`;\n" - schedule: - externalId: apm_simple-load-timeseries2assets - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: null - destinationType: WorkItem - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-workitems - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Workitems - ownerIsCurrentUser: true - query: "select\n cast(`externalId` as STRING) as externalId,\n cast(`description`\ - \ as STRING) as description,\n node_reference('apm_simple', `workOrder`) as workOrder,\n\ - \ cast(`toBeDone` as BOOLEAN) as toBeDone,\n cast(`itemInfo` as STRING) as itemInfo,\n\ - \ cast(`itemName` as STRING) as itemName,\n cast(`title` as STRING) as title,\n\ - \ cast(`criticality` as STRING) as criticality,\n cast(`method` as STRING) as\ - \ method,\n cast(`isCompleted` as BOOLEAN) as isCompleted\nfrom\n `apm_simple`.`workitems`;\n" - schedule: - externalId: apm_simple-load-workitems - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: linkedAssets - destinationType: WorkItem - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-workitems2assets - ignoreNullFields: true - isPublic: true - name: apm_simple-load-workitems2assets - ownerIsCurrentUser: true - query: "/* MAPPING_MODE_ENABLED: true */ /* {\"version\":1,\"sourceType\":\"raw\"\ - ,\"mappings\":[ {\"from\":\"externalId\",\"to\":\"externalId\",\"asType\":\"STRING\"\ - }, {\"from\":\"sourceExternalId\",\"to\":\"startNode\",\"asType\":\"STRUCT<`space`:STRING,\ - \ `externalId`:STRING>\"}, {\"from\":\"targetExternalId\",\"to\":\"endNode\",\"\ - asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"}], \"sourceLevel1\":\"\ - tutorial_apm\",\"sourceLevel2\":\"workitem2assets\"} */ select\n cast(`externalId`\ - \ as STRING) as externalId,\n node_reference('apm_simple', `sourceExternalId`)\ - \ as startNode,\n node_reference('apm_simple', `targetExternalId`) as endNode\n\ - from\n `apm_simple`.`workitem2assets`;\n" - schedule: - externalId: apm_simple-load-workitems2assets - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: workItems - destinationType: WorkOrder - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-workitems2workorders - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Workitems2workorders - ownerIsCurrentUser: true - query: "/* MAPPING_MODE_ENABLED: true */ /* {\"version\":1,\"sourceType\":\"raw\"\ - ,\"mappings\":[ {\"from\":\"externalId\",\"to\":\"externalId\",\"asType\":\"STRING\"\ - }, {\"from\":\"sourceExternalId\",\"to\":\"startNode\",\"asType\":\"STRUCT<`space`:STRING,\ - \ `externalId`:STRING>\"}, {\"from\":\"targetExternalId\",\"to\":\"endNode\",\"\ - asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"}], \"sourceLevel1\":\"\ - tutorial_apm\",\"sourceLevel2\":\"workorder2items\"} */ select\n cast(`externalId`\ - \ as STRING) as externalId,\n node_reference('apm_simple', `sourceExternalId`)\ - \ as startNode,\n node_reference('apm_simple', `targetExternalId`) as endNode\n\ - from\n `apm_simple`.`workorder2items`;\n" - schedule: - externalId: apm_simple-load-workitems2workorders - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: null - destinationType: WorkOrder - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-workorders - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Workorders - ownerIsCurrentUser: true - query: "select \ncast(`externalId` as STRING) as externalId, \ncast(`isCompleted`\ - \ as BOOLEAN) as isCompleted, \ncast(`plannedStart` as TIMESTAMP) as plannedStart,\ - \ \ncast(`isSafetyCritical` as BOOLEAN) as isSafetyCritical, \ncast(`workPackageNumber`\ - \ as STRING) as workPackageNumber, \ncast(`endTime` as TIMESTAMP) as endTime,\ - \ \ncast(`status` as STRING) as status, \ncast(`durationHours` as INT) as durationHours,\ - \ \ncast(`workOrderNumber` as STRING) as workOrderNumber, \ncast(`title` as STRING)\ - \ as title, \ncast(`percentageProgress` as INT) as percentageProgress, \ncast(`startTime`\ - \ as TIMESTAMP) as startTime, \ncast(`actualHours` as INT) as actualHours, \n\ - cast(`description` as STRING) as description, \ncast(`isCancelled` as BOOLEAN)\ - \ as isCancelled, \ncast(`isActive` as BOOLEAN) as isActive, \ncast(`priorityDescription`\ - \ as STRING) as priorityDescription, \ncast(`dueDate` as TIMESTAMP) as dueDate,\ - \ \ncast(`createdDate` as TIMESTAMP) as createdDate, \ncast(`programNumber` as\ - \ STRING) as programNumber \nfrom `apm_simple`.`workorders`;\n" - schedule: - externalId: apm_simple-load-workorders - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -- dataSetId: 999 - destination: - dataModel: - destinationRelationshipFromType: linkedAssets - destinationType: WorkOrder - externalId: apm_simple - space: apm_simple - version: '1' - instanceSpace: apm_simple - type: instances - destinationOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} - externalId: apm_simple-load-workorders2assets - ignoreNullFields: true - isPublic: true - name: apm_simple-load-Workorders2assets - ownerIsCurrentUser: true - query: "select\n cast(`externalId` as STRING) as externalId,\n node_reference('apm_simple',\ - \ `sourceExternalId`) as startNode,\n node_reference('apm_simple', `targetExternalId`)\ - \ as endNode\nfrom\n `apm_simple`.`workorder2assets`;\n" - schedule: - externalId: apm_simple-load-workorders2assets - interval: 7 * * * * - isPaused: true - sourceOidcCredentials: - audience: ${IDP_AUDIENCE} - cdfProjectName: ${CDF_PROJECT} - clientId: ${IDP_CLIENT_ID} - clientSecret: ${IDP_CLIENT_SECRET} - scopes: ${IDP_SCOPES} - tokenUri: ${IDP_TOKEN_URL} -TransformationSchedule: -- externalId: apm_simple-load-asset-hierarchy - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-asset2children - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-assets - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-timeseries2assets - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-workitems - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-workitems2assets - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-workitems2workorders - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-workorders - interval: 7 * * * * - isPaused: true -- externalId: apm_simple-load-workorders2assets - interval: 7 * * * * - isPaused: true -View: -- externalId: Asset - name: Asset - properties: - areaId: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: areaId - name: areaId - categoryId: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: categoryId - name: categoryId - children: - connectionType: multiEdgeConnection - direction: outwards - name: children - source: - externalId: Asset - space: apm_simple - type: view - version: '1' - type: - externalId: Asset.children - space: apm_simple - createdDate: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: createdDate - name: createdDate - description: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: description - name: description - documents: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: documents - name: documents - isActive: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: isActive - name: isActive - isCriticalLine: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: isCriticalLine - name: isCriticalLine - metrics: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: metrics - name: metrics - parent: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: parent - name: parent - sourceDb: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: sourceDb - name: sourceDb - tag: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: tag - name: tag - updatedDate: - container: - externalId: Asset - space: apm_simple - type: container - containerPropertyIdentifier: updatedDate - name: updatedDate - space: apm_simple - version: '1' -- externalId: WorkItem - name: WorkItem - properties: - criticality: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: criticality - name: criticality - description: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: description - name: description - isCompleted: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: isCompleted - name: isCompleted - itemInfo: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: itemInfo - name: itemInfo - itemName: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: itemName - name: itemName - linkedAssets: - connectionType: multiEdgeConnection - direction: outwards - name: linkedAssets - source: - externalId: Asset - space: apm_simple - type: view - version: '1' - type: - externalId: WorkItem.linkedAssets - space: apm_simple - method: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: method - name: method - title: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: title - name: title - toBeDone: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: toBeDone - name: toBeDone - workOrder: - container: - externalId: WorkItem - space: apm_simple - type: container - containerPropertyIdentifier: workOrder - name: workOrder - space: apm_simple - version: '1' -- externalId: WorkOrder - name: WorkOrder - properties: - actualHours: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: actualHours - name: actualHours - createdDate: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: createdDate - name: createdDate - description: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: description - name: description - dueDate: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: dueDate - name: dueDate - durationHours: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: durationHours - name: durationHours - endTime: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: endTime - name: endTime - isActive: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: isActive - name: isActive - isCancelled: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: isCancelled - name: isCancelled - isCompleted: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: isCompleted - name: isCompleted - isSafetyCritical: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: isSafetyCritical - name: isSafetyCritical - linkedAssets: - connectionType: multiEdgeConnection - direction: outwards - name: linkedAssets - source: - externalId: Asset - space: apm_simple - type: view - version: 8069f1498c7f9a - type: - externalId: WorkOrder.linkedAssets - space: apm_simple - percentageProgress: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: percentageProgress - name: percentageProgress - plannedStart: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: plannedStart - name: plannedStart - priorityDescription: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: priorityDescription - name: priorityDescription - programNumber: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: programNumber - name: programNumber - startTime: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: startTime - name: startTime - status: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: status - name: status - title: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: title - name: title - workItems: - connectionType: multiEdgeConnection - direction: outwards - name: workItems - source: - externalId: WorkItem - space: apm_simple - type: view - version: 94d2b7121128a2 - type: - externalId: WorkOrder.workItems - space: apm_simple - workOrderNumber: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: workOrderNumber - name: workOrderNumber - workPackageNumber: - container: - externalId: WorkOrder - space: apm_simple - type: container - containerPropertyIdentifier: workPackageNumber - name: workPackageNumber - space: apm_simple - version: '1' -deleted: - Container: - - externalId: Asset - space: apm_simple - type: container - - externalId: WorkItem - space: apm_simple - type: container - - externalId: WorkOrder - space: apm_simple - type: container - DataModel: - - externalId: apm_simple - space: apm_simple - type: datamodel - version: '1' - Table: - - db_name: apm_simple - name: - - asset2children - - assets - - timeseries2assets - - workitem2assets - - workitems - - workorder2assets - - workorder2items - - workorders - TimeSeries: - - externalId: pi_160633 - - externalId: pi_160696 - - externalId: pi_160702 - - externalId: pi_160781 - - externalId: pi_163582 - - externalId: pi_163657 - - externalId: pi_191092 - Transformation: - - externalId: apm_simple-load-asset-hierarchy - - externalId: apm_simple-load-asset2children - - externalId: apm_simple-load-assets - - externalId: apm_simple-load-timeseries2assets - - externalId: apm_simple-load-workitems - - externalId: apm_simple-load-workitems2assets - - externalId: apm_simple-load-workitems2workorders - - externalId: apm_simple-load-workorders - - externalId: apm_simple-load-workorders2assets - View: - - externalId: Asset - space: apm_simple - type: view - version: '1' - - externalId: WorkItem - space: apm_simple - type: view - version: '1' - - externalId: WorkOrder - space: apm_simple - type: view - version: '1' diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple_data_model.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple_data_model.yaml deleted file mode 100644 index 6bf5664a0..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_apm_simple_data_model.yaml +++ /dev/null @@ -1,1039 +0,0 @@ -Container: -- constraints: {} - externalId: Asset - indexes: {} - name: Asset - properties: - areaId: - autoIncrement: false - immutable: false - name: areaId - nullable: true - type: - list: false - type: int32 - categoryId: - autoIncrement: false - immutable: false - name: categoryId - nullable: true - type: - list: false - type: int32 - createdDate: - autoIncrement: false - immutable: false - name: createdDate - nullable: true - type: - list: false - type: timestamp - description: - autoIncrement: false - immutable: false - name: description - nullable: true - type: - collation: ucs_basic - list: false - type: text - documents: - autoIncrement: false - immutable: false - name: documents - nullable: true - type: - list: true - type: file - isActive: - autoIncrement: false - immutable: false - name: isActive - nullable: true - type: - list: false - type: boolean - isCriticalLine: - autoIncrement: false - immutable: false - name: isCriticalLine - nullable: true - type: - list: false - type: boolean - metrics: - autoIncrement: false - immutable: false - name: metrics - nullable: true - type: - list: true - type: timeseries - parent: - autoIncrement: false - immutable: false - name: parent - nullable: true - type: - list: false - type: direct - sourceDb: - autoIncrement: false - immutable: false - name: sourceDb - nullable: true - type: - collation: ucs_basic - list: false - type: text - tag: - autoIncrement: false - immutable: false - name: tag - nullable: true - type: - collation: ucs_basic - list: false - type: text - updatedDate: - autoIncrement: false - immutable: false - name: updatedDate - nullable: true - type: - list: false - type: timestamp - space: sp_apm_simple - usedFor: node -- constraints: {} - externalId: WorkItem - indexes: {} - name: WorkItem - properties: - criticality: - autoIncrement: false - immutable: false - name: criticality - nullable: true - type: - collation: ucs_basic - list: false - type: text - description: - autoIncrement: false - immutable: false - name: description - nullable: true - type: - collation: ucs_basic - list: false - type: text - isCompleted: - autoIncrement: false - immutable: false - name: isCompleted - nullable: true - type: - list: false - type: boolean - itemInfo: - autoIncrement: false - immutable: false - name: itemInfo - nullable: true - type: - collation: ucs_basic - list: false - type: text - itemName: - autoIncrement: false - immutable: false - name: itemName - nullable: true - type: - collation: ucs_basic - list: false - type: text - method: - autoIncrement: false - immutable: false - name: method - nullable: true - type: - collation: ucs_basic - list: false - type: text - title: - autoIncrement: false - immutable: false - name: title - nullable: true - type: - collation: ucs_basic - list: false - type: text - toBeDone: - autoIncrement: false - immutable: false - name: toBeDone - nullable: true - type: - list: false - type: boolean - workOrder: - autoIncrement: false - immutable: false - name: workOrder - nullable: true - type: - list: false - type: direct - space: sp_apm_simple - usedFor: node -- constraints: {} - externalId: WorkOrder - indexes: {} - name: WorkOrder - properties: - actualHours: - autoIncrement: false - immutable: false - name: actualHours - nullable: true - type: - list: false - type: int32 - createdDate: - autoIncrement: false - immutable: false - name: createdDate - nullable: true - type: - list: false - type: timestamp - description: - autoIncrement: false - immutable: false - name: description - nullable: true - type: - collation: ucs_basic - list: false - type: text - dueDate: - autoIncrement: false - immutable: false - name: dueDate - nullable: true - type: - list: false - type: timestamp - durationHours: - autoIncrement: false - immutable: false - name: durationHours - nullable: true - type: - list: false - type: int32 - endTime: - autoIncrement: false - immutable: false - name: endTime - nullable: true - type: - list: false - type: timestamp - isActive: - autoIncrement: false - immutable: false - name: isActive - nullable: true - type: - list: false - type: boolean - isCancelled: - autoIncrement: false - immutable: false - name: isCancelled - nullable: true - type: - list: false - type: boolean - isCompleted: - autoIncrement: false - immutable: false - name: isCompleted - nullable: true - type: - list: false - type: boolean - isSafetyCritical: - autoIncrement: false - immutable: false - name: isSafetyCritical - nullable: true - type: - list: false - type: boolean - percentageProgress: - autoIncrement: false - immutable: false - name: percentageProgress - nullable: true - type: - list: false - type: int32 - plannedStart: - autoIncrement: false - immutable: false - name: plannedStart - nullable: true - type: - list: false - type: timestamp - priorityDescription: - autoIncrement: false - immutable: false - name: priorityDescription - nullable: true - type: - collation: ucs_basic - list: false - type: text - programNumber: - autoIncrement: false - immutable: false - name: programNumber - nullable: true - type: - collation: ucs_basic - list: false - type: text - startTime: - autoIncrement: false - immutable: false - name: startTime - nullable: true - type: - list: false - type: timestamp - status: - autoIncrement: false - immutable: false - name: status - nullable: true - type: - collation: ucs_basic - list: false - type: text - title: - autoIncrement: false - immutable: false - name: title - nullable: true - type: - collation: ucs_basic - list: false - type: text - workOrderNumber: - autoIncrement: false - immutable: false - name: workOrderNumber - nullable: true - type: - collation: ucs_basic - list: false - type: text - workPackageNumber: - autoIncrement: false - immutable: false - name: workPackageNumber - nullable: true - type: - collation: ucs_basic - list: false - type: text - space: sp_apm_simple - usedFor: node -DataModel: -- externalId: apm_simple - name: apm_simple - space: sp_apm_simple - version: '1' - views: - - externalId: Asset - space: sp_apm_simple - type: view - version: '1' - - externalId: WorkOrder - space: sp_apm_simple - type: view - version: '1' - - externalId: WorkItem - space: sp_apm_simple - type: view - version: '1' -DataSet: -- description: This dataset contains transformations data for the oid location. - externalId: ds_transformations_oid - metadata: {} - name: transformations:oid - writeProtected: false -Space: -- description: Space for APM simple data model - name: sp_apm_simple - space: sp_apm_simple -Transformation: -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationRelationshipFromType: children - destinationType: Asset - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_asset_oid_workmate_apm_simple_load_asset2children - ignoreNullFields: true - isPublic: true - name: asset:oid:workmate:apm_simple:load_asset2children - query: "select\n cast(`externalId` as STRING) as externalId,\n node_reference('apm_simple',\ - \ `sourceExternalId`) as startNode,\n node_reference('apm_simple', `targetExternalId`)\ - \ as endNode\nfrom\n `asset_oid_workmate`.`asset2children`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationType: Asset - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_asset_oid_workmate_apm_simple_load_assets - ignoreNullFields: true - isPublic: true - name: asset:oid:workmate:apm_simple:load_assets - query: "select\n cast(`externalId` as STRING) as externalId,\n cast(`categoryId`\ - \ as INT) as categoryId,\n cast(`isCriticalLine` as BOOLEAN) as isCriticalLine,\n\ - \ cast(`sourceDb` as STRING) as sourceDb,\n cast(`updatedDate` as TIMESTAMP)\ - \ as updatedDate,\n cast(`createdDate` as TIMESTAMP) as createdDate,\n node_reference('apm_simple',\ - \ `parentExternalId`) as parent,\n cast(`description` as STRING) as description,\n\ - \ cast(`tag` as STRING) as tag,\n cast(`areaId` as INT) as areaId,\n cast(`isActive`\ - \ as BOOLEAN) as isActive\nfrom\n `asset_oid_workmate`.`assets`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationType: Asset - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_timeseries_oid_pi_apm_simple_load_timeseries2assets - ignoreNullFields: true - isPublic: true - name: timeseries:oid:pi:apm_simple:load_timeseries2assets - query: "select\n cast(`asset` as STRING) as externalId,\n array(timeseries) as\ - \ metrics\nfrom\n `files_oid_pi`.`timeseries2assets`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationType: WorkItem - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_workorder_oid_workmate_apm_simple_load_workitems - ignoreNullFields: true - isPublic: true - name: workorder:oid:workmate:apm_simple:load_workitems - query: "select\n cast(`externalId` as STRING) as externalId,\n cast(`description`\ - \ as STRING) as description,\n node_reference('apm_simple', `workOrder`) as workOrder,\n\ - \ cast(`toBeDone` as BOOLEAN) as toBeDone,\n cast(`itemInfo` as STRING) as itemInfo,\n\ - \ cast(`itemName` as STRING) as itemName,\n cast(`title` as STRING) as title,\n\ - \ cast(`criticality` as STRING) as criticality,\n cast(`method` as STRING) as\ - \ method,\n cast(`isCompleted` as BOOLEAN) as isCompleted\nfrom\n `workorder_oid_workmate`.`workitems`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationRelationshipFromType: linkedAssets - destinationType: WorkItem - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_workorder_oid_workmate_apm_simple_load_workitems2assets - ignoreNullFields: true - isPublic: true - name: workorder:oid:workmate:apm_simple:load_workitems2assets - query: "/* MAPPING_MODE_ENABLED: true */ /* {\"version\":1,\"sourceType\":\"raw\"\ - ,\"mappings\":[ {\"from\":\"externalId\",\"to\":\"externalId\",\"asType\":\"STRING\"\ - }, {\"from\":\"sourceExternalId\",\"to\":\"startNode\",\"asType\":\"STRUCT<`space`:STRING,\ - \ `externalId`:STRING>\"}, {\"from\":\"targetExternalId\",\"to\":\"endNode\",\"\ - asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"}], \"sourceLevel1\":\"\ - tutorial_apm\",\"sourceLevel2\":\"workitem2assets\"} */ select\n cast(`externalId`\ - \ as STRING) as externalId,\n node_reference('apm_simple', `sourceExternalId`)\ - \ as startNode,\n node_reference('apm_simple', `targetExternalId`) as endNode\n\ - from\n `workorder_oid_workmate`.`workitem2assets`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationRelationshipFromType: workItems - destinationType: WorkOrder - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_workorder_oid_workmate_apm_simple_load_workitems2workorders - ignoreNullFields: true - isPublic: true - name: workorder:oid:workmate:apm_simple:load_workitems2workorders - query: "/* MAPPING_MODE_ENABLED: true */ /* {\"version\":1,\"sourceType\":\"raw\"\ - ,\"mappings\":[ {\"from\":\"externalId\",\"to\":\"externalId\",\"asType\":\"STRING\"\ - }, {\"from\":\"sourceExternalId\",\"to\":\"startNode\",\"asType\":\"STRUCT<`space`:STRING,\ - \ `externalId`:STRING>\"}, {\"from\":\"targetExternalId\",\"to\":\"endNode\",\"\ - asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"}], \"sourceLevel1\":\"\ - tutorial_apm\",\"sourceLevel2\":\"workorder2items\"} */ select\n cast(`externalId`\ - \ as STRING) as externalId,\n node_reference('apm_simple', `sourceExternalId`)\ - \ as startNode,\n node_reference('apm_simple', `targetExternalId`) as endNode\n\ - from\n `workorder_oid_workmate`.`workorder2items`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationType: WorkOrder - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_workorder_oid_workmate_apm_simple_load_workorders - ignoreNullFields: true - isPublic: true - name: workorder:oid:workmate:apm_simple:load_workorders - query: "select \ncast(`externalId` as STRING) as externalId, \ncast(`isCompleted`\ - \ as BOOLEAN) as isCompleted, \ncast(`plannedStart` as TIMESTAMP) as plannedStart,\ - \ \ncast(`isSafetyCritical` as BOOLEAN) as isSafetyCritical, \ncast(`workPackageNumber`\ - \ as STRING) as workPackageNumber, \ncast(`endTime` as TIMESTAMP) as endTime,\ - \ \ncast(`status` as STRING) as status, \ncast(`durationHours` as INT) as durationHours,\ - \ \ncast(`workOrderNumber` as STRING) as workOrderNumber, \ncast(`title` as STRING)\ - \ as title, \ncast(`percentageProgress` as INT) as percentageProgress, \ncast(`startTime`\ - \ as TIMESTAMP) as startTime, \ncast(`actualHours` as INT) as actualHours, \n\ - cast(`description` as STRING) as description, \ncast(`isCancelled` as BOOLEAN)\ - \ as isCancelled, \ncast(`isActive` as BOOLEAN) as isActive, \ncast(`priorityDescription`\ - \ as STRING) as priorityDescription, \ncast(`dueDate` as TIMESTAMP) as dueDate,\ - \ \ncast(`createdDate` as TIMESTAMP) as createdDate, \ncast(`programNumber` as\ - \ STRING) as programNumber \nfrom `workorder_oid_workmate`.`workorders`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationRelationshipFromType: linkedAssets - destinationType: WorkOrder - externalId: apm_simple - space: sp_apm_simple - version: '1' - instanceSpace: sp_apm_simple - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_workorder_oid_workmate_apm_simple_load_workorders2assets - ignoreNullFields: true - isPublic: true - name: workorder:oid:workmate:apm_simple:load_workorders2assets - query: "select\n cast(`externalId` as STRING) as externalId,\n node_reference('apm_simple',\ - \ `sourceExternalId`) as startNode,\n node_reference('apm_simple', `targetExternalId`)\ - \ as endNode\nfrom\n `workorder_oid_workmate`.`workorder2assets`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -TransformationSchedule: -- externalId: tr_asset_oid_workmate_apm_simple_load_asset2children - interval: 7 * * * * - isPaused: true -- externalId: tr_asset_oid_workmate_apm_simple_load_assets - interval: 7 * * * * - isPaused: true -- externalId: tr_timeseries_oid_pi_apm_simple_load_timeseries2assets - interval: 7 * * * * - isPaused: true -- externalId: tr_workorder_oid_workmate_apm_simple_load_workitems - interval: 7 * * * * - isPaused: true -- externalId: tr_workorder_oid_workmate_apm_simple_load_workitems2assets - interval: 7 * * * * - isPaused: true -- externalId: tr_workorder_oid_workmate_apm_simple_load_workitems2workorders - interval: 7 * * * * - isPaused: true -- externalId: tr_workorder_oid_workmate_apm_simple_load_workorders - interval: 7 * * * * - isPaused: true -- externalId: tr_workorder_oid_workmate_apm_simple_load_workorders2assets - interval: 7 * * * * - isPaused: true -View: -- externalId: Asset - implements: [] - name: Asset - properties: - areaId: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: areaId - name: areaId - categoryId: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: categoryId - name: categoryId - children: - connectionType: multi_edge_connection - direction: outwards - name: children - source: - externalId: Asset - space: sp_apm_simple - type: view - version: '1' - type: - externalId: Asset.children - space: sp_apm_simple - createdDate: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: createdDate - name: createdDate - description: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: description - name: description - documents: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: documents - name: documents - isActive: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: isActive - name: isActive - isCriticalLine: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: isCriticalLine - name: isCriticalLine - metrics: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: metrics - name: metrics - parent: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: parent - name: parent - sourceDb: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: sourceDb - name: sourceDb - tag: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: tag - name: tag - updatedDate: - container: - externalId: Asset - space: sp_apm_simple - type: container - containerPropertyIdentifier: updatedDate - name: updatedDate - space: sp_apm_simple - version: '1' -- externalId: WorkItem - implements: [] - name: WorkItem - properties: - criticality: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: criticality - name: criticality - description: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: description - name: description - isCompleted: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: isCompleted - name: isCompleted - itemInfo: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: itemInfo - name: itemInfo - itemName: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: itemName - name: itemName - linkedAssets: - connectionType: multi_edge_connection - direction: outwards - name: linkedAssets - source: - externalId: Asset - space: sp_apm_simple - type: view - version: '1' - type: - externalId: WorkItem.linkedAssets - space: sp_apm_simple - method: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: method - name: method - title: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: title - name: title - toBeDone: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: toBeDone - name: toBeDone - workOrder: - container: - externalId: WorkItem - space: sp_apm_simple - type: container - containerPropertyIdentifier: workOrder - name: workOrder - space: sp_apm_simple - version: '1' -- externalId: WorkOrder - implements: [] - name: WorkOrder - properties: - actualHours: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: actualHours - name: actualHours - createdDate: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: createdDate - name: createdDate - description: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: description - name: description - dueDate: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: dueDate - name: dueDate - durationHours: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: durationHours - name: durationHours - endTime: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: endTime - name: endTime - isActive: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: isActive - name: isActive - isCancelled: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: isCancelled - name: isCancelled - isCompleted: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: isCompleted - name: isCompleted - isSafetyCritical: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: isSafetyCritical - name: isSafetyCritical - linkedAssets: - connectionType: multi_edge_connection - direction: outwards - name: linkedAssets - source: - externalId: Asset - space: sp_apm_simple - type: view - version: '1' - type: - externalId: WorkOrder.linkedAssets - space: sp_apm_simple - percentageProgress: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: percentageProgress - name: percentageProgress - plannedStart: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: plannedStart - name: plannedStart - priorityDescription: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: priorityDescription - name: priorityDescription - programNumber: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: programNumber - name: programNumber - startTime: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: startTime - name: startTime - status: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: status - name: status - title: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: title - name: title - workItems: - connectionType: multi_edge_connection - direction: outwards - name: workItems - source: - externalId: WorkItem - space: sp_apm_simple - type: view - version: '1' - type: - externalId: WorkOrder.workItems - space: sp_apm_simple - workOrderNumber: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: workOrderNumber - name: workOrderNumber - workPackageNumber: - container: - externalId: WorkOrder - space: sp_apm_simple - type: container - containerPropertyIdentifier: workPackageNumber - name: workPackageNumber - space: sp_apm_simple - version: '1' diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_asset_source_model.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_asset_source_model.yaml deleted file mode 100644 index d4e863541..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_asset_source_model.yaml +++ /dev/null @@ -1,115 +0,0 @@ -Container: -- constraints: {} - externalId: Asset - indexes: {} - name: Asset - properties: - metadata: - autoIncrement: false - description: Custom, application specific metadata. String key -> String value. - immutable: false - name: metadata - nullable: true - type: - list: false - type: json - space: sp_extended_source_data_models - usedFor: node -DataModel: -- externalId: ExtendedSourceData - name: ExtendedSourceData - space: sp_extended_source_data_models - version: '1' - views: - - externalId: Asset - space: sp_extended_source_data_models - type: view - version: '1' -DataSet: -- description: This dataset contains the example asset source data. - externalId: ds_example_asset_source_data - metadata: {} - name: Example Asset Source Data - writeProtected: false -Space: -- description: Space for the instances in the ExtendedSourceData data model - name: sp_cdf_template_instances - space: sp_cdf_template_instances -- description: Space for the model in the ExtendedSourceData data model - name: sp_extended_source_data_models - space: sp_extended_source_data_models -Transformation: -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationType: Asset - externalId: ExtendedSourceData - space: sp_extended_source_data_models - version: '1' - instanceSpace: sp_cdf_template_instances - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_sync-asset_hierarchy_cdf_asset_source_model - ignoreNullFields: false - isPublic: true - name: sync-asset_hierarchy_cdf_asset_source_model - query: "-- Root Asset\n-- The asset must be set up in hierarchical order as the\ - \ container for the parent asset requires the\n-- parent asset to be created first.\n\ - \nselect\n cast(`externalId` as STRING) as externalId,\n null as parent,\n \ - \ node_reference('sp_cdf_template_instances', 'lift_pump_stations:root') as root,\n\ - \ cast(`name` as STRING) as title,\n cast(`source` as STRING) as source,\n \ - \ cast(`description` as STRING) as description,\n cast(`labels` as ARRAY < STRING\ - \ >) as labels,\n to_json(`metadata`) as metadata\nfrom\n cdf_assetSubtree(\"\ - lift_pump_stations:root\")\nwhere\n-- The root asset is created with a null parentExternalId.\n\ - \ isnull(`parentExternalId`)\n\nUNION ALL\n-- Pump Stations\nselect\n cast(`externalId`\ - \ as STRING) as externalId,\n node_reference('sp_cdf_template_instances', `parentExternalId`)\ - \ as parent,\n node_reference('sp_cdf_template_instances', 'lift_pump_stations:root')\ - \ as root,\n cast(`name` as STRING) as title,\n cast(`source` as STRING) as\ - \ source,\n cast(`description` as STRING) as description,\n cast(`labels` as\ - \ ARRAY < STRING >) as labels,\n to_json(`metadata`) as metadata\nfrom\n cdf_assetSubtree('lift_pump_stations:root')\n\ - where\n-- This is used to select the Lift Stations.\n isnotnull(`externalId`)\ - \ and isnotnull(`parentExternalId`) and not startswith(name, 'Pump')\n\nUNION\ - \ ALL\n-- Pumps\nselect\n concat('pump:', cast(`externalId` as STRING)) as externalId,\n\ - \ node_reference('sp_cdf_template_instances', `parentExternalId`) as parent,\n\ - \ node_reference('sp_cdf_template_instances', 'lift_pump_stations:root') as root,\n\ - \ cast(`name` as STRING) as title,\n cast(`source` as STRING) as source,\n \ - \ cast(`description` as STRING) as description,\n cast(`labels` as ARRAY < STRING\ - \ >) as labels,\n to_json(`metadata`) as metadata\nfrom\n cdf_assetSubtree('lift_pump_stations:root')\n\ - where\n-- This is used to select the Pumps.\n isnotnull(`externalId`) and isnotnull(`parentExternalId`)\ - \ and startswith(name, 'Pump');\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -TransformationSchedule: -- externalId: tr_sync-asset_hierarchy_cdf_asset_source_model - interval: 7 * * * * - isPaused: true -View: -- externalId: Asset - implements: - - externalId: Asset - space: cdf_core - type: view - version: v1 - name: Asset - properties: - metadata: - container: - externalId: Asset - space: sp_extended_source_data_models - type: container - containerPropertyIdentifier: metadata - name: metadata - space: sp_extended_source_data_models - version: '1' diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension.yaml deleted file mode 100644 index 67c5ecdda..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension.yaml +++ /dev/null @@ -1,644 +0,0 @@ -DataModel: -- description: ToolkitMinimum enterprise model - externalId: ToolkitMinimumEnterprise - name: ToolkitMinimum enterprise model - space: sp_enterprise_min_schema - version: v1 - views: - - externalId: ToolkitMinimumSourceable - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumAssetClass - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumAssetType - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumEquipment - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumEquipmentType - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumFile - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumFileCategory - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumActivity - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumTimeSeries - space: sp_enterprise_min_schema - type: view - version: v1 - - externalId: ToolkitMinimumUnit - space: sp_enterprise_min_schema - type: view - version: v1 -Space: -- space: sp_enterprise_min_schema -View: -- description: Represents activities. Activities typically happen over a period and - have a start and end time. - externalId: ToolkitMinimumActivity - implements: - - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - name: Activity - properties: - assets: - container: - externalId: CogniteActivity - space: cdf_cdm - type: container - containerPropertyIdentifier: assets - description: A list of assets the activity is related to. - name: Assets - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - equipment: - container: - externalId: CogniteActivity - space: cdf_cdm - type: container - containerPropertyIdentifier: equipment - description: A list of equipment the activity is related to. - name: Equipment - source: - externalId: ToolkitMinimumEquipment - space: sp_enterprise_min_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - timeSeries: - container: - externalId: CogniteActivity - space: cdf_cdm - type: container - containerPropertyIdentifier: timeSeries - description: A list of time series the activity is related to. - name: Time series - source: - externalId: ToolkitMinimumTimeSeries - space: sp_enterprise_min_schema - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Assets represent systems that support industrial functions or processes. - Assets are often called 'functional location'. - externalId: ToolkitMinimumAsset - implements: - - externalId: CogniteAsset - space: cdf_cdm - type: view - version: v1 - name: Asset - properties: - activities: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of activities related to the asset. - name: Activities - source: - externalId: ToolkitMinimumActivity - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: assets - source: - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - assetClass: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetClass - description: Specifies the class of the asset. It's a direct relation to CogniteAssetClass. - name: Asset class - source: - externalId: ToolkitMinimumAssetClass - space: sp_enterprise_min_schema - type: view - version: v1 - children: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of assets with this asset as their - parent. - name: Children - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: parent - source: - externalId: CogniteAsset - space: cdf_cdm - type: view - version: v1 - equipment: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of equipment related to the asset. - name: Equipment - source: - externalId: ToolkitMinimumEquipment - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: asset - source: - externalId: CogniteEquipment - space: cdf_cdm - type: view - version: v1 - files: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of files related to the asset. - name: Files - source: - externalId: ToolkitMinimumFile - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: assets - source: - externalId: CogniteFile - space: cdf_cdm - type: view - version: v1 - object3D: - container: - externalId: CogniteVisualizable - space: cdf_cdm - type: container - containerPropertyIdentifier: object3D - description: This is not used, overwritten to point to nothing to avoid including - 3D. - parent: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetHierarchy_parent - description: The parent of the asset. - name: Parent - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - path: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetHierarchy_path - description: An automatically updated ordered list of this asset's ancestors, - starting with the root asset. Enables subtree filtering to find all assets - under a parent. - name: Path - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - root: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetHierarchy_root - description: An automatically updated reference to the top-level asset of the - hierarchy. - name: Root - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - timeSeries: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of time series related to the asset. - name: Time series - source: - externalId: ToolkitMinimumTimeSeries - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: assets - source: - externalId: CogniteTimeSeries - space: cdf_cdm - type: view - version: v1 - type: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: type - description: Specifies the type of the asset. It's a direct relation to CogniteAssetType. - name: Asset type - source: - externalId: ToolkitMinimumAssetType - space: sp_enterprise_min_schema - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Represents the class of an asset. - externalId: ToolkitMinimumAssetClass - implements: - - externalId: CogniteAssetClass - space: cdf_cdm - type: view - version: v1 - name: Asset class - properties: {} - space: sp_enterprise_min_schema - version: v1 -- description: Represents the type of an asset. - externalId: ToolkitMinimumAssetType - implements: - - externalId: CogniteAssetType - space: cdf_cdm - type: view - version: v1 - name: Asset type - properties: - assetClass: - container: - externalId: CogniteAssetType - space: cdf_cdm - type: container - containerPropertyIdentifier: assetClass - description: Specifies the class the type belongs to. It's a direct relation - to CogniteAssetClass. - name: Asset class - source: - externalId: ToolkitMinimumAssetClass - space: sp_enterprise_min_schema - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Equipment represents physical supplies or devices. - externalId: ToolkitMinimumEquipment - implements: - - externalId: CogniteEquipment - space: cdf_cdm - type: view - version: v1 - name: Equipment - properties: - activities: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of activities related to the equipment. - name: Activities - source: - externalId: ToolkitMinimumActivity - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: equipment - source: - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - asset: - container: - externalId: CogniteEquipment - space: cdf_cdm - type: container - containerPropertyIdentifier: asset - description: The asset the equipment is related to. - name: Asset - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - equipmentType: - container: - externalId: CogniteEquipment - space: cdf_cdm - type: container - containerPropertyIdentifier: equipmentType - description: Specifies the type of the equipment. It's a direct relation to - CogniteEquipmentType. - name: Equipment type - source: - externalId: ToolkitMinimumEquipmentType - space: sp_enterprise_min_schema - type: view - version: v1 - files: - container: - externalId: CogniteEquipment - space: cdf_cdm - type: container - containerPropertyIdentifier: files - description: A list of files the equipment relates to. - name: Files - source: - externalId: ToolkitMinimumFile - space: sp_enterprise_min_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - timeSeries: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of time series related to the equipment. - name: Time series - source: - externalId: ToolkitMinimumTimeSeries - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: equipment - source: - externalId: CogniteTimeSeries - space: cdf_cdm - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Represents the type of equipment. - externalId: ToolkitMinimumEquipmentType - implements: - - externalId: CogniteEquipmentType - space: cdf_cdm - type: view - version: v1 - name: Equipment type - properties: {} - space: sp_enterprise_min_schema - version: v1 -- description: Represents files. - externalId: ToolkitMinimumFile - implements: - - externalId: CogniteFile - space: cdf_cdm - type: view - version: v1 - name: File - properties: - assets: - container: - externalId: CogniteFile - space: cdf_cdm - type: container - containerPropertyIdentifier: assets - description: A list of assets this file is related to. - name: Assets - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - category: - container: - externalId: CogniteFile - space: cdf_cdm - type: container - containerPropertyIdentifier: category - description: Specifies the detected category the file belongs to. It's a direct - relation to an instance of CogniteFileCategory. - name: Category - source: - externalId: ToolkitMinimumFileCategory - space: sp_enterprise_min_schema - type: view - version: v1 - equipment: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of equipment this file is related - to. - name: Equipment - source: - externalId: ToolkitMinimumEquipment - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: files - source: - externalId: CogniteEquipment - space: cdf_cdm - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Represents the categories of files as determined by contextualization - or categorization. - externalId: ToolkitMinimumFileCategory - implements: - - externalId: CogniteFileCategory - space: cdf_cdm - type: view - version: v1 - name: File category - properties: {} - space: sp_enterprise_min_schema - version: v1 -- description: The CogniteSourceSystem core concept is used to standardize the way - source system is stored. - externalId: ToolkitMinimumSourceSystem - implements: - - externalId: CogniteSourceSystem - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_min_schema - version: v1 -- externalId: ToolkitMinimumSourceable - implements: - - externalId: CogniteSourceable - space: cdf_cdm - type: view - version: v1 - properties: - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Represents a series of data points in time order." - externalId: ToolkitMinimumTimeSeries - implements: - - externalId: CogniteTimeSeries - space: cdf_cdm - type: view - version: v1 - name: Time series - properties: - activities: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of activities the time series is - related to. - name: Activities - source: - externalId: ToolkitMinimumActivity - space: sp_enterprise_min_schema - type: view - version: v1 - through: - identifier: timeSeries - source: - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - assets: - container: - externalId: CogniteTimeSeries - space: cdf_cdm - type: container - containerPropertyIdentifier: assets - description: A list of assets the time series is related to. - name: Assets - source: - externalId: ToolkitMinimumAsset - space: sp_enterprise_min_schema - type: view - version: v1 - equipment: - container: - externalId: CogniteTimeSeries - space: cdf_cdm - type: container - containerPropertyIdentifier: equipment - description: A list of equipment the time series is related to. - name: Equipment - source: - externalId: ToolkitMinimumEquipment - space: sp_enterprise_min_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitMinimumSourceSystem - space: sp_enterprise_min_schema - type: view - version: v1 - unit: - container: - externalId: CogniteTimeSeries - space: cdf_cdm - type: container - containerPropertyIdentifier: unit - description: The unit of the time series. - name: Unit - source: - externalId: ToolkitMinimumUnit - space: sp_enterprise_min_schema - type: view - version: v1 - space: sp_enterprise_min_schema - version: v1 -- description: Represents a single unit of measurement - externalId: ToolkitMinimumUnit - implements: - - externalId: CogniteUnit - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_min_schema - version: v1 diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension_full.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension_full.yaml deleted file mode 100644 index 3544f2e96..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_core_extension_full.yaml +++ /dev/null @@ -1,1551 +0,0 @@ -DataModel: -- description: Toolkit enterprise model - externalId: ToolkitEnterprise - name: Toolkit enterprise model - space: sp_enterprise_schema - version: v1 - views: - - externalId: ToolkitDescribable - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitSourceable - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitSchedulable - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitVisualizable - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit3DTransformation - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitCubeMap - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit3DObject - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit3DModel - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitCADModel - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit3DRevision - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitPointCloudModel - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit360ImageModel - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitCADRevision - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitPointCloudRevision - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit360ImageCollection - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitCADNode - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitPointCloudVolume - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit360Image - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit360ImageStation - space: sp_enterprise_schema - type: view - version: v1 - - externalId: Toolkit360ImageAnnotation - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitAssetClass - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitAssetType - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitEquipment - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitEquipmentType - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitFileCategory - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitActivity - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitTimeSeries - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitAnnotation - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitDiagramAnnotation - space: sp_enterprise_schema - type: view - version: v1 - - externalId: ToolkitUnit - space: sp_enterprise_schema - type: view - version: v1 -Space: -- space: sp_enterprise_schema -View: -- description: '' - externalId: Toolkit360Image - implements: - - externalId: Cognite360Image - space: cdf_cdm - type: view - version: v1 - properties: - back: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: back - description: Direct relation to a file holding the back projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - bottom: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: bottom - description: Direct relation to a file holding the bottom projection of the - cube map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - collection360: - container: - externalId: Cognite360Image - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: collection360 - description: Direct relation to Cognite360ImageCollection - source: - externalId: Toolkit360ImageCollection - space: sp_enterprise_schema - type: view - version: v1 - front: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: front - description: Direct relation to a file holding the front projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - left: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: left - description: Direct relation to a file holding the left projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - right: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: right - description: Direct relation to a file holding the right projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - station360: - container: - externalId: Cognite360Image - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: group3d - description: Direct relation to Cognite3DGroup instance that groups different - Cognite360Image instances to the same station - source: - externalId: Toolkit360ImageStation - space: sp_enterprise_schema - type: view - version: v1 - top: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: top - description: Direct relation to a file holding the top projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: '' - externalId: Toolkit360ImageAnnotation - implements: - - externalId: Cognite360ImageAnnotation - space: cdf_cdm - type: view - version: v1 - properties: - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents a logical collection of Cognite360Image instances - externalId: Toolkit360ImageCollection - filter: - and: - - hasData: - - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DModel - - type - value: Image360 - implements: - - externalId: Cognite360ImageCollection - space: cdf_cdm - type: view - version: v1 - properties: - model3D: - container: - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: model3D - source: - externalId: Toolkit3DModel - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Navigational aid for traversing Cognite360ImageModel instances - externalId: Toolkit360ImageModel - filter: - and: - - hasData: - - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DModel - - type - value: Image360 - implements: - - externalId: Cognite360ImageModel - space: cdf_cdm - type: view - version: v1 - properties: - collections: - connectionType: multi_reverse_direct_relation - description: List Cognite360Image collections for this instance - source: - externalId: Toolkit360ImageCollection - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: model3D - source: - externalId: Cognite3DRevision - space: cdf_cdm - type: view - version: v1 - thumbnail: - container: - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: thumbnail - description: Thumbnail of the 3D model - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: A way to group images across collections. Used for creating visual - scan history - externalId: Toolkit360ImageStation - filter: - and: - - hasData: - - externalId: Cognite3DGroup - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DGroup - - groupType - value: Station360 - implements: - - externalId: Cognite360ImageStation - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_schema - version: v1 -- description: Groups revisions of 3D data of various kinds together (CAD, PointCloud, - Image360) - externalId: Toolkit3DModel - implements: - - externalId: Cognite3DModel - space: cdf_cdm - type: view - version: v1 - properties: - thumbnail: - container: - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: thumbnail - description: Thumbnail of the 3D model - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: This is the virtual position representation of an object in the physical - world, connecting an asset to one or more 3D resources - externalId: Toolkit3DObject - implements: - - externalId: Cognite3DObject - space: cdf_cdm - type: view - version: v1 - properties: - asset: - connectionType: single_reverse_direct_relation - description: Asset that is tied to this 3D object - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: object3D - source: - externalId: CogniteAsset - space: cdf_cdm - type: view - version: v1 - cadNodes: - connectionType: multi_reverse_direct_relation - description: List of up to 1000 CADNodes that represents the connected CogniteAsset - source: - externalId: ToolkitCADNode - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: object3D - source: - externalId: CogniteCADNode - space: cdf_cdm - type: view - version: v1 - images360: - connectionType: multi_edge_connection - description: Edge connection to Cognite360Image annotations that represents - the connected CogniteAsset - direction: outwards - edgeSource: - externalId: Cognite360ImageAnnotation - space: cdf_cdm - type: view - version: v1 - source: - externalId: Toolkit360Image - space: sp_enterprise_schema - type: view - version: v1 - type: - externalId: image-360-annotation - space: cdf_cdm - pointCloudVolumes: - connectionType: multi_reverse_direct_relation - description: List of up to 1000 PointCloudVolumes that represents the connected - CogniteAsset - source: - externalId: ToolkitPointCloudVolume - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: object3D - source: - externalId: CognitePointCloudVolume - space: cdf_cdm - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: 'Shared revision information for various 3D data types. Normally not - used directly, but through CognitePointCloudRevision, Image360Collection or CogniteCADRevision - - ' - externalId: Toolkit3DRevision - implements: - - externalId: Cognite3DRevision - space: cdf_cdm - type: view - version: v1 - properties: - model3D: - container: - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: model3D - source: - externalId: Toolkit3DModel - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: 'The Cognite3DTransformation object defines a comprehensive 3D transformation, - enabling precise adjustments to an object''s position, orientation, and size in - the 3D coordinate system. It allows for the translation of objects along the three - spatial axes, rotation around these axes using Euler angles, and scaling along - each axis to modify the object''s dimensions. The object''s transformation is - defined in "CDF space", a coordinate system where the positive Z axis is the up - direction - - ' - externalId: Toolkit3DTransformation - implements: - - externalId: Cognite3DTransformation - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_schema - version: v1 -- description: Represents activities. Activities typically happen over a period and - have a start and end time. - externalId: ToolkitActivity - implements: - - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - name: Activity - properties: - assets: - container: - externalId: CogniteActivity - space: cdf_cdm - type: container - containerPropertyIdentifier: assets - description: A list of assets the activity is related to. - name: Assets - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - equipment: - container: - externalId: CogniteActivity - space: cdf_cdm - type: container - containerPropertyIdentifier: equipment - description: A list of equipment the activity is related to. - name: Equipment - source: - externalId: ToolkitEquipment - space: sp_enterprise_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - timeSeries: - container: - externalId: CogniteActivity - space: cdf_cdm - type: container - containerPropertyIdentifier: timeSeries - description: A list of time series the activity is related to. - name: Time series - source: - externalId: ToolkitTimeSeries - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Annotation represents contextualization results or links - externalId: ToolkitAnnotation - implements: - - externalId: CogniteAnnotation - space: cdf_cdm - type: view - version: v1 - properties: - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Assets represent systems that support industrial functions or processes. - Assets are often called 'functional location'. - externalId: ToolkitAsset - implements: - - externalId: CogniteAsset - space: cdf_cdm - type: view - version: v1 - name: Asset - properties: - activities: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of activities related to the asset. - name: Activities - source: - externalId: ToolkitActivity - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: assets - source: - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - assetClass: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetClass - description: Specifies the class of the asset. It's a direct relation to CogniteAssetClass. - name: Asset class - source: - externalId: ToolkitAssetClass - space: sp_enterprise_schema - type: view - version: v1 - children: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of assets with this asset as their - parent. - name: Children - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: parent - source: - externalId: CogniteAsset - space: cdf_cdm - type: view - version: v1 - equipment: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of equipment related to the asset. - name: Equipment - source: - externalId: ToolkitEquipment - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: asset - source: - externalId: CogniteEquipment - space: cdf_cdm - type: view - version: v1 - files: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of files related to the asset. - name: Files - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: assets - source: - externalId: CogniteFile - space: cdf_cdm - type: view - version: v1 - object3D: - container: - externalId: CogniteVisualizable - space: cdf_cdm - type: container - containerPropertyIdentifier: object3D - description: Direct relation to an Object3D instance representing the 3D resource - source: - externalId: Toolkit3DObject - space: sp_enterprise_schema - type: view - version: v1 - parent: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetHierarchy_parent - description: The parent of the asset. - name: Parent - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - path: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetHierarchy_path - description: An automatically updated ordered list of this asset's ancestors, - starting with the root asset. Enables subtree filtering to find all assets - under a parent. - name: Path - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - root: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: assetHierarchy_root - description: An automatically updated reference to the top-level asset of the - hierarchy. - name: Root - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - timeSeries: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of time series related to the asset. - name: Time series - source: - externalId: ToolkitTimeSeries - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: assets - source: - externalId: CogniteTimeSeries - space: cdf_cdm - type: view - version: v1 - type: - container: - externalId: CogniteAsset - space: cdf_cdm - type: container - containerPropertyIdentifier: type - description: Specifies the type of the asset. It's a direct relation to CogniteAssetType. - name: Asset type - source: - externalId: ToolkitAssetType - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents the class of an asset. - externalId: ToolkitAssetClass - implements: - - externalId: CogniteAssetClass - space: cdf_cdm - type: view - version: v1 - name: Asset class - properties: {} - space: sp_enterprise_schema - version: v1 -- description: Represents the type of an asset. - externalId: ToolkitAssetType - implements: - - externalId: CogniteAssetType - space: cdf_cdm - type: view - version: v1 - name: Asset type - properties: - assetClass: - container: - externalId: CogniteAssetType - space: cdf_cdm - type: container - containerPropertyIdentifier: assetClass - description: Specifies the class the type belongs to. It's a direct relation - to CogniteAssetClass. - name: Asset class - source: - externalId: ToolkitAssetClass - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Navigational aid for traversing CogniteCADModel instances - externalId: ToolkitCADModel - filter: - and: - - hasData: - - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DModel - - type - value: CAD - implements: - - externalId: CogniteCADModel - space: cdf_cdm - type: view - version: v1 - properties: - revisions: - connectionType: multi_reverse_direct_relation - description: List of revisions for this CAD model - source: - externalId: ToolkitCADRevision - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: model3D - source: - externalId: Cognite3DRevision - space: cdf_cdm - type: view - version: v1 - thumbnail: - container: - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: thumbnail - description: Thumbnail of the 3D model - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents nodes from the 3D model that have been contextualized - externalId: ToolkitCADNode - implements: - - externalId: CogniteCADNode - space: cdf_cdm - type: view - version: v1 - properties: - model3D: - container: - externalId: CogniteCADNode - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: model3D - description: Direct relation to Cognite3DModel - source: - externalId: ToolkitCADModel - space: sp_enterprise_schema - type: view - version: v1 - object3D: - container: - externalId: CogniteCADNode - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: object3D - description: Direct relation to object3D grouping for this node - source: - externalId: Toolkit3DObject - space: sp_enterprise_schema - type: view - version: v1 - revisions: - container: - externalId: CogniteCADNode - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: revisions - description: List of direct relations to instances of Cognite3DRevision which - this CogniteCADNode exists in. - source: - externalId: ToolkitCADRevision - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: '' - externalId: ToolkitCADRevision - filter: - and: - - hasData: - - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DModel - - type - value: CAD - implements: - - externalId: CogniteCADRevision - space: cdf_cdm - type: view - version: v1 - properties: - model3D: - container: - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: model3D - source: - externalId: Toolkit3DModel - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: 'The cube map holds references to 6 images in used to visually represent - the surrounding environment - - ' - externalId: ToolkitCubeMap - implements: - - externalId: CogniteCubeMap - space: cdf_cdm - type: view - version: v1 - properties: - back: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: back - description: Direct relation to a file holding the back projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - bottom: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: bottom - description: Direct relation to a file holding the bottom projection of the - cube map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - front: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: front - description: Direct relation to a file holding the front projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - left: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: left - description: Direct relation to a file holding the left projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - right: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: right - description: Direct relation to a file holding the right projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - top: - container: - externalId: CogniteCubeMap - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: top - description: Direct relation to a file holding the top projection of the cube - map - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: 'The describable core concept is used as a standard way of holding - the bare minimum of information about the instance - - ' - externalId: ToolkitDescribable - implements: - - externalId: CogniteDescribable - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_schema - version: v1 -- description: Annotation for diagrams - externalId: ToolkitDiagramAnnotation - implements: - - externalId: CogniteDiagramAnnotation - space: cdf_cdm - type: view - version: v1 - properties: - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Equipment represents physical supplies or devices. - externalId: ToolkitEquipment - implements: - - externalId: CogniteEquipment - space: cdf_cdm - type: view - version: v1 - name: Equipment - properties: - activities: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of activities related to the equipment. - name: Activities - source: - externalId: ToolkitActivity - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: equipment - source: - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - asset: - container: - externalId: CogniteEquipment - space: cdf_cdm - type: container - containerPropertyIdentifier: asset - description: The asset the equipment is related to. - name: Asset - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - equipmentType: - container: - externalId: CogniteEquipment - space: cdf_cdm - type: container - containerPropertyIdentifier: equipmentType - description: Specifies the type of the equipment. It's a direct relation to - CogniteEquipmentType. - name: Equipment type - source: - externalId: ToolkitEquipmentType - space: sp_enterprise_schema - type: view - version: v1 - files: - container: - externalId: CogniteEquipment - space: cdf_cdm - type: container - containerPropertyIdentifier: files - description: A list of files the equipment relates to. - name: Files - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - timeSeries: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of time series related to the equipment. - name: Time series - source: - externalId: ToolkitTimeSeries - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: equipment - source: - externalId: CogniteTimeSeries - space: cdf_cdm - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents the type of equipment. - externalId: ToolkitEquipmentType - implements: - - externalId: CogniteEquipmentType - space: cdf_cdm - type: view - version: v1 - name: Equipment type - properties: {} - space: sp_enterprise_schema - version: v1 -- description: Represents files. - externalId: ToolkitFile - implements: - - externalId: CogniteFile - space: cdf_cdm - type: view - version: v1 - name: File - properties: - assets: - container: - externalId: CogniteFile - space: cdf_cdm - type: container - containerPropertyIdentifier: assets - description: A list of assets this file is related to. - name: Assets - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - category: - container: - externalId: CogniteFile - space: cdf_cdm - type: container - containerPropertyIdentifier: category - description: Specifies the detected category the file belongs to. It's a direct - relation to an instance of CogniteFileCategory. - name: Category - source: - externalId: ToolkitFileCategory - space: sp_enterprise_schema - type: view - version: v1 - equipment: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of equipment this file is related - to. - name: Equipment - source: - externalId: ToolkitEquipment - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: files - source: - externalId: CogniteEquipment - space: cdf_cdm - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents the categories of files as determined by contextualization - or categorization. - externalId: ToolkitFileCategory - implements: - - externalId: CogniteFileCategory - space: cdf_cdm - type: view - version: v1 - name: File category - properties: {} - space: sp_enterprise_schema - version: v1 -- description: Navigational aid for traversing CognitePointCloudModel instances - externalId: ToolkitPointCloudModel - filter: - and: - - hasData: - - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DModel - - type - value: PointCloud - implements: - - externalId: CognitePointCloudModel - space: cdf_cdm - type: view - version: v1 - properties: - revisions: - connectionType: multi_reverse_direct_relation - description: List of revisions for this PointCloud model - source: - externalId: ToolkitPointCloudRevision - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: model3D - source: - externalId: Cognite3DRevision - space: cdf_cdm - type: view - version: v1 - thumbnail: - container: - externalId: Cognite3DModel - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: thumbnail - description: Thumbnail of the 3D model - source: - externalId: ToolkitFile - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Navigational aid for traversing CognitePointCloudRevision instances - externalId: ToolkitPointCloudRevision - filter: - and: - - hasData: - - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - - equals: - property: - - cdf_cdm_3d - - Cognite3DModel - - type - value: PointCloud - implements: - - externalId: CognitePointCloudRevision - space: cdf_cdm - type: view - version: v1 - properties: - model3D: - container: - externalId: Cognite3DRevision - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: model3D - source: - externalId: Toolkit3DModel - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: PointCloud volume definition - externalId: ToolkitPointCloudVolume - implements: - - externalId: CognitePointCloudVolume - space: cdf_cdm - type: view - version: v1 - properties: - model3D: - container: - externalId: CognitePointCloudVolume - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: model3D - description: Direct relation to Cognite3DModel instance - source: - externalId: ToolkitCADModel - space: sp_enterprise_schema - type: view - version: v1 - object3D: - container: - externalId: CognitePointCloudVolume - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: object3D - description: Direct relation to object3D grouping for this node - source: - externalId: Toolkit3DObject - space: sp_enterprise_schema - type: view - version: v1 - revisions: - container: - externalId: CognitePointCloudVolume - space: cdf_cdm_3d - type: container - containerPropertyIdentifier: revisions - description: List of direct relations to revision information - source: - externalId: ToolkitCADRevision - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: CogniteSchedulable represents the metadata about when an activity (or - similar) starts and ends. - externalId: ToolkitSchedulable - implements: - - externalId: CogniteSchedulable - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_schema - version: v1 -- description: The CogniteSourceSystem core concept is used to standardize the way - source system is stored. - externalId: ToolkitSourceSystem - implements: - - externalId: CogniteSourceSystem - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_schema - version: v1 -- externalId: ToolkitSourceable - implements: - - externalId: CogniteSourceable - space: cdf_cdm - type: view - version: v1 - properties: - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents a series of data points in time order." - externalId: ToolkitTimeSeries - implements: - - externalId: CogniteTimeSeries - space: cdf_cdm - type: view - version: v1 - name: Time series - properties: - activities: - connectionType: multi_reverse_direct_relation - description: An automatically updated list of activities the time series is - related to. - name: Activities - source: - externalId: ToolkitActivity - space: sp_enterprise_schema - type: view - version: v1 - through: - identifier: timeSeries - source: - externalId: CogniteActivity - space: cdf_cdm - type: view - version: v1 - assets: - container: - externalId: CogniteTimeSeries - space: cdf_cdm - type: container - containerPropertyIdentifier: assets - description: A list of assets the time series is related to. - name: Assets - source: - externalId: ToolkitAsset - space: sp_enterprise_schema - type: view - version: v1 - equipment: - container: - externalId: CogniteTimeSeries - space: cdf_cdm - type: container - containerPropertyIdentifier: equipment - description: A list of equipment the time series is related to. - name: Equipment - source: - externalId: ToolkitEquipment - space: sp_enterprise_schema - type: view - version: v1 - source: - container: - externalId: CogniteSourceable - space: cdf_cdm - type: container - containerPropertyIdentifier: source - description: Direct relation to a source system - source: - externalId: ToolkitSourceSystem - space: sp_enterprise_schema - type: view - version: v1 - unit: - container: - externalId: CogniteTimeSeries - space: cdf_cdm - type: container - containerPropertyIdentifier: unit - description: The unit of the time series. - name: Unit - source: - externalId: ToolkitUnit - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 -- description: Represents a single unit of measurement - externalId: ToolkitUnit - implements: - - externalId: CogniteUnit - space: cdf_cdm - type: view - version: v1 - properties: {} - space: sp_enterprise_schema - version: v1 -- description: CogniteVisualizable defines the standard way to reference a related - 3D resource - externalId: ToolkitVisualizable - implements: - - externalId: CogniteVisualizable - space: cdf_cdm - type: view - version: v1 - properties: - object3D: - container: - externalId: CogniteVisualizable - space: cdf_cdm - type: container - containerPropertyIdentifier: object3D - description: Direct relation to an Object3D instance representing the 3D resource - source: - externalId: Toolkit3DObject - space: sp_enterprise_schema - type: view - version: v1 - space: sp_enterprise_schema - version: v1 diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_data_pipeline_asset_debug.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_data_pipeline_asset_debug.yaml deleted file mode 100644 index 2e3398016..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_data_pipeline_asset_debug.yaml +++ /dev/null @@ -1,71 +0,0 @@ -Group: -- capabilities: - - rawAcl: - actions: - - READ - - WRITE - scope: - tableScope: - dbsToTables: - src-asset-valhall-workmate: - tables: [] - metadata: - origin: cdf-project-templates - name: asset:valhall:extractor - sourceId: c74797ce-c49b-4ada-9186-8fe21c54c3de -- capabilities: - - transformationsAcl: - actions: - - READ - - WRITE - scope: - all: {} - - sessionsAcl: - actions: - - LIST - - CREATE - - DELETE - scope: - all: {} - metadata: - origin: cdf-project-templates - name: asset:valhall:processing - sourceId: c74797ce-c49b-4ada-9186-8fe21c54c3de -- capabilities: - - rawAcl: - actions: - - READ - - WRITE - scope: - tableScope: - dbsToTables: - src-asset-valhall-workmate: - tables: [] - - assetsAcl: - actions: - - READ - - WRITE - scope: - datasetScope: - ids: - - 42 - metadata: - origin: cdf-project-templates - name: asset:valhall:processing - sourceId: c74797ce-c49b-4ada-9186-8fe21c54c3de -- capabilities: - - assetsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - metadata: - origin: cdf-project-templates - name: asset:valhall:read - sourceId: c74797ce-c49b-4ada-9186-8fe21c54c3de -deleted: - FileMetadata: - - externalId: ep_src_asset_valhall_workmate - - externalId: ep_src_asset_valhall_workmate diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_functions_dummy.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_functions_dummy.yaml deleted file mode 100644 index 004a3f4fe..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_functions_dummy.yaml +++ /dev/null @@ -1,40 +0,0 @@ -Function: -- description: Returns the input data, secrets, and function info. - envVars: - CDF_ENV: dev - ENV_TYPE: dev - externalId: fn_example_repeater - fileId: -1 - functionPath: ./src/handler.py - metadata: - cdf-toolkit-function-hash: 167a93ebb122be9572a39193e1a6847eeb7c0bbbc2cf6d1ab0c175e46352a62d - cdf-toolkit-secret-hash: 05fd62b78df3a4afa1e306e51da28e794ffb1795649382ee76f32d8e291379f83bab6543da166b71e90562758daf5828c397e4419405d280f4c1946f2f891bbb - version: 0.0.1 - name: example:repeater - owner: Anonymous - runtime: py311 - secrets: - mysecret: ${MY_SECRET} -- externalId: fn_test2 - fileId: -1 - functionPath: ./handler.py - metadata: - cdf-toolkit-function-hash: 9a15c7293dccc78a8a1bcbcbd3c045fd7455f38876313b99b33b207ac23584d3 - name: test2 -FunctionSchedule: -- cronExpression: 0 8 * * * - data: - breakfast: 'today: peanut butter sandwich and coffee' - dinner: 'today: steak and red wine' - lunch: 'today: greek salad and water' - description: Run every day at 8am UTC - functionExternalId: fn_example_repeater - name: daily-8am-utc -- cronExpression: 0 20 * * * - data: - breakfast: 'tomorrow: peanut butter sandwich and coffee' - dinner: 'tomorrow: steak and red wine' - lunch: 'tomorrow: greek salad and water' - description: Run every day at 8pm UTC - functionExternalId: fn_example_repeater - name: daily-8pm-utc diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_idp_default.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_idp_default.yaml deleted file mode 100644 index 0967ef424..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_idp_default.yaml +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_infield_location_2.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_infield_location_2.yaml deleted file mode 100644 index 117f19786..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_infield_location_2.yaml +++ /dev/null @@ -1,497 +0,0 @@ -DataSet: -- description: This dataset contains 3D data for the oid2 location. - externalId: ds_3d_oid2 - metadata: {} - name: 3d:oid2 - writeProtected: false -- description: This dataset contains asset data for the oid2 location. - externalId: ds_asset_oid2 - metadata: {} - name: asset:oid2 - writeProtected: false -- description: This dataset contains files for the oid2 location. - externalId: ds_files_oid2 - metadata: {} - name: files:oid2 - writeProtected: false -- description: This dataset is for writing data from Infield for the location oid2. - externalId: ds_infield_oid2_app_data - metadata: {} - name: infield:oid2:app_data - writeProtected: false -- description: This dataset contains relationships data for the oid2 location. - externalId: ds_relationships_oid2 - metadata: {} - name: relationships:oid2 - writeProtected: false -- description: This dataset contains timeseries for the oid2 location. - externalId: ds_timeseries_oid2 - metadata: {} - name: timeseries:oid2 - writeProtected: false -- description: This dataset contains transformations data for the oid2 location. - externalId: ds_transformations_oid2 - metadata: {} - name: transformations:oid2 - writeProtected: false -Group: -- capabilities: - - groupsAcl: - actions: - - LIST - - READ - scope: - currentuserscope: {} - - threedAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - assetsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - filesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - filesAcl: - actions: - - WRITE - scope: - datasetScope: - ids: - - 42 - - relationshipsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - timeSeriesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - timeSeriesAcl: - actions: - - WRITE - scope: - datasetScope: - ids: - - 42 - - dataModelsAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cdf_infield - - cdf_core - - cdf_apps_shared - - APM_SourceData - - dataModelInstancesAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cognite_app_data - - sp_asset_oid2_source - - sp_infield_oid2_app_data - - dataModelInstancesAcl: - actions: - - WRITE - scope: - spaceIdScope: - spaceIds: - - cognite_app_data - - sp_infield_oid2_app_data - metadata: - module_version: '1' - origin: cdf-project-templates - name: gp_infield_oid2_checklist_admins - sourceId: -- capabilities: - - groupsAcl: - actions: - - LIST - - READ - scope: - currentuserscope: {} - - threedAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - assetsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - filesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - filesAcl: - actions: - - WRITE - scope: - datasetScope: - ids: - - 42 - - relationshipsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - timeSeriesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - timeSeriesAcl: - actions: - - WRITE - scope: - datasetScope: - ids: - - 42 - - dataModelsAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cdf_infield - - cdf_core - - cdf_apps_shared - - APM_SourceData - - dataModelInstancesAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cognite_app_data - - sp_asset_oid2_source - - sp_infield_oid2_app_data - - dataModelInstancesAcl: - actions: - - WRITE - scope: - spaceIdScope: - spaceIds: - - cognite_app_data - - sp_infield_oid2_app_data - metadata: - module_version: '1' - origin: cdf-project-templates - name: gp_infield_oid2_normal_users - sourceId: -- capabilities: - - groupsAcl: - actions: - - LIST - - READ - scope: - currentuserscope: {} - - threedAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - assetsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - filesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - filesAcl: - actions: - - WRITE - scope: - datasetScope: - ids: - - 42 - - relationshipsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - timeSeriesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - timeSeriesAcl: - actions: - - WRITE - scope: - datasetScope: - ids: - - 42 - - dataModelsAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cdf_infield - - cdf_core - - cdf_apps_shared - - APM_SourceData - - dataModelInstancesAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cognite_app_data - - sp_asset_oid2_source - - sp_infield_oid2_app_data - - dataModelInstancesAcl: - actions: - - WRITE - scope: - spaceIdScope: - spaceIds: - - cognite_app_data - - sp_infield_oid2_app_data - metadata: - module_version: '1' - origin: cdf-project-templates - name: gp_infield_oid2_template_admins - sourceId: -- capabilities: - - groupsAcl: - actions: - - LIST - - READ - scope: - currentuserscope: {} - - threedAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - assetsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - filesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - relationshipsAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - timeSeriesAcl: - actions: - - READ - scope: - datasetScope: - ids: - - 42 - - 42 - - dataModelsAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cdf_infield - - cdf_core - - cdf_apps_shared - - APM_SourceData - - dataModelInstancesAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - APM_Config - - cdf_apm - - cognite_app_data - - sp_asset_oid2_source - - sp_infield_oid2_app_data - - dataModelInstancesAcl: - actions: - - WRITE - scope: - spaceIdScope: - spaceIds: - - cognite_app_data - metadata: - module_version: '1' - origin: cdf-project-templates - name: gp_infield_oid2_viewers - sourceId: -Space: -- description: Space for Infield Location App Data - name: sp:infield:oid2:app_data - space: sp_infield_oid2_app_data -- description: Space for Infield Location Source Data - name: sp:infield:oid2:source - space: sp_asset_oid2_source -Transformation: -- conflictMode: upsert - dataSetId: 42 - destination: - instanceSpace: sp_asset_oid2_source - type: nodes - view: - externalId: Asset - space: cdf_core - version: v1 - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_asset_oid2_workmate_infield_sync_assets_from_hierarchy_to_apm - ignoreNullFields: true - isPublic: true - name: asset:oid2:workmate:infield:sync_assets_from_hierarchy_to_apm - query: "--- Create All Assets without properties\n--- This is necessary so we can\ - \ populate the direct relations\n--- in the next select statement\nselect\n cast(asset.externalId\ - \ as STRING) as externalId,\n --- We skip the remaining properties,\n --- but\ - \ need to have these columns set so we can do a UNION ALL operation with the statement\ - \ below.\n null as parent,\n null as source,\n null as root,\n null as description,\n\ - \ null as title,\n null as sourceId\nfrom\n cdf_assetSubtree('WMT:VAL') as\ - \ asset\n\nUNION ALL\n\n--- Create All Assets with properties including direct\ - \ relations\nselect\n cast(asset.externalId as STRING) as externalId,\n (case\n\ - \ when isnull(asset.parentExternalId) then null\n else node_reference('sp_asset_oid2_source',\ - \ asset.parentExternalId)\n end) as parent,\n cast(\"Asset Hierarachy\" as STRING)\ - \ as source,\n node_reference('sp_asset_oid2_source', cast(rootAsset.externalId\ - \ as STRING)) as root,\n cast(asset.description as STRING) as description,\n\ - \ cast(asset.name as STRING) as title,\n cast(asset.externalId as STRING) as\ - \ sourceId\nfrom\n cdf_assetSubtree('WMT:VAL') as asset\n -- Get root asset\n\ - \ inner join cdf_assetSubtree('WMT:VAL') as rootAsset on asset.rootId = rootAsset.id\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - dataModel: - destinationRelationshipFromType: null - destinationType: APM_Activity - externalId: APM_SourceData - space: APM_SourceData - version: '1' - instanceSpace: sp_asset_oid2_source - type: instances - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: tr_workorder_oid2_workmate_infield_sync_workorders_to_apm_activities - ignoreNullFields: true - isPublic: true - name: workorder:oid2:workmate:infield:sync_workorders_to_apm_activities - query: " select\n cast(`externalId` as STRING) as externalId,\n cast(`description`\ - \ as STRING) as description,\n cast(`key` as STRING) as id,\n cast(`status`\ - \ as STRING) as status,\n /* cast(`startTime` as TIMESTAMP) as startTime,\n\ - \ cast(`endTime` as TIMESTAMP) as endTime,\n NOTE!!! The below two datas\ - \ just updates all workorders to be from now \n and into the future. This is\ - \ done for the sake of the demo data.\n */\n cast(current_date() as TIMESTAMP)\ - \ as startTime,\n cast(date_add(current_date(), 7) as TIMESTAMP) as endTime,\n\ - \ cast(`title` as STRING) as title,\n 'WMT:VAL' as rootLocation,\n 'workmate'\ - \ as source\n from\n `workorder_oid_workmate`.`workorders`;\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: dummy - clientSecret: dummy - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -TransformationSchedule: -- externalId: tr_asset_oid2_workmate_infield_sync_assets_from_hierarchy_to_apm - interval: 7 * * * * - isPaused: false -- externalId: tr_workorder_oid2_workmate_infield_sync_workorders_to_apm_activities - interval: 7 * * * * - isPaused: false -deleted: - TransformationSchedule: - - externalId: tr_asset_oid2_workmate_infield_sync_assets_from_hierarchy_to_apm - - externalId: tr_workorder_oid2_workmate_infield_sync_workorders_to_apm_activities diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_example.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_example.yaml deleted file mode 100644 index e6db828d0..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_example.yaml +++ /dev/null @@ -1,44 +0,0 @@ -LocationFilter: -- assetCentric: - assetSubtreeIds: - - externalId: '{{ location_asset_subtree_external_id }}' - assets: - assetSubtreeIds: - - externalId: '{{ location_asset_subtree_external_id }}' - dataSetIds: - - 42 - externalIdPrefix: asset-prefix - dataSetIds: - - 42 - events: - assetSubtreeIds: - - externalId: '{{ location_asset_subtree_external_id }}' - dataSetIds: - - 42 - externalIdPrefix: event-prefix - externalIdPrefix: '{{ location_general_external_id_prefix }}' - files: - assetSubtreeIds: - - externalId: '{{ location_asset_subtree_external_id }}' - dataSetIds: - - 42 - externalIdPrefix: file-prefix - sequences: - assetSubtreeIds: - - externalId: '{{ location_asset_subtree_external_id }}' - dataSetIds: - - 42 - externalIdPrefix: '{{ location_sequences_prefix }}' - timeseries: - assetSubtreeIds: - - externalId: '{{ location_asset_subtree_external_id }}' - dataSetIds: - - 42 - externalIdPrefix: '{{ location_timeseries_prefix }}' - description: - externalId: - name: - parentId: - scene: - externalId: '{{ location_scene_external_id }}' - space: '{{ location_scene_space }}' diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_filter_view_based.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_filter_view_based.yaml deleted file mode 100644 index 2ef521c06..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_location_filter_view_based.yaml +++ /dev/null @@ -1,19 +0,0 @@ -LocationFilter: -- description: This is an example of a view based location filter - externalId: view_based_location_filter - instanceSpaces: - - my_instance_space1 - - my_instance_space2 - name: View Based Location Filter Example - views: - - externalId: CogniteAsset - representsEntity: ASSET - space: cdf_cdm - version: v1 - - externalId: CogniteMaintenanceOrder - representsEntity: MAINTENANCE_ORDER - space: cdf_idm - version: v1 -Space: -- space: my_instance_space1 -- space: my_instance_space2 diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_sap.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_sap.yaml deleted file mode 100644 index 1404419b6..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_sap.yaml +++ /dev/null @@ -1,248 +0,0 @@ -DataSet: -- description: Transformations for SAP Springfield S/4HANA dataset - externalId: sap_s4hana_transformations - metadata: {} - name: SAP Springfield S/4HANA Transformations - writeProtected: false -Group: -- capabilities: - - rawAcl: - actions: - - READ - scope: - tableScope: - dbsToTables: - sap_s4hana: - tables: [] - - dataModelInstancesAcl: - actions: - - READ - - WRITE - - WRITE_PROPERTIES - scope: - spaceIdScope: - spaceIds: - - springfield_sap - - dataModelsAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - cdf_cdm - - sessionsAcl: - actions: - - CREATE - scope: - all: {} - - projectsAcl: - actions: - - READ - - LIST - scope: - all: {} - - groupsAcl: - actions: - - LIST - scope: - all: {} - metadata: - origin: cognite-toolkit - name: gp_transformations_sap_springfield_s4hana - sourceId: -Space: -- description: 'This space contains all data from the SAP system SAP Springfield S/4HANA. - - The data is ingested from the SAP system using the SAP extractor - - ' - name: SAP Springfield S/4HANA instance space - space: springfield_sap -Transformation: -- conflictMode: upsert - dataSetId: 42 - destination: - instanceSpace: springfield_sap - type: nodes - view: - externalId: CogniteAsset - space: cdf_cdm - version: v1 - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${SAP_SPRINGFIELD_S4HANA_CLIENT_ID} - clientSecret: ${SAP_SPRINGFIELD_S4HANA_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: sap_asset_sap_s4hana - ignoreNullFields: true - isPublic: true - name: Asset Transformations for SAP Springfield S/4HANA - query: "/* MAPPING_MODE_ENABLED: false */\n/* {\"version\":1,\"sourceType\":\"raw\"\ - ,\"mappings\":[{\"from\":\"externalId\",\"to\":\"externalId\",\"asType\":\"STRING\"\ - },{\"from\":\"\",\"to\":\"aliases\",\"asType\":\"ARRAY\"},{\"from\":\"\ - name\",\"to\":\"name\",\"asType\":\"STRING\"},{\"from\":\"\",\"to\":\"source\"\ - ,\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"},{\"from\":\"\",\"\ - to\":\"path\",\"asType\":\"ARRAY>\"\ - },{\"from\":\"\",\"to\":\"root\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"\ - },{\"from\":\"\",\"to\":\"assetClass\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"\ - },{\"from\":\"\",\"to\":\"sourceUpdatedUser\",\"asType\":\"STRING\"},{\"from\"\ - :\"\",\"to\":\"pathLastUpdatedTime\",\"asType\":\"TIMESTAMP\"},{\"from\":\"\"\ - ,\"to\":\"sourceUpdatedTime\",\"asType\":\"TIMESTAMP\"},{\"from\":\"\",\"to\"\ - :\"type\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"},{\"from\"\ - :\"\",\"to\":\"sourceCreatedUser\",\"asType\":\"STRING\"},{\"from\":\"\",\"to\"\ - :\"parent\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"},{\"from\"\ - :\"description\",\"to\":\"description\",\"asType\":\"STRING\"},{\"from\":\"\"\ - ,\"to\":\"tags\",\"asType\":\"ARRAY\"},{\"from\":\"\",\"to\":\"sourceCreatedTime\"\ - ,\"asType\":\"TIMESTAMP\"},{\"from\":\"\",\"to\":\"sourceContext\",\"asType\"\ - :\"STRING\"},{\"from\":\"\",\"to\":\"sourceId\",\"asType\":\"STRING\"},{\"from\"\ - :\"\",\"to\":\"object3D\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"\ - }],\"sourceLevel1\":\"sap_staging\",\"sourceLevel2\":\"dump\"} */\nselect\n concat('WMT:',\ - \ cast(`WMT_TAG_NAME` as STRING)) as externalId,\n cast(`WMT_TAG_NAME` as STRING)\ - \ as name,\n cast(`WMT_TAG_DESC` as STRING) as description,\n cast(`WMT_TAG_ID`\ - \ as STRING) as sourceId, \n cast(`WMT_TAG_CREATED_DATE` as TIMESTAMP) as sourceCreatedTime,\n\ - \ cast(`WMT_TAG_UPDATED_DATE` as TIMESTAMP) as sourceUpdatedTime,\n cast(`WMT_TAG_UPDATED_BY`\ - \ as STRING) as sourceUpdatedUser\nfrom\n `sap_s4hana`.`dump`\nwhere\n isnotnull(`WMT_TAG_NAME`)\ - \ AND\n/* Inspection of the WMT_TAG_DESC looks like asset are category 1157 while\ - \ equipment is everything else */\n cast(`WMT_CATEGORY_ID` as INT) = 1157\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${SAP_SPRINGFIELD_S4HANA_CLIENT_ID} - clientSecret: ${SAP_SPRINGFIELD_S4HANA_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - instanceSpace: springfield_sap - type: nodes - view: - externalId: CogniteEquipment - space: cdf_cdm - version: v1 - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${SAP_SPRINGFIELD_S4HANA_CLIENT_ID} - clientSecret: ${SAP_SPRINGFIELD_S4HANA_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: sap_equipment_sap_s4hana - ignoreNullFields: true - isPublic: true - name: Equipment Transformations for SAP Springfield S/4HANA - query: "/* MAPPING_MODE_ENABLED: false */\n/* {\"version\":1,\"sourceType\":\"raw\"\ - ,\"mappings\":[{\"from\":\"externalId\",\"to\":\"externalId\",\"asType\":\"STRING\"\ - },{\"from\":\"\",\"to\":\"aliases\",\"asType\":\"ARRAY\"},{\"from\":\"\ - name\",\"to\":\"name\",\"asType\":\"STRING\"},{\"from\":\"\",\"to\":\"source\"\ - ,\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"},{\"from\":\"\",\"\ - to\":\"path\",\"asType\":\"ARRAY>\"\ - },{\"from\":\"\",\"to\":\"root\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"\ - },{\"from\":\"\",\"to\":\"assetClass\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"\ - },{\"from\":\"\",\"to\":\"sourceUpdatedUser\",\"asType\":\"STRING\"},{\"from\"\ - :\"\",\"to\":\"pathLastUpdatedTime\",\"asType\":\"TIMESTAMP\"},{\"from\":\"\"\ - ,\"to\":\"sourceUpdatedTime\",\"asType\":\"TIMESTAMP\"},{\"from\":\"\",\"to\"\ - :\"type\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"},{\"from\"\ - :\"\",\"to\":\"sourceCreatedUser\",\"asType\":\"STRING\"},{\"from\":\"\",\"to\"\ - :\"parent\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"},{\"from\"\ - :\"description\",\"to\":\"description\",\"asType\":\"STRING\"},{\"from\":\"\"\ - ,\"to\":\"tags\",\"asType\":\"ARRAY\"},{\"from\":\"\",\"to\":\"sourceCreatedTime\"\ - ,\"asType\":\"TIMESTAMP\"},{\"from\":\"\",\"to\":\"sourceContext\",\"asType\"\ - :\"STRING\"},{\"from\":\"\",\"to\":\"sourceId\",\"asType\":\"STRING\"},{\"from\"\ - :\"\",\"to\":\"object3D\",\"asType\":\"STRUCT<`space`:STRING, `externalId`:STRING>\"\ - }],\"sourceLevel1\":\"sap_staging\",\"sourceLevel2\":\"dump\"} */\nselect\n concat('WMT:',\ - \ cast(`WMT_TAG_NAME` as STRING)) as externalId,\n cast(`WMT_TAG_NAME` as STRING)\ - \ as name,\n cast(`WMT_TAG_DESC` as STRING) as description,\n cast(`WMT_TAG_ID`\ - \ as STRING) as sourceId, \n cast(`WMT_TAG_CREATED_DATE` as TIMESTAMP) as sourceCreatedTime,\n\ - \ cast(`WMT_TAG_UPDATED_DATE` as TIMESTAMP) as sourceUpdatedTime,\n cast(`WMT_TAG_UPDATED_BY`\ - \ as STRING) as sourceUpdatedUser,\n cast(`WMT_CONTRACTOR_ID` as STRING) as manufacturer,\n\ - \ cast(`WMT_TAG_GLOBALID` as STRING) as serialNumber\nfrom\n `sap_s4hana`.`dump`\n\ - where\n isnotnull(`WMT_TAG_NAME`) AND\n cast(`WMT_CATEGORY_ID` as INT) != 1157\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${SAP_SPRINGFIELD_S4HANA_CLIENT_ID} - clientSecret: ${SAP_SPRINGFIELD_S4HANA_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -- conflictMode: upsert - dataSetId: 42 - destination: - instanceSpace: springfield_sap - type: nodes - view: - externalId: CogniteEquipment - space: cdf_cdm - version: v1 - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${SAP_SPRINGFIELD_S4HANA_CLIENT_ID} - clientSecret: ${SAP_SPRINGFIELD_S4HANA_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: sap_equipment_to_asset_sap_s4hana - ignoreNullFields: true - isPublic: true - name: Equipment to Asset Transformations for SAP Springfield S/4HANA - query: "select\n concat('WMT:', cast(d1.`WMT_TAG_NAME` as STRING)) as externalId,\n\ - \ node_reference('springfield_sap', concat('WMT', cast(d2.`WMT_TAG_NAME` as\ - \ STRING))) as asset\nfrom\n sap_s4hana.`dump` d1\njoin\n sap_s4hana.`dump`\ - \ d2\non\n d1.`WMT_TAG_ID_ANCESTOR` = d2.`WMT_TAG_ID`\nwhere\n isnotnull(d1.`WMT_TAG_NAME`)\ - \ AND\n cast(d1.`WMT_CATEGORY_ID` as INT) != 1157 AND\n isnotnull(d2.`WMT_TAG_NAME`)\ - \ AND\n cast(d2.`WMT_CATEGORY_ID` as INT) = 1157\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${SAP_SPRINGFIELD_S4HANA_CLIENT_ID} - clientSecret: ${SAP_SPRINGFIELD_S4HANA_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy -Workflow: -- description: This workflow populates the Cognite Data Platform with data from the - SAP system SAP Springfield S/4HANA. - externalId: sap_s4hana_population -WorkflowTrigger: -- externalId: sap_population_sap_s4hana - triggerRule: - cronExpression: 0 4 * * MON - triggerType: schedule - workflowExternalId: sap_s4hana_population - workflowVersion: v1 -WorkflowVersion: -- version: v1 - workflowDefinition: - tasks: - - externalId: sap_s4hana_population_task1 - onFailure: abortWorkflow - parameters: - transformation: - concurrencyPolicy: fail - externalId: sap_asset_sap_s4hana - retries: null - timeout: null - type: transformation - - externalId: sap_s4hana_population_task2 - onFailure: abortWorkflow - parameters: - transformation: - concurrencyPolicy: fail - externalId: sap_equipment_sap_s4hana - retries: null - timeout: null - type: transformation - - dependsOn: - - externalId: sap_s4hana_population_task1 - - externalId: sap_s4hana_population_task2 - externalId: sap_s4hana_population_task3 - onFailure: abortWorkflow - parameters: - transformation: - concurrencyPolicy: fail - externalId: sap_equipment_to_asset_sap_s4hana - retries: null - timeout: null - type: transformation - workflowExternalId: sap_s4hana_population diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_timeseries_equipment_sql.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_timeseries_equipment_sql.yaml deleted file mode 100644 index 61bab1688..000000000 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/cdf_timeseries_equipment_sql.yaml +++ /dev/null @@ -1,82 +0,0 @@ -DataSet: -- description: Transformations for contextualisations - externalId: contextualisation_transformations - metadata: {} - name: Contextualisation Transformations - writeProtected: false -Group: -- capabilities: - - projectsAcl: - actions: - - READ - - LIST - scope: - all: {} - - groupsAcl: - actions: - - LIST - scope: - all: {} - - sessionsAcl: - actions: - - CREATE - scope: - all: {} - - dataModelInstancesAcl: - actions: - - READ - - WRITE - - WRITE_PROPERTIES - scope: - spaceIdScope: - spaceIds: - - springfield_instances - - dataModelsAcl: - actions: - - READ - scope: - spaceIdScope: - spaceIds: - - cdf_cdm - metadata: - origin: cognite-toolkit - name: gp_transformations_timeseries_to_equipment - sourceId: -Transformation: -- conflictMode: upsert - dataSetId: 42 - destination: - instanceSpace: springfield_instances - type: nodes - view: - externalId: CogniteTimeSeries - space: cdf_cdm - version: v1 - destinationOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${TRANSFORMATIONS_CLIENT_ID} - clientSecret: ${TRANSFORMATIONS_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy - externalId: timeseries_to_equipment - ignoreNullFields: true - isPublic: true - name: TimeSeries to equipment Connection Transformation - query: "select\n /* three first properties are required */\n cast(timeseries.`externalId`\ - \ as STRING) as externalId, \n cast(timeseries.`isStep` as BOOLEAN) as isStep,\n\ - \ cast(timeseries.`type` as STRING) as type,\n /* direct relation */\n array(\n\ - \ node_reference(\n 'springfield_instances',\n equipment_lookup.`externalId`\n\ - \ )\n ) as equipment\nfrom\n cdf_data_models(\n \"cdf_idm\",\n \"CogniteProcessIndustries\"\ - ,\n \"v1\",\n \"CogniteTimeSeries\"\n ) as timeseries\nleft join cdf_data_models(\n\ - \ \"cdf_idm\",\n \"CogniteProcessIndustries\",\n \"v1\",\n \"CogniteEquipment\"\ - \n ) as equipment_lookup \n /* update to the correct matching criteria for your\ - \ data */\n on substring_index(replace(timeseries.`name`, 'VAL_', ''), ':', 1)\ - \ == equipment_lookup.`name`\nwhere\n timeseries.space == 'springfield_instances'\n" - sourceOidcCredentials: - audience: https://bluefield.cognitedata.com - cdfProjectName: pytest-project - clientId: ${TRANSFORMATIONS_CLIENT_ID} - clientSecret: ${TRANSFORMATIONS_CLIENT_SECRET} - scopes: https://bluefield.cognitedata.com/.default - tokenUri: dummy