-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1302: test for --keySuffix on CREATE
- Loading branch information
1 parent
de99de8
commit 9a77946
Showing
9 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
test/mockRoot/deploy/testInstance/_ParentBU_/query/testNew_query.query-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,11 @@ | ||
{ | ||
"name": "testNew_query", | ||
"key": "testNew_query", | ||
"description": "created on deploy", | ||
"targetKey": "testExisting_dataExtensionShared", | ||
"createdDate": "2022-04-26T15:21:16.453", | ||
"modifiedDate": "2022-04-26T16:04:15.88", | ||
"targetUpdateTypeName": "Overwrite", | ||
"isFrozen": false, | ||
"r__folder_Path": "Query" | ||
} |
4 changes: 4 additions & 0 deletions
4
test/mockRoot/deploy/testInstance/_ParentBU_/query/testNew_query.query-meta.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,4 @@ | ||
SELECT | ||
SubscriberKey as testField | ||
FROM | ||
_Subscribers |
6 changes: 6 additions & 0 deletions
6
test/resources/1111111/automation/v1/queries/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,6 @@ | ||
{ | ||
"count": 0, | ||
"page": 1, | ||
"pageSize": 50, | ||
"items": [] | ||
} |
18 changes: 18 additions & 0 deletions
18
test/resources/1111111/automation/v1/queries/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,18 @@ | ||
{ | ||
"queryDefinitionId": "549f0568-607c-4940-afef-437965094d-keySuffix", | ||
"name": "testNew_query", | ||
"key": "testNew_query_DEV", | ||
"description": "created on deploy", | ||
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\n", | ||
"targetName": "testExisting_dataExtensionShared", | ||
"targetKey": "testExisting_dataExtensionShared", | ||
"targetId": "21711373-72c1-ec11-b83b-shared", | ||
"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": 9991, | ||
"isFrozen": false | ||
} |
48 changes: 48 additions & 0 deletions
48
test/resources/1111111/dataFolder/retrieve-ContentType=queryactivity-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,48 @@ | ||
<?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:f36f3303-3b5a-4641-8109-b26447634d91</wsa:MessageID> | ||
<wsa:RelatesTo>urn:uuid:33983968-28c4-4379-bb5f-f80ae32eb988</wsa:RelatesTo> | ||
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> | ||
<wsse:Security> | ||
<wsu:Timestamp wsu:Id="Timestamp-32ecc81b-6020-473c-9e99-4b5338921220"> | ||
<wsu:Created>2022-04-19T20:03:41Z</wsu:Created> | ||
<wsu:Expires>2022-04-19T20:08:41Z</wsu:Expires> | ||
</wsu:Timestamp> | ||
</wsse:Security> | ||
</soap:Header> | ||
<soap:Body> | ||
<RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI"> | ||
<OverallStatus>OK</OverallStatus> | ||
<RequestID>02cd5ccb-8f84-4651-826f-71169eeecf05</RequestID> | ||
<Results xsi:type="DataFolder"> | ||
<Client> | ||
<ID>1111111</ID> | ||
</Client> | ||
<PartnerKey xsi:nil="true" /> | ||
<CreatedDate>2016-07-22T11:52:20.407</CreatedDate> | ||
<ModifiedDate>2016-07-22T11:52:20.407</ModifiedDate> | ||
<ID>9991</ID> | ||
<ObjectID xsi:nil="true" /> | ||
<CustomerKey>queryactivity_default</CustomerKey> | ||
<ParentFolder> | ||
<PartnerKey xsi:nil="true" /> | ||
<ID>0</ID> | ||
<ObjectID xsi:nil="true" /> | ||
</ParentFolder> | ||
<Name>Query</Name> | ||
<Description /> | ||
<ContentType>queryactivity</ContentType> | ||
<IsActive>true</IsActive> | ||
<IsEditable>false</IsEditable> | ||
<AllowChildren>true</AllowChildren> | ||
</Results> | ||
</RetrieveResponseMsg> | ||
</soap:Body> | ||
</soap:Envelope> |
11 changes: 11 additions & 0 deletions
11
test/resources/1111111/query/patch_keySuffix-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": "testNew_query", | ||
"key": "testNew_query_DEV", | ||
"description": "created on deploy", | ||
"targetKey": "testExisting_dataExtensionShared", | ||
"createdDate": "2022-04-26T15:21:16.453", | ||
"modifiedDate": "2022-04-26T16:04:15.88", | ||
"targetUpdateTypeName": "Overwrite", | ||
"isFrozen": false, | ||
"r__folder_Path": "Query" | ||
} |
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,4 @@ | ||
SELECT | ||
SubscriberKey AS testField | ||
FROM | ||
_Subscribers |
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