Commit graph

8 commits

Author SHA1 Message Date
Michael Vogt
1d4f2dc53b testutil: extract find_one_subclass_in_module() helper
A small refactor to avoid shipping this duplicated code (this
one is easy to extract/reuse).
2024-04-03 11:36:01 +02:00
Michael Vogt
7c0e9cfcf7 inputs: add inputs_service fixture
This new fixture avoids some repetitivness when building tests
for input services.
2024-04-03 11:36:01 +02:00
Michael Vogt
5f31ccf9f2 test: add/use new testutil.make_fake_service_fd()
All inputs/sources tests need a fake service fd to instanciate
their services. Consolidate the creation in a single helper.
2024-04-03 11:36:01 +02:00
Michael Vogt
fd0167f130 test: return container_id in make_container
The current `make_container()` helper is a bit silly (which is
entirely my fault). It requires a container tag as input but all
tests end up creating a random number for this input. So instead
just remove the input and return the container_id from the podman
build in the contextmanager and use that.
2024-03-18 20:36:19 +01:00
Michael Vogt
b0091c0470 inputs: simplify/comment clean of test_containers_local_inputs_integration
Thanks to Ondrej fot the suggestions
2024-02-27 15:07:42 +01:00
Michael Vogt
b5355c46ac inputs: tweak containers-storage implementation
This commit tweaks the excellent work from Gianluca in PR#1550 a
little bit. Now that the container inputs are their own input
type some of the code that used to be part of the original
`inputs/org.osbuild.containers` can be simplified.
2024-02-27 15:07:42 +01:00
Michael Vogt
882c9efbc1 inputs: add integration test for inputs/org.osbuild.containers-storage
Ensure that `ContainersInput.map()` work correctly with local
image store references.
2024-02-27 15:07:42 +01:00
Michael Vogt
2d71935a91 inputs: add new "inputs_module" fixture 2024-02-27 15:07:42 +01:00