-
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.
Merge pull request #1303 from Accenture/feature/1302-automatically-ad…
…d-suffix-to-key Feature/1302 + Bugfix/1298 automatically add suffix to key
- Loading branch information
Showing
13 changed files
with
281 additions
and
36 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
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
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
17 changes: 17 additions & 0 deletions
17
...utomation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeysSuffix/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"queryDefinitionId": "549f0568-607c-4940-afef-437965094dat_fixKeysSuffix", | ||
"name": "testExisting_query_fixedKeys", | ||
"key": "testExisting_query_fixKeysSuffix", | ||
"description": "bla bla", | ||
"queryText": "Select\n SubscriberKey as testField, Trim(last_name) AS name\nfrom\n _Subscribers\nwhere\n country in ('test')\n", | ||
"targetName": "testExisting_dataExtension", | ||
"targetKey": "testExisting_dataExtension", | ||
"targetId": "21711373-72c1-ec11-b83b-48df37d1deb7", | ||
"targetDescription": "", | ||
"createdDate": "2022-04-26T15:21:16.453", | ||
"modifiedDate": "2022-04-26T16:02:44.01", | ||
"targetUpdateTypeId": 0, | ||
"targetUpdateTypeName": "Overwrite", | ||
"categoryId": 999, | ||
"isFrozen": false | ||
} |
18 changes: 18 additions & 0 deletions
18
...omation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeysSuffix/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,18 @@ | ||
{ | ||
"queryDefinitionId": "549f0568-607c-4940-afef-437965094dat_fixKeys", | ||
"name": "testExisting_query_fixedKeys", | ||
"key": "testExisting_query_fixedKeys_DEV", | ||
"description": "updated on deploy", | ||
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n", | ||
"targetName": "testExisting_dataExtension", | ||
"targetKey": "testExisting_dataExtension", | ||
"targetId": "21711373-72c1-ec11-b83b-48df37d1deb7", | ||
"targetDescription": "", | ||
"createdDate": "2022-04-26T15:21:16.453", | ||
"modifiedDate": "2022-04-26T16:04:15.88", | ||
"targetUpdateTypeId": 0, | ||
"targetUpdateTypeName": "Overwrite", | ||
"validatedQueryText": "SET NOCOUNT ON; SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;\r\n\r\nINSERT INTO C518001158.[testDataExtension] ([testField])\r\nSELECT querydef.[testField]\r\nFROM (SELECT SubscriberKey as testField FROM C518001158._Subscribers ) AS querydef \r\nSELECT @rcInsert = @@ROWCOUNT;;\r\n", | ||
"categoryId": 999, | ||
"isFrozen": false | ||
} |
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
11 changes: 11 additions & 0 deletions
11
test/resources/9999999/query/patch_fixKeysSuffix-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,11 @@ | ||
{ | ||
"name": "testExisting_query_fixedKeys", | ||
"key": "testExisting_query_fixedKeys_DEV", | ||
"description": "updated on deploy", | ||
"targetKey": "testExisting_dataExtension", | ||
"createdDate": "2022-04-26T15:21:16.453", | ||
"modifiedDate": "2022-04-26T16:04:15.88", | ||
"targetUpdateTypeName": "Overwrite", | ||
"isFrozen": false, | ||
"r__folder_Path": "Query" | ||
} |
6 changes: 6 additions & 0 deletions
6
test/resources/9999999/query/patch_fixKeysSuffix-expected.sql
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,6 @@ | ||
SELECT | ||
SubscriberKey AS testField | ||
FROM | ||
_Subscribers | ||
WHERE | ||
country IN ('test') |
30 changes: 30 additions & 0 deletions
30
...nition/retrieve-CustomerKey=testExisting_query_fixKeysSuffixANDStatus=Active-response.xml
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" | ||
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" | ||
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | ||
<soap:Header> | ||
<wsa:Action>RetrieveResponse</wsa:Action> | ||
<wsa:MessageID>urn:uuid:7ef0345e-b559-4fc4-8986-47e54e1a8a58</wsa:MessageID> | ||
<wsa:RelatesTo>urn:uuid:b2e814a6-517c-4882-9bbb-238bfce951ce</wsa:RelatesTo> | ||
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> | ||
<wsse:Security> | ||
<wsu:Timestamp wsu:Id="Timestamp-dfc4ae59-8642-4432-b505-554669b47186"> | ||
<wsu:Created>2023-04-11T16:33:48Z</wsu:Created> | ||
<wsu:Expires>2023-04-11T16:38:48Z</wsu:Expires> | ||
</wsu:Timestamp> | ||
</wsse:Security> | ||
</soap:Header> | ||
<soap:Body> | ||
<RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI"> | ||
<OverallStatus>OK</OverallStatus> | ||
<RequestID>e8eb2988-2f43-4243-a6b0-6ab6b841a6ab</RequestID> | ||
<Results xsi:type="QueryDefinition"> | ||
<PartnerKey xsi:nil="true" /> | ||
<ObjectID>549f0568-607c-4940-afef-437965094dat_fixKeysSuffix</ObjectID> | ||
</Results> | ||
</RetrieveResponseMsg> | ||
</soap:Body> | ||
</soap:Envelope> |
Oops, something went wrong.