diff --git a/tests/data/complete_org/config.dev.yaml b/tests/data/complete_org/config.dev.yaml index 2223a6588..17e264d32 100644 --- a/tests/data/complete_org/config.dev.yaml +++ b/tests/data/complete_org/config.dev.yaml @@ -29,3 +29,4 @@ variables: example_variable: foo workflow_external_id: baz example_secret: '${ENVIRONMENT_SECRET}' + space_files: sp_complete_org_files diff --git a/tests/data/complete_org/modules/my_file_expand_module/data_models/file.Space.yaml b/tests/data/complete_org/modules/my_file_expand_module/data_models/file.Space.yaml new file mode 100644 index 000000000..627d5cf62 --- /dev/null +++ b/tests/data/complete_org/modules/my_file_expand_module/data_models/file.Space.yaml @@ -0,0 +1 @@ +space: {{ space_files }} diff --git a/tests/data/complete_org/modules/my_file_expand_module/files/filecontent.txt b/tests/data/complete_org/modules/my_file_expand_module/files/filecontent.txt new file mode 100644 index 000000000..eeced46d3 --- /dev/null +++ b/tests/data/complete_org/modules/my_file_expand_module/files/filecontent.txt @@ -0,0 +1 @@ +This the content of a file. \ No newline at end of file diff --git a/tests/data/complete_org/modules/my_file_expand_module/files/my.CogniteFile.yaml b/tests/data/complete_org/modules/my_file_expand_module/files/my.CogniteFile.yaml new file mode 100644 index 000000000..06140fe85 --- /dev/null +++ b/tests/data/complete_org/modules/my_file_expand_module/files/my.CogniteFile.yaml @@ -0,0 +1,7 @@ +- space: {{ space_files }} + externalId: $FILENAME + name: $FILENAME + mimeType: text/plain + tags: + - tag1 + - tag2 diff --git a/tests/test_unit/test_cli/test_build_deploy_snapshots/complete_org.yaml b/tests/test_unit/test_cli/test_build_deploy_snapshots/complete_org.yaml index b4fea87b6..f216bfa9e 100644 --- a/tests/test_unit/test_cli/test_build_deploy_snapshots/complete_org.yaml +++ b/tests/test_unit/test_cli/test_build_deploy_snapshots/complete_org.yaml @@ -155,6 +155,9 @@ FileLoader: space: sp_nodes - external_id: classicFileMetadata filehash: c646656c +- externalId: filecontent.txt + filehash: e0b202a1 + space: sp_complete_org_files FileMetadata: - dataSetId: 42 directory: /files @@ -355,6 +358,33 @@ Node: type: view version: v1 space: sp_nodes +- externalId: filecontent.txt + instanceType: node + sources: + - properties: + aliases: null + assets: null + category: null + description: null + directory: null + mimeType: text/plain + name: filecontent.txt + source: null + sourceContext: null + sourceCreatedTime: null + sourceCreatedUser: null + sourceId: null + sourceUpdatedTime: null + sourceUpdatedUser: null + tags: + - tag1 + - tag2 + source: + externalId: CogniteFile + space: cdf_cdm + type: view + version: v1 + space: sp_complete_org_files RobotCapability: - dataHandlingSchema: $schema: http://json-schema.org/draft-07/schema# @@ -463,6 +493,7 @@ Source: type: eventhub Space: - space: DataModelSpace +- space: sp_complete_org_files - space: sp_nodes - space: sp_schema Table: