Skip to content

Commit

Permalink
#846: add Deploy and Templating tests for dataExtract
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jul 19, 2023
1 parent d599a58 commit 45b86c3
Show file tree
Hide file tree
Showing 9 changed files with 434 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "testExisting_dataExtract",
"key": "testExisting_dataExtract",
"description": "updated on deploy",
"r__dataExtractType_name": "Data Extension Extract",
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
"intervalType": 0,
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testExisting_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "testNew_dataExtract",
"key": "testNew_dataExtract",
"description": "created via deploy",
"r__dataExtractType_name": "Data Extension Extract",
"fileSpec": "testNew-%%Year%%-%%Month%%-%%Day%%",
"intervalType": 0,
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testExisting_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"dataExtractDefinitionId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
"name": "testExisting_dataExtract",
"key": "testExisting_dataExtract",
"description": "created via deploy",
"dataExtractTypeId": "bb94a04d-9632-4623-be47-daabc3f588a6",
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
"createdBy": 700304523,
"modifiedBy": 700304523,
"intervalType": 0,
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testExisting_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"dataExtractDefinitionId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
"name": "testNew_dataExtract",
"key": "testNew_dataExtract",
"description": "blabla",
"dataExtractTypeId": "bb94a04d-9632-4623-be47-daabc3f588a6",
"fileSpec": "testNew-%%Year%%-%%Month%%-%%Day%%",
"createdBy": 700304523,
"modifiedBy": 700304523,
"intervalType": 0,
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testExisting_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
]
}
35 changes: 35 additions & 0 deletions test/resources/9999999/dataExtract/build-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testTemplated_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
],
"description": "blabla",
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
"intervalType": 0,
"key": "testTemplated_dataExtract",
"name": "testTemplated_dataExtract",
"r__dataExtractType_name": "Data Extension Extract"
}
37 changes: 37 additions & 0 deletions test/resources/9999999/dataExtract/patch-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"createdBy": 700304523,
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testExisting_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
],
"description": "created via deploy",
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
"intervalType": 0,
"key": "testExisting_dataExtract",
"modifiedBy": 700304523,
"name": "testExisting_dataExtract",
"r__dataExtractType_name": "Data Extension Extract"
}
37 changes: 37 additions & 0 deletions test/resources/9999999/dataExtract/post-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"createdBy": 700304523,
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "testExisting_dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
],
"description": "blabla",
"fileSpec": "testNew-%%Year%%-%%Month%%-%%Day%%",
"intervalType": 0,
"key": "testNew_dataExtract",
"modifiedBy": 700304523,
"name": "testNew_dataExtract",
"r__dataExtractType_name": "Data Extension Extract"
}
35 changes: 35 additions & 0 deletions test/resources/9999999/dataExtract/template-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"dataFields": [
{
"name": "ColumnDelimiter",
"type": "string",
"value": ","
},
{
"name": "DECustomerKey",
"type": "string",
"value": "{{{prefix}}}dataExtension"
},
{
"name": "HasColumnHeaders",
"type": "bool",
"value": "False"
},
{
"name": "TextQualified",
"type": "bool",
"value": "False"
},
{
"name": "UsesLineFeed",
"type": "bool",
"value": "False"
}
],
"description": "blabla",
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
"intervalType": 0,
"key": "{{{prefix}}}dataExtract",
"name": "{{{prefix}}}dataExtract",
"r__dataExtractType_name": "Data Extension Extract"
}
Loading

0 comments on commit 45b86c3

Please sign in to comment.