-
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.
#38: ensure fixKeys also re-schedules if the deployed automation was …
…scheduled already
- Loading branch information
1 parent
0b61fbf
commit 2f9e54b
Showing
6 changed files
with
202 additions
and
24 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
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
45 changes: 45 additions & 0 deletions
45
test/resources/9999999/automation/patch_fixKeys-expected.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,45 @@ | ||
{ | ||
"description": "updated on deploy", | ||
"key": "testExisting_automation_paused", | ||
"name": "testExisting_automation_paused", | ||
"r__folder_Path": "my automations", | ||
"schedule": { | ||
"endDate": "2022-07-30T00:00:00", | ||
"icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1", | ||
"startDate": "2022-07-30T00:00:00", | ||
"timezoneName": "W. Europe Standard Time" | ||
}, | ||
"status": "Scheduled", | ||
"steps": [ | ||
{ | ||
"activities": [ | ||
{ | ||
"name": "testExisting_dataExtract", | ||
"r__type": "dataExtract" | ||
}, | ||
{ | ||
"name": "testExisting_emailSend", | ||
"r__type": "emailSend" | ||
}, | ||
{ | ||
"name": "testExisting_fileTransfer", | ||
"r__type": "fileTransfer" | ||
}, | ||
{ | ||
"name": "testExisting_importFile", | ||
"r__type": "importFile" | ||
}, | ||
{ | ||
"name": "testExisting_query", | ||
"r__type": "query" | ||
}, | ||
{ | ||
"name": "testExisting_script", | ||
"r__type": "script" | ||
} | ||
], | ||
"name": "" | ||
} | ||
], | ||
"type": "scheduled" | ||
} |
2 changes: 1 addition & 1 deletion
2
...sources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/get-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
85 changes: 85 additions & 0 deletions
85
...urces/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/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,85 @@ | ||
{ | ||
"legacyId": "RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED", | ||
"name": "testExisting_automation_paused", | ||
"description": "updated on deploy", | ||
"key": "testExisting_automation_paused", | ||
"typeId": 1, | ||
"type": "scheduled", | ||
"statusId": 4, | ||
"status": "Scheduled", | ||
"schedule": { | ||
"id": "b393aa6c-a4a8-4c0f-a148-9250258a7339", | ||
"typeId": 3, | ||
"startDate": "2022-07-30T00:00:00", | ||
"endDate": "2022-07-30T00:00:00", | ||
"scheduledTime": "0001-01-01T07:00:00", | ||
"rangeTypeId": 0, | ||
"occurrences": 1, | ||
"pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>", | ||
"icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1", | ||
"timezoneName": "W. Europe Standard Time", | ||
"scheduleStatus": "scheduled", | ||
"timezoneId": 5 | ||
}, | ||
"steps": [ | ||
{ | ||
"activities": [ | ||
{ | ||
"id": "8081a992-a27d-4a43-984a-d60114ea1025", | ||
"name": "testExisting_dataExtract", | ||
"activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7", | ||
"objectTypeId": 73, | ||
"displayOrder": 1 | ||
}, | ||
{ | ||
"id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e", | ||
"name": "testExisting_emailSend", | ||
"activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b", | ||
"objectTypeId": 42, | ||
"displayOrder": 2 | ||
}, | ||
{ | ||
"id": "2c77fc42-85eb-4611-98f9-223d29d89d72", | ||
"name": "testExisting_fileTransfer", | ||
"activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6", | ||
"objectTypeId": 53, | ||
"displayOrder": 3 | ||
}, | ||
{ | ||
"id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7", | ||
"name": "testExisting_importFile", | ||
"activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b", | ||
"objectTypeId": 43, | ||
"displayOrder": 4, | ||
"targetDataExtensions": [ | ||
{ | ||
"id": "21711373-72c1-ec11-b83b-48df37d1deb7", | ||
"name": "testExisting_dataExtension", | ||
"key": "testExisting_dataExtension", | ||
"description": "bla bla", | ||
"rowCount": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e", | ||
"name": "testExisting_query_WRONG_NAME", | ||
"activityObjectId": "549f0568-607c-4940-afef-437965094dat", | ||
"objectTypeId": 300, | ||
"displayOrder": 5 | ||
}, | ||
{ | ||
"id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e", | ||
"name": "testExisting_script", | ||
"activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4", | ||
"objectTypeId": 423, | ||
"displayOrder": 6 | ||
} | ||
], | ||
"annotation": "", | ||
"stepNumber": 0 | ||
} | ||
], | ||
"categoryId": 290937, | ||
"id": "08afb0e2-b00a-4c88-ad2e-1f7f8788c560" | ||
} |
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