File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed
tests/integration_tests/functional Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 189
189
}
190
190
]
191
191
},
192
- {
193
- "syscall" : " mmap" ,
194
- "comment" : " Used for large buffers sent to api_server" ,
195
- "args" : [
196
- {
197
- "index" : 3 ,
198
- "type" : " dword" ,
199
- "op" : " eq" ,
200
- "val" : 34 ,
201
- "comment" : " libc::MAP_ANONYMOUS | libc::MAP_PRIVATE"
202
- }
203
- ]
204
- },
205
192
{
206
193
"syscall" : " mmap" ,
207
194
"comment" : " Used for reading the timezone in LocalTime::now()" ,
537
524
}
538
525
]
539
526
},
527
+ {
528
+ "syscall" : " mmap" ,
529
+ "comment" : " Used for large buffers sent to api_server" ,
530
+ "args" : [
531
+ {
532
+ "index" : 3 ,
533
+ "type" : " dword" ,
534
+ "op" : " eq" ,
535
+ "val" : 34 ,
536
+ "comment" : " libc::MAP_ANONYMOUS | libc::MAP_PRIVATE"
537
+ }
538
+ ]
539
+ },
540
540
{
541
541
"syscall" : " rt_sigaction" ,
542
542
"comment" : " rt_sigaction is used by libc::abort during a panic to install the default handler for SIGABRT" ,
Original file line number Diff line number Diff line change 4
4
5
5
# Disable pylint C0302: Too many lines in module
6
6
# pylint: disable=C0302
7
- import array
8
- import itertools
9
7
import os
10
8
import platform
11
9
import resource
@@ -1227,6 +1225,8 @@ def test_map_private_seccomp_regression(test_microvm_with_ssh):
1227
1225
@type: regression
1228
1226
"""
1229
1227
test_microvm = test_microvm_with_ssh
1228
+ test_microvm .jailer .extra_args .update (
1229
+ {'http-api-max-payload-size' : str (1024 * 1024 * 2 )})
1230
1230
test_microvm .spawn ()
1231
1231
test_microvm .api_session .untime ()
1232
1232
@@ -1237,13 +1237,10 @@ def test_map_private_seccomp_regression(test_microvm_with_ssh):
1237
1237
data_store = {
1238
1238
'latest' : {
1239
1239
'meta-data' : {
1240
+ 'ami-id' : 'b' * (1024 * 1024 )
1240
1241
}
1241
1242
}
1242
1243
}
1243
1244
1244
- slice_1mb = array .array ('u' , itertools .repeat ('b' , 1024 * 1024 ))
1245
- chars = array .array ('u' )
1246
- chars = [chars .extend (slice_1mb ) for _ in range (190 )]
1247
- data_store ["latest" ]["meta-data" ]["ami-id" ] = chars
1248
1245
response = test_microvm .mmds .put (json = data_store )
1249
1246
assert test_microvm .api_session .is_status_no_content (response .status_code )
You can’t perform that action at this time.
0 commit comments