25
25
def test_api_happy_start (test_microvm_with_api ):
26
26
"""
27
27
Test that a regular microvm API config and boot sequence works.
28
-
29
- @type: functional
30
28
"""
31
29
test_microvm = test_microvm_with_api
32
30
test_microvm .spawn ()
@@ -44,8 +42,6 @@ def test_drive_io_engine(test_microvm_with_api, network_config):
44
42
45
43
Test that the io_engine can be configured via the API on kernels that
46
44
support the given type and that FC returns an error otherwise.
47
-
48
- @type: functional
49
45
"""
50
46
test_microvm = test_microvm_with_api
51
47
test_microvm .spawn ()
@@ -97,8 +93,6 @@ def test_api_put_update_pre_boot(test_microvm_with_api):
97
93
Test that PUT updates are allowed before the microvm boots.
98
94
99
95
Tests updates on drives, boot source and machine config.
100
-
101
- @type: functional
102
96
"""
103
97
test_microvm = test_microvm_with_api
104
98
test_microvm .spawn ()
@@ -214,8 +208,6 @@ def test_api_put_update_pre_boot(test_microvm_with_api):
214
208
def test_net_api_put_update_pre_boot (test_microvm_with_api ):
215
209
"""
216
210
Test PUT updates on network configurations before the microvm boots.
217
-
218
- @type: functional
219
211
"""
220
212
test_microvm = test_microvm_with_api
221
213
test_microvm .spawn ()
@@ -272,8 +264,6 @@ def test_api_mmds_config(test_microvm_with_api):
272
264
Test /mmds/config PUT scenarios that unit tests can't cover.
273
265
274
266
Tests updates on MMDS config before and after attaching a network device.
275
-
276
- @type: negative
277
267
"""
278
268
test_microvm = test_microvm_with_api
279
269
test_microvm .spawn ()
@@ -360,8 +350,6 @@ def test_api_mmds_config(test_microvm_with_api):
360
350
def test_api_machine_config (test_microvm_with_api ):
361
351
"""
362
352
Test /machine_config PUT/PATCH scenarios that unit tests can't cover.
363
-
364
- @type: functional
365
353
"""
366
354
test_microvm = test_microvm_with_api
367
355
test_microvm .spawn ()
@@ -489,8 +477,6 @@ def test_api_machine_config(test_microvm_with_api):
489
477
def test_api_cpu_config (test_microvm_with_api , custom_cpu_template ):
490
478
"""
491
479
Test /cpu-config PUT scenarios.
492
-
493
- @type: functional
494
480
"""
495
481
test_microvm = test_microvm_with_api
496
482
test_microvm .spawn ()
@@ -505,8 +491,6 @@ def test_api_cpu_config(test_microvm_with_api, custom_cpu_template):
505
491
def test_api_put_update_post_boot (test_microvm_with_api ):
506
492
"""
507
493
Test that PUT updates are rejected after the microvm boots.
508
-
509
- @type: negative
510
494
"""
511
495
test_microvm = test_microvm_with_api
512
496
test_microvm .spawn ()
@@ -576,8 +560,6 @@ def test_api_put_update_post_boot(test_microvm_with_api):
576
560
def test_rate_limiters_api_config (test_microvm_with_api ):
577
561
"""
578
562
Test the IO rate limiter API config.
579
-
580
- @type: functional
581
563
"""
582
564
test_microvm = test_microvm_with_api
583
565
test_microvm .spawn ()
@@ -690,8 +672,6 @@ def test_rate_limiters_api_config(test_microvm_with_api):
690
672
def test_api_patch_pre_boot (test_microvm_with_api ):
691
673
"""
692
674
Test that PATCH updates are not allowed before the microvm boots.
693
-
694
- @type: negative
695
675
"""
696
676
test_microvm = test_microvm_with_api
697
677
test_microvm .spawn ()
@@ -754,8 +734,6 @@ def test_api_patch_pre_boot(test_microvm_with_api):
754
734
def test_negative_api_patch_post_boot (test_microvm_with_api ):
755
735
"""
756
736
Test PATCH updates that are not allowed after the microvm boots.
757
-
758
- @type: negative
759
737
"""
760
738
test_microvm = test_microvm_with_api
761
739
test_microvm .spawn ()
@@ -805,8 +783,6 @@ def test_negative_api_patch_post_boot(test_microvm_with_api):
805
783
def test_drive_patch (test_microvm_with_api ):
806
784
"""
807
785
Extensively test drive PATCH scenarios before and after boot.
808
-
809
- @type: functional
810
786
"""
811
787
test_microvm = test_microvm_with_api
812
788
test_microvm .spawn ()
@@ -845,8 +821,6 @@ def test_drive_patch(test_microvm_with_api):
845
821
def test_send_ctrl_alt_del (test_microvm_with_api ):
846
822
"""
847
823
Test shutting down the microVM gracefully on x86, by sending CTRL+ALT+DEL.
848
-
849
- @type: functional
850
824
"""
851
825
# This relies on the i8042 device and AT Keyboard support being present in
852
826
# the guest kernel.
@@ -993,8 +967,6 @@ def _drive_patch(test_microvm):
993
967
def test_api_version (test_microvm_with_api ):
994
968
"""
995
969
Test the permanent VM version endpoint.
996
-
997
- @type: functional
998
970
"""
999
971
test_microvm = test_microvm_with_api
1000
972
test_microvm .spawn ()
@@ -1029,8 +1001,6 @@ def test_api_version(test_microvm_with_api):
1029
1001
def test_api_vsock (bin_cloner_path ):
1030
1002
"""
1031
1003
Test vsock related API commands.
1032
-
1033
- @type: functional
1034
1004
"""
1035
1005
builder = MicrovmBuilder (bin_cloner_path )
1036
1006
# Test with the current build.
@@ -1094,8 +1064,6 @@ def test_api_entropy(test_microvm_with_api):
1094
1064
def test_api_balloon (test_microvm_with_api ):
1095
1065
"""
1096
1066
Test balloon related API commands.
1097
-
1098
- @type: functional
1099
1067
"""
1100
1068
test_microvm = test_microvm_with_api
1101
1069
test_microvm .spawn ()
@@ -1180,8 +1148,6 @@ def test_api_balloon(test_microvm_with_api):
1180
1148
def test_get_full_config_after_restoring_snapshot (bin_cloner_path ):
1181
1149
"""
1182
1150
Test the configuration of a microVM after restoring from a snapshot.
1183
-
1184
- @type: functional
1185
1151
"""
1186
1152
microvm_builder = MicrovmBuilder (bin_cloner_path )
1187
1153
net_iface = NetIfaceConfig ()
@@ -1313,8 +1279,6 @@ def test_get_full_config_after_restoring_snapshot(bin_cloner_path):
1313
1279
def test_get_full_config (test_microvm_with_api ):
1314
1280
"""
1315
1281
Test the reported configuration of a microVM configured with all resources.
1316
-
1317
- @type: functional
1318
1282
"""
1319
1283
test_microvm = test_microvm_with_api
1320
1284
@@ -1428,8 +1392,6 @@ def test_map_private_seccomp_regression(test_microvm_with_api):
1428
1392
When sending large buffer to an api endpoint there will be an attempt to
1429
1393
call mmap with MAP_PRIVATE|MAP_ANONYMOUS. This would result in vmm being
1430
1394
killed by the seccomp filter before this PR.
1431
-
1432
- @type: regression
1433
1395
"""
1434
1396
test_microvm = test_microvm_with_api
1435
1397
test_microvm .jailer .extra_args .update (
@@ -1452,8 +1414,6 @@ def test_map_private_seccomp_regression(test_microvm_with_api):
1452
1414
def test_negative_snapshot_load_api (microvm_factory ):
1453
1415
"""
1454
1416
Test snapshot load API.
1455
-
1456
- @type: negative
1457
1417
"""
1458
1418
vm = microvm_factory .build ()
1459
1419
vm .spawn ()
0 commit comments