Skip to content

Commit 07e564c

Browse files
committed
test: remove @type tags
As far as I can tell they don't serve any purpose, and the information can be derived from the test filename. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 9bb3a21 commit 07e564c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+0
-438
lines changed

tests/integration_tests/build/test_binary_size.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
def test_firecracker_binary_size(record_property, metrics):
3838
"""
3939
Test if the size of the firecracker binary is within expected ranges.
40-
41-
@type: build
4240
"""
4341
fc_binary, _ = host.get_firecracker_binaries()
4442

@@ -61,8 +59,6 @@ def test_firecracker_binary_size(record_property, metrics):
6159
def test_jailer_binary_size(record_property, metrics):
6260
"""
6361
Test if the size of the jailer binary is within expected ranges.
64-
65-
@type: build
6662
"""
6763
_, jailer_binary = host.get_firecracker_binaries()
6864

tests/integration_tests/build/test_clippy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@
2121
def test_rust_clippy(target):
2222
"""
2323
Test that clippy does not generate any errors/warnings.
24-
25-
@type: build
2624
"""
2725
cargo("clippy", f"--target {target} --all --profile test", "-D warnings")

tests/integration_tests/build/test_coverage.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def is_on_skylake():
5858
@pytest.mark.timeout(600)
5959
def test_coverage(monkeypatch, record_property, metrics):
6060
"""Test code coverage
61-
62-
@type: build
6361
"""
6462
# Get coverage target.
6563
processor_model = [item for item in COVERAGE_DICT if item in PROC_MODEL]

tests/integration_tests/build/test_dependencies.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ def test_licenses():
1919
2020
For a list of currently allowed licenses checkout deny.toml in
2121
the root directory.
22-
23-
@type: build
2422
"""
2523
toml_file = os.path.normpath(
2624
os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../Cargo.toml")

tests/integration_tests/build/test_unittests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
def test_unittests(test_fc_session_root_path):
1717
"""
1818
Run unit and doc tests for all supported targets.
19-
20-
@type: build
2119
"""
2220
extra_args = "--release --target {} ".format(TARGET)
2321

tests/integration_tests/functional/test_api.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
def test_api_happy_start(test_microvm_with_api):
2626
"""
2727
Test that a regular microvm API config and boot sequence works.
28-
29-
@type: functional
3028
"""
3129
test_microvm = test_microvm_with_api
3230
test_microvm.spawn()
@@ -44,8 +42,6 @@ def test_drive_io_engine(test_microvm_with_api, network_config):
4442
4543
Test that the io_engine can be configured via the API on kernels that
4644
support the given type and that FC returns an error otherwise.
47-
48-
@type: functional
4945
"""
5046
test_microvm = test_microvm_with_api
5147
test_microvm.spawn()
@@ -97,8 +93,6 @@ def test_api_put_update_pre_boot(test_microvm_with_api):
9793
Test that PUT updates are allowed before the microvm boots.
9894
9995
Tests updates on drives, boot source and machine config.
100-
101-
@type: functional
10296
"""
10397
test_microvm = test_microvm_with_api
10498
test_microvm.spawn()
@@ -214,8 +208,6 @@ def test_api_put_update_pre_boot(test_microvm_with_api):
214208
def test_net_api_put_update_pre_boot(test_microvm_with_api):
215209
"""
216210
Test PUT updates on network configurations before the microvm boots.
217-
218-
@type: functional
219211
"""
220212
test_microvm = test_microvm_with_api
221213
test_microvm.spawn()
@@ -272,8 +264,6 @@ def test_api_mmds_config(test_microvm_with_api):
272264
Test /mmds/config PUT scenarios that unit tests can't cover.
273265
274266
Tests updates on MMDS config before and after attaching a network device.
275-
276-
@type: negative
277267
"""
278268
test_microvm = test_microvm_with_api
279269
test_microvm.spawn()
@@ -360,8 +350,6 @@ def test_api_mmds_config(test_microvm_with_api):
360350
def test_api_machine_config(test_microvm_with_api):
361351
"""
362352
Test /machine_config PUT/PATCH scenarios that unit tests can't cover.
363-
364-
@type: functional
365353
"""
366354
test_microvm = test_microvm_with_api
367355
test_microvm.spawn()
@@ -489,8 +477,6 @@ def test_api_machine_config(test_microvm_with_api):
489477
def test_api_cpu_config(test_microvm_with_api, custom_cpu_template):
490478
"""
491479
Test /cpu-config PUT scenarios.
492-
493-
@type: functional
494480
"""
495481
test_microvm = test_microvm_with_api
496482
test_microvm.spawn()
@@ -505,8 +491,6 @@ def test_api_cpu_config(test_microvm_with_api, custom_cpu_template):
505491
def test_api_put_update_post_boot(test_microvm_with_api):
506492
"""
507493
Test that PUT updates are rejected after the microvm boots.
508-
509-
@type: negative
510494
"""
511495
test_microvm = test_microvm_with_api
512496
test_microvm.spawn()
@@ -576,8 +560,6 @@ def test_api_put_update_post_boot(test_microvm_with_api):
576560
def test_rate_limiters_api_config(test_microvm_with_api):
577561
"""
578562
Test the IO rate limiter API config.
579-
580-
@type: functional
581563
"""
582564
test_microvm = test_microvm_with_api
583565
test_microvm.spawn()
@@ -690,8 +672,6 @@ def test_rate_limiters_api_config(test_microvm_with_api):
690672
def test_api_patch_pre_boot(test_microvm_with_api):
691673
"""
692674
Test that PATCH updates are not allowed before the microvm boots.
693-
694-
@type: negative
695675
"""
696676
test_microvm = test_microvm_with_api
697677
test_microvm.spawn()
@@ -754,8 +734,6 @@ def test_api_patch_pre_boot(test_microvm_with_api):
754734
def test_negative_api_patch_post_boot(test_microvm_with_api):
755735
"""
756736
Test PATCH updates that are not allowed after the microvm boots.
757-
758-
@type: negative
759737
"""
760738
test_microvm = test_microvm_with_api
761739
test_microvm.spawn()
@@ -805,8 +783,6 @@ def test_negative_api_patch_post_boot(test_microvm_with_api):
805783
def test_drive_patch(test_microvm_with_api):
806784
"""
807785
Extensively test drive PATCH scenarios before and after boot.
808-
809-
@type: functional
810786
"""
811787
test_microvm = test_microvm_with_api
812788
test_microvm.spawn()
@@ -845,8 +821,6 @@ def test_drive_patch(test_microvm_with_api):
845821
def test_send_ctrl_alt_del(test_microvm_with_api):
846822
"""
847823
Test shutting down the microVM gracefully on x86, by sending CTRL+ALT+DEL.
848-
849-
@type: functional
850824
"""
851825
# This relies on the i8042 device and AT Keyboard support being present in
852826
# the guest kernel.
@@ -993,8 +967,6 @@ def _drive_patch(test_microvm):
993967
def test_api_version(test_microvm_with_api):
994968
"""
995969
Test the permanent VM version endpoint.
996-
997-
@type: functional
998970
"""
999971
test_microvm = test_microvm_with_api
1000972
test_microvm.spawn()
@@ -1029,8 +1001,6 @@ def test_api_version(test_microvm_with_api):
10291001
def test_api_vsock(bin_cloner_path):
10301002
"""
10311003
Test vsock related API commands.
1032-
1033-
@type: functional
10341004
"""
10351005
builder = MicrovmBuilder(bin_cloner_path)
10361006
# Test with the current build.
@@ -1094,8 +1064,6 @@ def test_api_entropy(test_microvm_with_api):
10941064
def test_api_balloon(test_microvm_with_api):
10951065
"""
10961066
Test balloon related API commands.
1097-
1098-
@type: functional
10991067
"""
11001068
test_microvm = test_microvm_with_api
11011069
test_microvm.spawn()
@@ -1180,8 +1148,6 @@ def test_api_balloon(test_microvm_with_api):
11801148
def test_get_full_config_after_restoring_snapshot(bin_cloner_path):
11811149
"""
11821150
Test the configuration of a microVM after restoring from a snapshot.
1183-
1184-
@type: functional
11851151
"""
11861152
microvm_builder = MicrovmBuilder(bin_cloner_path)
11871153
net_iface = NetIfaceConfig()
@@ -1313,8 +1279,6 @@ def test_get_full_config_after_restoring_snapshot(bin_cloner_path):
13131279
def test_get_full_config(test_microvm_with_api):
13141280
"""
13151281
Test the reported configuration of a microVM configured with all resources.
1316-
1317-
@type: functional
13181282
"""
13191283
test_microvm = test_microvm_with_api
13201284

@@ -1428,8 +1392,6 @@ def test_map_private_seccomp_regression(test_microvm_with_api):
14281392
When sending large buffer to an api endpoint there will be an attempt to
14291393
call mmap with MAP_PRIVATE|MAP_ANONYMOUS. This would result in vmm being
14301394
killed by the seccomp filter before this PR.
1431-
1432-
@type: regression
14331395
"""
14341396
test_microvm = test_microvm_with_api
14351397
test_microvm.jailer.extra_args.update(
@@ -1452,8 +1414,6 @@ def test_map_private_seccomp_regression(test_microvm_with_api):
14521414
def test_negative_snapshot_load_api(microvm_factory):
14531415
"""
14541416
Test snapshot load API.
1455-
1456-
@type: negative
14571417
"""
14581418
vm = microvm_factory.build()
14591419
vm.spawn()

tests/integration_tests/functional/test_api_server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ def test_api_socket_in_use(test_microvm_with_api):
1515
start due to the socket being left open from previous runs.
1616
Check that the error message is a fixed one and that it also
1717
contains the name of the path.
18-
19-
@type: functional
2018
"""
2119
microvm = test_microvm_with_api
2220

tests/integration_tests/functional/test_balloon.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ def _test_rss_memory_lower(test_microvm):
100100
def test_rss_memory_lower(test_microvm_with_api, network_config):
101101
"""
102102
Test that inflating the balloon makes guest use less rss memory.
103-
104-
@type: functional
105103
"""
106104
test_microvm = test_microvm_with_api
107105
test_microvm.spawn()
@@ -124,8 +122,6 @@ def test_rss_memory_lower(test_microvm_with_api, network_config):
124122
def test_inflate_reduces_free(test_microvm_with_api, network_config):
125123
"""
126124
Check that the output of free in guest changes with inflate.
127-
128-
@type: functional
129125
"""
130126
test_microvm = test_microvm_with_api
131127
test_microvm.spawn()
@@ -165,8 +161,6 @@ def test_inflate_reduces_free(test_microvm_with_api, network_config):
165161
def test_deflate_on_oom_true(test_microvm_with_api, network_config):
166162
"""
167163
Verify that setting the `deflate_on_oom` to True works correctly.
168-
169-
@type: functional
170164
"""
171165
test_microvm = test_microvm_with_api
172166
test_microvm.spawn()
@@ -210,8 +204,6 @@ def test_deflate_on_oom_true(test_microvm_with_api, network_config):
210204
def test_deflate_on_oom_false(test_microvm_with_api, network_config):
211205
"""
212206
Verify that setting the `deflate_on_oom` to False works correctly.
213-
214-
@type: functional
215207
"""
216208
test_microvm = test_microvm_with_api
217209
test_microvm.spawn()
@@ -252,8 +244,6 @@ def test_deflate_on_oom_false(test_microvm_with_api, network_config):
252244
def test_reinflate_balloon(test_microvm_with_api, network_config):
253245
"""
254246
Verify that repeatedly inflating and deflating the balloon works.
255-
256-
@type: functional
257247
"""
258248
test_microvm = test_microvm_with_api
259249
test_microvm.spawn()
@@ -322,8 +312,6 @@ def test_reinflate_balloon(test_microvm_with_api, network_config):
322312
def test_size_reduction(test_microvm_with_api, network_config):
323313
"""
324314
Verify that ballooning reduces RSS usage on a newly booted guest.
325-
326-
@type: functional
327315
"""
328316
test_microvm = test_microvm_with_api
329317
test_microvm.spawn()
@@ -371,8 +359,6 @@ def test_size_reduction(test_microvm_with_api, network_config):
371359
def test_stats(test_microvm_with_api, network_config):
372360
"""
373361
Verify that balloon stats work as expected.
374-
375-
@type: functional
376362
"""
377363
test_microvm = test_microvm_with_api
378364
test_microvm.spawn()
@@ -437,8 +423,6 @@ def test_stats(test_microvm_with_api, network_config):
437423
def test_stats_update(test_microvm_with_api, network_config):
438424
"""
439425
Verify that balloon stats update correctly.
440-
441-
@type: functional
442426
"""
443427
test_microvm = test_microvm_with_api
444428
test_microvm.spawn()
@@ -494,8 +478,6 @@ def test_stats_update(test_microvm_with_api, network_config):
494478
def test_balloon_snapshot(bin_cloner_path, microvm_factory, guest_kernel, rootfs):
495479
"""
496480
Test that the balloon works after pause/resume.
497-
498-
@type: functional
499481
"""
500482
logger = logging.getLogger("snapshot_sequence")
501483
snapshot_type = SnapshotType.FULL
@@ -600,8 +582,6 @@ def test_balloon_snapshot(bin_cloner_path, microvm_factory, guest_kernel, rootfs
600582
def test_snapshot_compatibility(microvm_factory, guest_kernel, rootfs):
601583
"""
602584
Test that the balloon serializes correctly.
603-
604-
@type: functional
605585
"""
606586
logger = logging.getLogger("snapshot_compatibility")
607587
snapshot_type = SnapshotType.FULL
@@ -653,8 +633,6 @@ def test_snapshot_compatibility(microvm_factory, guest_kernel, rootfs):
653633
def test_memory_scrub(microvm_factory, guest_kernel, rootfs, network_config):
654634
"""
655635
Test that the memory is zeroed after deflate.
656-
657-
@type: functional
658636
"""
659637
microvm = microvm_factory.build(guest_kernel, rootfs)
660638
microvm.spawn()

tests/integration_tests/functional/test_cmd_line_parameters.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ def test_describe_snapshot_all_versions(bin_cloner_path, firecracker_release):
1818
1919
For each release create a snapshot and verify the data version of the
2020
snapshot state file.
21-
22-
@type: functional
2321
"""
2422
logger = logging.getLogger("describe_snapshot")
2523
builder = MicrovmBuilder(bin_cloner_path)
@@ -70,8 +68,6 @@ def test_describe_snapshot_all_versions(bin_cloner_path, firecracker_release):
7068
def test_cli_metrics_path(test_microvm_with_api):
7169
"""
7270
Test --metrics-path parameter
73-
74-
@type: functional
7571
"""
7672
microvm = test_microvm_with_api
7773
metrics_fifo_path = Path(microvm.path) / "metrics_ndjson.fifo"
@@ -116,8 +112,6 @@ def test_cli_metrics_path_if_metrics_initialized_twice_fail(test_microvm_with_ap
116112
Given: a running firecracker with metrics configured with the CLI option
117113
When: Configure metrics via API
118114
Then: API returns an error
119-
120-
@type: functional
121115
"""
122116
microvm = test_microvm_with_api
123117

@@ -143,8 +137,6 @@ def test_cli_metrics_path_if_metrics_initialized_twice_fail(test_microvm_with_ap
143137
def test_cli_metrics_if_resume_no_metrics(test_microvm_with_api, microvm_factory):
144138
"""
145139
Check that metrics configuration is not part of the snapshot
146-
147-
@type: functional
148140
"""
149141
# Given: a snapshot of a FC with metrics configured with the CLI option
150142
uvm1 = test_microvm_with_api

0 commit comments

Comments
 (0)