Skip to content

Commit c5beb7d

Browse files
#1781 replace script slash folder tests with asset tests, expand deployFolderTypesAssetRest
Co-authored-by: JoernBerkefeld <1917227+JoernBerkefeld@users.noreply.github.com>
1 parent bea64c6 commit c5beb7d

17 files changed

Lines changed: 602 additions & 165 deletions

lib/metadataTypes/definitions/Folder.definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default {
5757
'triggered_send',
5858
],
5959
deployFolderTypesEmailRest: ['automations', 'journey', 'triggered_send_journeybuilder'],
60-
deployFolderTypesAssetRest: ['cloudpages'],
60+
deployFolderTypesAssetRest: ['cloudpages', 'asset', 'asset-shared'],
6161
deployFolderBlacklist: [
6262
// lower-case values!
6363
'shared data extensions',
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<table
2+
cellpadding="0"
3+
cellspacing="0"
4+
width="100%"
5+
role="presentation"
6+
style="min-width: 100%"
7+
class="stylingblock-content-wrapper"
8+
>
9+
<tr>
10+
<td class="stylingblock-content-wrapper camarker-inner">test</td>
11+
</tr>
12+
</table>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"customerKey": "test_slash",
3+
"assetType": {
4+
"name": "htmlblock",
5+
"displayName": "HTML Block"
6+
},
7+
"fileProperties": {
8+
"fileName": "test_slash"
9+
},
10+
"name": "test_slash",
11+
"createdBy": {},
12+
"modifiedBy": {},
13+
"memberId": "9999999",
14+
"status": {
15+
"name": "Draft"
16+
},
17+
"design": "",
18+
"meta": {
19+
"wrapperStyles": {
20+
"mobile": {
21+
"visible": true
22+
},
23+
"styling": {}
24+
}
25+
},
26+
"availableViews": [],
27+
"modelVersion": 2,
28+
"r__folder_Path": "Content Builder/bla∕blub"
29+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<table
2+
cellpadding="0"
3+
cellspacing="0"
4+
width="100%"
5+
role="presentation"
6+
style="min-width: 100%"
7+
class="stylingblock-content-wrapper"
8+
>
9+
<tr>
10+
<td class="stylingblock-content-wrapper camarker-inner">test</td>
11+
</tr>
12+
</table>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"customerKey": "test_slash",
3+
"assetType": {
4+
"name": "htmlblock",
5+
"displayName": "HTML Block"
6+
},
7+
"fileProperties": {
8+
"fileName": "test_slash"
9+
},
10+
"name": "test_slash",
11+
"createdBy": {},
12+
"modifiedBy": {},
13+
"memberId": "9999999",
14+
"status": {
15+
"name": "Draft"
16+
},
17+
"design": "",
18+
"meta": {
19+
"wrapperStyles": {
20+
"mobile": {
21+
"visible": true
22+
},
23+
"styling": {}
24+
}
25+
},
26+
"availableViews": [],
27+
"modelVersion": 2,
28+
"r__folder_Path": "Content Builder/bla∕blub"
29+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"id": 16992,
3+
"customerKey": "test_slash",
4+
"objectID": "13f34d9c-f555-4fce-b862-26ff7f9fef7a",
5+
"assetType": {
6+
"id": 197,
7+
"name": "htmlblock",
8+
"displayName": "HTML Block"
9+
},
10+
"fileProperties": {
11+
"fileName": "test_slash"
12+
},
13+
"name": "test_slash",
14+
"owner": {
15+
"id": 710420432,
16+
"email": "",
17+
"name": "IDE - joern.berkefeld app user",
18+
"userId": "710420432"
19+
},
20+
"createdDate": "2026-03-06T07:47:11.04-06:00",
21+
"createdBy": {
22+
"id": 710420432,
23+
"email": "",
24+
"name": "IDE - joern.berkefeld app user",
25+
"userId": "710420432"
26+
},
27+
"modifiedDate": "2026-03-06T07:47:11.04-06:00",
28+
"modifiedBy": {
29+
"id": 710420432,
30+
"email": "",
31+
"name": "IDE - joern.berkefeld app user",
32+
"userId": "710420432"
33+
},
34+
"enterpriseId": 1111111,
35+
"memberId": 9999999,
36+
"status": {
37+
"id": 1,
38+
"name": "Draft"
39+
},
40+
"thumbnail": {
41+
"thumbnailUrl": "/v1/assets/16992/thumbnail"
42+
},
43+
"category": {
44+
"id": 38491,
45+
"name": "bla/blub",
46+
"parentId": 89397
47+
},
48+
"content": "<table\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"100%\"\n role=\"presentation\"\n style=\"min-width: 100%\"\n class=\"stylingblock-content-wrapper\"\n>\n <tr>\n <td class=\"stylingblock-content-wrapper camarker-inner\">test</td>\n </tr>\n</table>\n",
49+
"design": "",
50+
"meta": {
51+
"wrapperStyles": {
52+
"mobile": {
53+
"visible": true
54+
},
55+
"styling": {}
56+
}
57+
},
58+
"availableViews": [],
59+
"modelVersion": 2
60+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"id": 16992,
3+
"customerKey": "test_slash",
4+
"objectID": "13f34d9c-f555-4fce-b862-26ff7f9fef7a",
5+
"assetType": {
6+
"id": 197,
7+
"name": "htmlblock",
8+
"displayName": "HTML Block"
9+
},
10+
"fileProperties": {
11+
"fileName": "test_slash"
12+
},
13+
"name": "test_slash",
14+
"owner": {
15+
"id": 710420432,
16+
"email": "",
17+
"name": "IDE - joern.berkefeld app user",
18+
"userId": "710420432"
19+
},
20+
"createdDate": "2026-03-06T07:47:11.04-06:00",
21+
"createdBy": {
22+
"id": 710420432,
23+
"email": "",
24+
"name": "IDE - joern.berkefeld app user",
25+
"userId": "710420432"
26+
},
27+
"modifiedDate": "2026-03-06T07:47:11.04-06:00",
28+
"modifiedBy": {
29+
"id": 710420432,
30+
"email": "",
31+
"name": "IDE - joern.berkefeld app user",
32+
"userId": "710420432"
33+
},
34+
"enterpriseId": 1111111,
35+
"memberId": 9999999,
36+
"status": {
37+
"id": 1,
38+
"name": "Draft"
39+
},
40+
"thumbnail": {
41+
"thumbnailUrl": "/v1/assets/16992/thumbnail"
42+
},
43+
"category": {
44+
"id": 38491,
45+
"name": "bla/blub",
46+
"parentId": 89397
47+
},
48+
"content": "<table\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"100%\"\n role=\"presentation\"\n style=\"min-width: 100%\"\n class=\"stylingblock-content-wrapper\"\n>\n <tr>\n <td class=\"stylingblock-content-wrapper camarker-inner\">test</td>\n </tr>\n</table>\n",
49+
"design": "",
50+
"meta": {
51+
"wrapperStyles": {
52+
"mobile": {
53+
"visible": true
54+
},
55+
"styling": {}
56+
}
57+
},
58+
"availableViews": [],
59+
"modelVersion": 2
60+
}

0 commit comments

Comments
 (0)