-
Notifications
You must be signed in to change notification settings - Fork 20
/
Lombiq.OSOCE.Tests.recipe.json
259 lines (259 loc) · 7.94 KB
/
Lombiq.OSOCE.Tests.recipe.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
{
"name": "Lombiq.OSOCE.Tests",
"displayName": "TEST: Lombiq's Open-Source Orchard Core Extensions",
"description": "Lombiq's Open-Source Orchard Core Extensions setup recipe for automated UI test execution.",
"author": "Lombiq Technologies",
"website": "https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions",
"version": "1.0",
"issetuprecipe": true,
"categories": [
"test"
],
"tags": [
"test"
],
"steps": [
{
"name": "feature",
"disable": [],
"enable": [
"Lombiq.AuditTrailExtensions",
"Lombiq.ChartJs",
"Lombiq.ContentEditors.Samples",
"Lombiq.DataTables.Samples",
"Lombiq.HelpfulExtensions.CodeGeneration",
"Lombiq.HelpfulExtensions.ContentTypes",
"Lombiq.HelpfulExtensions.Flows",
// Shape Tracing messes with the title and thus can break other things, see:
// https://github.com/Lombiq/Helpful-Extensions/issues/120.
// "Lombiq.HelpfulExtensions.ShapeTracing",
"Lombiq.HelpfulExtensions.Widgets",
"Lombiq.HelpfulLibraries.Samples",
"Lombiq.Hosting.BuildVersionDisplay",
"Lombiq.Hosting.Tenants.Admin.Login",
"Lombiq.Hosting.Tenants.Admin.Login.SubTenant",
"Lombiq.Hosting.Tenants.EnvironmentRobots",
"Lombiq.Hosting.Tenants.Management",
"Lombiq.Hosting.Tenants.Management.ShellSettingsEditor",
"Lombiq.Hosting.Tenants.Maintenance",
"Lombiq.Hosting.Tenants.Maintenance.UpdateSiteUrl",
"Lombiq.Hosting.Tenants.Maintenance.AddSiteOwnerPermissionToRole",
"Lombiq.Hosting.Tenants.Maintenance.ChangeUserSensitiveContent",
"Lombiq.Hosting.Tenants.IdleTenantManagement.ShutDownIdleTenants",
"Lombiq.Hosting.Tenants.EmailQuotaManagement",
"Lombiq.JsonEditor",
"Lombiq.JsonEditor.ContentEditor",
"Lombiq.LoginAsAnybody",
"Lombiq.OSOCE.Samples",
// We only enable these on a specific test, because it overlaps with too many things.
// "Lombiq.Privacy.ConsentBanner",
// "Lombiq.Privacy.FormConsent",
// "Lombiq.Privacy.RegistrationConsent",
"Lombiq.TrainingDemo",
"Lombiq.UIKit",
"Lombiq.UIKit.Showcase",
"Lombiq.VueJs",
"Lombiq.VueJs.Samples",
"OrchardCore.Tenants.FeatureProfiles",
"Lombiq.Hosting.Tenants.FeaturesGuard",
"Lombiq.Hosting.Tenants.MediaStorageManagement",
"OrchardCore.Media",
"OrchardCore.Feature",
"TheTheme"
// Not enabling Lombiq.TrainingDemo.Middlewares because that would write to the error log on every request.
]
},
{
"name": "recipes",
"Values": [
{
"executionid": "Lombiq.OSOCE.Web",
"name": "Blog"
}
]
},
{
"name": "media",
"Files": [
{
// Picture taken from:
// https://en.wikipedia.org/wiki/Orchard#/media/File:Streuobstwiesen,_Blick_auf_Traufgang_und_Lochenh%C3%B6rnle.jpg.
// This is just showcasing that you can include Media files in these recipes too. Note that if you include
// files for recipes in the Web project then you also have to set their "Copy to Output Directory" to
// something else than "Do not copy" (this is not necessary if you put recipes and Media files in modules or
// themes). You can see this happening in the csproj file.
"SourcePath": "Media/meadow-orchard.jpg",
"TargetPath": "meadow-orchard.jpg"
}
]
},
{
"name": "settings",
// CDN should be turned off for tests, just as no other external resource should be used.
"UseCdn": false,
"SmtpSettings": {
"DefaultSender": "[email protected]"
},
// To make sure that e.g. numbers and dates are formatted the same way on all machines we have to specify the
// culture too.
"LocalizationSettings": {
"DefaultCulture": "en-US",
"SupportedCultures": [
"en-US"
]
}
},
// These roles are not created the same way as default during testing, so we need to add them here.
{
"name": "Roles",
"Roles": [
{
"Name": "Moderator",
"Description": "Moderator role",
"Permissions": [
"AccessAdminPanel",
"ManageOwnUserInformation"
]
},
{
"Name": "Authenticated",
"Description": "Authenticated role",
"Permissions": [
"ViewContent"
]
},
{
"Name": "Anonymous",
"Description": "Anonymous role",
"Permissions": [
"ViewContent"
]
},
{
"Name": "Author",
"Description": "Author role",
"Permissions": [
"AccessAdminPanel",
"ManageOwnUserInformation",
"PublishOwnContent",
"EditOwnContent",
"DeleteOwnContent",
"PreviewOwnContent",
"CloneOwnContent",
"ManageMediaContent"
]
},
{
"Name": "Contributor",
"Description": "Contributor role",
"Permissions": [
"AccessAdminPanel",
"ManageOwnUserInformation",
"EditOwnContent",
"PreviewOwnContent",
"CloneOwnContent",
"ManageMediaContent"
]
},
{
"Name": "Editor",
"Description": "Editor role",
"Permissions": [
"AccessAdminPanel",
"ManageOwnUserInformation",
"PublishContent",
"EditContent",
"DeleteContent",
"PreviewContent",
"CloneContent",
"ListContent",
"ManageMediaContent",
"ManageWorkflows",
"ExecuteWorkflows"
]
},
{
"Name": "Administrator",
"Description": "Administrator role",
"Permissions": [
"ManageSettings",
"AccessAdminPanel",
"ManageAdminSettings",
"ManageUsers",
"ManageRoles",
"SiteOwner",
"ManageTenants",
"ApplyTheme",
"PublishContent",
"EditContent",
"DeleteContent",
"PreviewContent",
"CloneContent",
"AccessContentApi",
"ListContent",
"ViewContentTypes",
"EditContentTypes",
"ManageMediaContent",
"ManageAttachedMediaFieldsFolder",
"ManageMediaProfiles",
"ViewMediaOptions",
"ManageAssetCache",
"ViewAzureMediaOptions",
"ManageBackgroundTasks",
"ManageEmailSettings",
"ManageWorkflows",
"ExecuteWorkflows",
"SetHomepage",
"Import",
"Export",
"ViewAuditTrail",
"ManageAuditTrailSettings"
]
}
]
},
{
"name": "themes",
"admin": "TheAdmin",
"site": "SafeMode"
},
{
"name": "FeatureProfiles",
"FeatureProfiles": {
"Features Guard": {
"FeatureRules": [
{
"Rule": "Exclude",
"Expression": "OrchardCore.Workflows.Session"
},
{
"Rule": "Exclude",
"Expression": "OrchardCore.Search.Lucene"
},
{
"Rule": "Exclude",
"Expression": "OrchardCore.MiniProfiler"
},
{
"Rule": "Exclude",
"Expression": "Lombiq.Tests.UI.Shortcuts"
}
]
}
}
},
{
"name": "recipes",
"Values": [
{
"executionid": "Lombiq.OSOCE.Web",
"name": "Lombiq.OSOCE.BaseTheme"
},
{
"executionid": "Lombiq.OSOCE.Web",
"name": "Lombiq.HelpfulExtensions.ContentSets.Samples"
}
]
}
]
}