-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#852: add test class for type importFile
- Loading branch information
1 parent
9bc583c
commit 8008444
Showing
12 changed files
with
484 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ckRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"allowErrors": true, | ||
"createdDate": "2022-11-09T05:32:30.533", | ||
"customerKey": "testExisting_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "updated on deploy", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"modifiedDate": "2022-11-17T07:13:03.95", | ||
"name": "testExisting_importFile", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true, | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP", | ||
"c__destinationType": "DataExtension", | ||
"r__dataExtension_CustomerKey": "testExisting_dataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"c__dataAction": "AddUpdate" | ||
} |
29 changes: 29 additions & 0 deletions
29
test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"allowErrors": true, | ||
"createdDate": "2022-11-09T05:32:30.533", | ||
"customerKey": "testNew_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "created via deploy", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"modifiedDate": "2022-11-17T07:13:03.95", | ||
"name": "testNew_importFile", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true, | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP", | ||
"c__destinationType": "DataExtension", | ||
"r__dataExtension_CustomerKey": "testExisting_dataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"c__dataAction": "AddUpdate" | ||
} |
31 changes: 31 additions & 0 deletions
31
...es/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/patch-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"allowErrors": true, | ||
"customerKey": "testExisting_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "updated on deploy", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"name": "testExisting_importFile", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true, | ||
"fileTransferLocationId": "41a5ded7-0d98-4910-a15f-d09e7ab0af24", | ||
"destinationObjectId": "21711373-72c1-ec11-b83b-48df37d1deb7", | ||
"destinationObjectTypeId": 310, | ||
"subscriberImportTypeId": 255, | ||
"updateTypeId": 0, | ||
"importDefinitionId": "9d16f42c-2260-ed11-b849-48df37d1de8b", | ||
"createdDate": "2022-11-09T05:53:03.243", | ||
"destinationId": 0, | ||
"modifiedDate": "2023-07-18T09:11:26.19" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/resources/9999999/automation/v1/imports/post-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"allowErrors": true, | ||
"customerKey": "testNew_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "created via deploy", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"name": "testNew_importFile", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true, | ||
"fileTransferLocationId": "41a5ded7-0d98-4910-a15f-d09e7ab0af24", | ||
"destinationObjectId": "21711373-72c1-ec11-b83b-48df37d1deb7", | ||
"destinationObjectTypeId": 310, | ||
"subscriberImportTypeId": 255, | ||
"updateTypeId": 0, | ||
"createdDate": "2022-11-09T05:53:03.243", | ||
"destinationId": 0, | ||
"modifiedDate": "2023-07-18T09:11:26.19" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"allowErrors": true, | ||
"c__dataAction": "AddUpdate", | ||
"c__destinationType": "DataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"customerKey": "testTemplated_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "17.11.2022", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"name": "testTemplated_importFile", | ||
"r__dataExtension_CustomerKey": "testTemplated_dataExtension", | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"allowErrors": true, | ||
"createdDate": "2022-11-09T05:32:30.533", | ||
"customerKey": "testExisting_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "17.11.2022", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"modifiedDate": "2022-11-17T07:13:03.95", | ||
"name": "testExisting_importFile", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true, | ||
"c__dataAction": "AddUpdate", | ||
"c__destinationType": "DataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"r__dataExtension_CustomerKey": "testExisting_dataExtension", | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"allowErrors": true, | ||
"c__dataAction": "AddUpdate", | ||
"c__destinationType": "DataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"createdDate": "2022-11-09T05:53:03.243", | ||
"customerKey": "testExisting_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "updated on deploy", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"modifiedDate": "2023-07-18T09:11:26.19", | ||
"name": "testExisting_importFile", | ||
"r__dataExtension_CustomerKey": "testExisting_dataExtension", | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"allowErrors": true, | ||
"c__dataAction": "AddUpdate", | ||
"c__destinationType": "DataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"createdDate": "2022-11-09T05:53:03.243", | ||
"customerKey": "testNew_importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "created via deploy", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"modifiedDate": "2023-07-18T09:11:26.19", | ||
"name": "testNew_importFile", | ||
"r__dataExtension_CustomerKey": "testExisting_dataExtension", | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"allowErrors": true, | ||
"c__dataAction": "AddUpdate", | ||
"c__destinationType": "DataExtension", | ||
"c__subscriberImportType": "DataExtension", | ||
"customerKey": "{{{prefix}}}importFile", | ||
"dateFormatLocale": "en-US", | ||
"deleteFile": false, | ||
"description": "17.11.2022", | ||
"fieldMappingType": "InferFromColumnHeadings", | ||
"fieldMappings": [], | ||
"fileNamingPattern": "blabla", | ||
"fileTransferLocationTypeId": 0, | ||
"fileType": "CSV", | ||
"filter": "", | ||
"hasColumnHeader": true, | ||
"isOrderedImport": true, | ||
"isSequential": true, | ||
"maxFileAgeHours": 0, | ||
"maxFileAgeScheduleOffsetHours": 0, | ||
"maxImportFrequencyHours": 0, | ||
"name": "{{{prefix}}}importFile", | ||
"r__dataExtension_CustomerKey": "{{{prefix}}}dataExtension", | ||
"r__fileLocation_name": "ExactTarget Enhanced FTP", | ||
"sendEmailNotification": false, | ||
"standardQuotedStrings": true | ||
} |
Oops, something went wrong.