@@ -118,19 +118,19 @@ public void onIndexPageWithResourcesFromCdn() {
118
118
"report-uri https://my-stamps.ru/site/csp/reports"
119
119
)
120
120
.contains (
121
- "style-src "
122
- + "'report-sample' "
123
- + "https://cdn.jsdelivr.net "
124
- + "https://stamps.filezz.ru "
125
- + "https://maxcdn.bootstrapcdn.com"
121
+ "style-src"
122
+ + " 'report-sample'"
123
+ + " https://cdn.jsdelivr.net"
124
+ + " https://stamps.filezz.ru"
125
+ + " https://maxcdn.bootstrapcdn.com"
126
126
)
127
127
.contains (
128
- "script-src "
129
- + "'report-sample' "
130
- + "'unsafe-inline' "
131
- + "https://stamps.filezz.ru "
132
- + "https://maxcdn.bootstrapcdn.com "
133
- + "https://yandex.st"
128
+ "script-src"
129
+ + " 'report-sample'"
130
+ + " 'unsafe-inline'"
131
+ + " https://stamps.filezz.ru"
132
+ + " https://maxcdn.bootstrapcdn.com"
133
+ + " https://yandex.st"
134
134
)
135
135
.hasSize (NUMBER_OF_DIRECTIVES_ON_STANDARD_PAGES );
136
136
}
@@ -148,19 +148,19 @@ public void onCollectionInfoPageWithLocalResources() {
148
148
// test only the directives that differ from the index page
149
149
assertThat (directives )
150
150
.contains (
151
- "style-src "
152
- + "'report-sample' "
153
- + "https://cdn.jsdelivr.net "
154
- + "'self' "
155
- + "https://www.gstatic.com "
156
- + "'sha256-/kXZODfqoc2myS1eI6wr0HH8lUt+vRhW8H/oL+YJcMg='"
151
+ "style-src"
152
+ + " 'report-sample'"
153
+ + " https://cdn.jsdelivr.net"
154
+ + " 'self'"
155
+ + " https://www.gstatic.com"
156
+ + " 'sha256-/kXZODfqoc2myS1eI6wr0HH8lUt+vRhW8H/oL+YJcMg='"
157
157
)
158
158
.contains (
159
- "script-src "
160
- + "'report-sample' "
161
- + "'unsafe-inline' "
162
- + "'self' "
163
- + "https://www.gstatic.com"
159
+ "script-src"
160
+ + " 'report-sample'"
161
+ + " 'unsafe-inline'"
162
+ + " 'self'"
163
+ + " https://www.gstatic.com"
164
164
)
165
165
// hope that all other directives are the same as on the index page
166
166
.hasSize (NUMBER_OF_DIRECTIVES_ON_STANDARD_PAGES );
@@ -179,22 +179,22 @@ public void onCollectionInfoPageWithResourcesFromCdn() {
179
179
// test only the directives that differ from the index page
180
180
assertThat (directives )
181
181
.contains (
182
- "style-src "
183
- + "'report-sample' "
184
- + "https://cdn.jsdelivr.net "
185
- + "https://stamps.filezz.ru "
186
- + "https://maxcdn.bootstrapcdn.com "
187
- + "https://www.gstatic.com "
188
- + "'sha256-/kXZODfqoc2myS1eI6wr0HH8lUt+vRhW8H/oL+YJcMg='"
182
+ "style-src"
183
+ + " 'report-sample'"
184
+ + " https://cdn.jsdelivr.net"
185
+ + " https://stamps.filezz.ru"
186
+ + " https://maxcdn.bootstrapcdn.com"
187
+ + " https://www.gstatic.com"
188
+ + " 'sha256-/kXZODfqoc2myS1eI6wr0HH8lUt+vRhW8H/oL+YJcMg='"
189
189
)
190
190
.contains (
191
- "script-src "
192
- + "'report-sample' "
193
- + "'unsafe-inline' "
194
- + "https://stamps.filezz.ru "
195
- + "https://maxcdn.bootstrapcdn.com "
196
- + "https://yandex.st "
197
- + "https://www.gstatic.com"
191
+ "script-src"
192
+ + " 'report-sample'"
193
+ + " 'unsafe-inline'"
194
+ + " https://stamps.filezz.ru"
195
+ + " https://maxcdn.bootstrapcdn.com"
196
+ + " https://yandex.st"
197
+ + " https://www.gstatic.com"
198
198
)
199
199
// hope that all other directives are the same as on the index page
200
200
.hasSize (NUMBER_OF_DIRECTIVES_ON_STANDARD_PAGES );
@@ -215,11 +215,11 @@ public void onSeriesAddImagePageWithLocalResources() {
215
215
// test only the directives that are differ from the index page
216
216
assertThat (directives )
217
217
.contains (
218
- "style-src "
219
- + "'report-sample' "
220
- + "https://cdn.jsdelivr.net "
221
- + "'self' "
222
- + "'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU='"
218
+ "style-src"
219
+ + " 'report-sample'"
220
+ + " https://cdn.jsdelivr.net"
221
+ + " 'self'"
222
+ + " 'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU='"
223
223
)
224
224
.contains ("connect-src 'self'" )
225
225
// hope that all other directives are the same as on the index page
@@ -242,21 +242,21 @@ public void onSeriesAddImagePageWithResourcesFromCdn() {
242
242
// test only the directives that are differ from the index page
243
243
assertThat (directives )
244
244
.contains (
245
- "style-src "
246
- + "'report-sample' "
247
- + "https://cdn.jsdelivr.net "
248
- + "https://stamps.filezz.ru "
249
- + "https://maxcdn.bootstrapcdn.com "
250
- + "'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU='"
245
+ "style-src"
246
+ + " 'report-sample'"
247
+ + " https://cdn.jsdelivr.net"
248
+ + " https://stamps.filezz.ru"
249
+ + " https://maxcdn.bootstrapcdn.com"
250
+ + " 'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU='"
251
251
)
252
252
.contains (
253
- "script-src "
254
- + "'report-sample' "
255
- + "'unsafe-inline' "
256
- + "https://stamps.filezz.ru "
257
- + "https://maxcdn.bootstrapcdn.com "
258
- + "https://yandex.st "
259
- + "https://unpkg.com"
253
+ "script-src"
254
+ + " 'report-sample'"
255
+ + " 'unsafe-inline'"
256
+ + " https://stamps.filezz.ru"
257
+ + " https://maxcdn.bootstrapcdn.com"
258
+ + " https://yandex.st"
259
+ + " https://unpkg.com"
260
260
)
261
261
.contains ("connect-src 'self'" )
262
262
// hope that all other directives are the same as on the index page
@@ -277,19 +277,19 @@ public void onSeriesAddPageWithLocalResources() {
277
277
// test only the directives that differ from the index page
278
278
assertThat (directives )
279
279
.contains (
280
- "style-src "
281
- + "'report-sample' "
282
- + "https://cdn.jsdelivr.net "
283
- + "'self' "
284
- + "'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU=' "
285
- + "https://cdnjs.cloudflare.com"
280
+ "style-src"
281
+ + " 'report-sample'"
282
+ + " https://cdn.jsdelivr.net"
283
+ + " 'self'"
284
+ + " 'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU='"
285
+ + " https://cdnjs.cloudflare.com"
286
286
)
287
287
.contains (
288
- "script-src "
289
- + "'report-sample' "
290
- + "'unsafe-inline' "
291
- + "'self' "
292
- + "https://cdnjs.cloudflare.com"
288
+ "script-src"
289
+ + " 'report-sample'"
290
+ + " 'unsafe-inline'"
291
+ + " 'self'"
292
+ + " https://cdnjs.cloudflare.com"
293
293
)
294
294
.contains ("connect-src 'self'" )
295
295
// hope that all other directives are the same as on the index page
@@ -309,22 +309,22 @@ public void onSeriesAddPageWithResourcesFromCdn() {
309
309
// test only the directives that differ from the index page
310
310
assertThat (directives )
311
311
.contains (
312
- "style-src "
313
- + "'report-sample' "
314
- + "https://cdn.jsdelivr.net "
315
- + "https://stamps.filezz.ru "
316
- + "https://maxcdn.bootstrapcdn.com "
317
- + "'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU=' "
318
- + "https://cdnjs.cloudflare.com"
312
+ "style-src"
313
+ + " 'report-sample'"
314
+ + " https://cdn.jsdelivr.net"
315
+ + " https://stamps.filezz.ru"
316
+ + " https://maxcdn.bootstrapcdn.com"
317
+ + " 'sha256-DpmxvnMJIlwkpmmAANZYNzmyfnX2PQCBDO4CB2BFjzU='"
318
+ + " https://cdnjs.cloudflare.com"
319
319
)
320
320
.contains (
321
- "script-src "
322
- + "'report-sample' "
323
- + "'unsafe-inline' "
324
- + "https://stamps.filezz.ru "
325
- + "https://maxcdn.bootstrapcdn.com "
326
- + "https://yandex.st "
327
- + "https://cdnjs.cloudflare.com"
321
+ "script-src"
322
+ + " 'report-sample'"
323
+ + " 'unsafe-inline'"
324
+ + " https://stamps.filezz.ru"
325
+ + " https://maxcdn.bootstrapcdn.com"
326
+ + " https://yandex.st"
327
+ + " https://cdnjs.cloudflare.com"
328
328
)
329
329
.contains ("connect-src 'self'" )
330
330
// hope that all other directives are the same as on the index page
@@ -344,9 +344,9 @@ public void onH2ConsoleWithLocalResources() {
344
344
// test only the directives that are differ from the index page
345
345
assertThat (directives ).
346
346
contains (
347
- "style-src "
348
- + "'report-sample' "
349
- + "https://cdn.jsdelivr.net"
347
+ "style-src"
348
+ + " 'report-sample'"
349
+ + " https://cdn.jsdelivr.net"
350
350
+ " 'self'"
351
351
+ " 'sha256-biLFinpqYMtWHmXfkA1BPeCY0/fNt46SAZ+BBk5YUog='"
352
352
+ " 'sha256-aqNNdDLnnrDOnTNdkJpYlAxKVJtLt9CtFLklmInuUAE='"
@@ -376,11 +376,11 @@ public void onH2ConsoleWithResourcesFromCdn() {
376
376
assertThat (directives )
377
377
// "style-src" directive should be the same as for the index page
378
378
.contains (
379
- "style-src "
380
- + "'report-sample' "
381
- + "https://cdn.jsdelivr.net "
382
- + "https://stamps.filezz.ru "
383
- + "https://maxcdn.bootstrapcdn.com"
379
+ "style-src"
380
+ + " 'report-sample'"
381
+ + " https://cdn.jsdelivr.net"
382
+ + " https://stamps.filezz.ru"
383
+ + " https://maxcdn.bootstrapcdn.com"
384
384
)
385
385
.doesNotContain ("child-src 'self'" )
386
386
// hope that all other directives are the same as on the index page
0 commit comments