Monika Kairaityte
0b8b483cb7
Print full dockerfile path instead of context on error
...
Current error message does not provide the exact path where the
Dockerfile is being searched.
This commit distinguishes two types of errors when Dockerfile is not
found in build context:
- when the context does not have provided custom-named Dockerfile, the
path in the error message is absolute: "OSError: Dockerfile not found in
.../podman-compose/tests/integration/build_fail/context_no_file/custom-named-Dockerfile"
- when the context does not have any Dockerfile, the path in the error
message is: "OSError: Dockerfile not found in
.../podman-compose/tests/integration/build_fail/context_no_file"
Only this error message was used before the fix.
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
Co-authored-by: Siteshwar Vashisht <svashisht@redhat.com>
2025-05-28 16:19:38 +03:00
Monika Kairaityte
56238b10e3
tests/integration: Fix service_scale
tests
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-05-26 18:19:11 +03:00
Monika Kairaityte
d4ebf62e0e
tests/integration: Fix lifetime
tests
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-05-26 18:19:11 +03:00
Monika Kairaityte
83c7e9462e
tests/integration: Add missing __init__.py files to actually run tests
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-05-24 22:09:30 +03:00
Povilas Kanapickas
1eae76ddca
Add return type annotations to test_utils.py
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2025-05-24 17:19:29 +03:00
Povilas Kanapickas
a3f48f830d
tests/integration: Add type annotations
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2025-05-24 17:11:38 +03:00
Povilas Kanapickas
58df8497aa
Move tests to directories that can be imported
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2025-05-24 16:47:49 +03:00
Monika Kairaityte
08d06df0f2
Fix build ssh path to be relative to directory of compose file
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-05-24 12:58:59 +03:00
norbiros
3d47849d28
Allow specifying custom pod name in --in-pod
...
Fixes #958 : missing or incorrect use of --in-pod and pod-args
Fixes #693 : --in-pod 'name' no function
Signed-off-by: norbiros <norbiros@protonmail.com>
Signed-off-by: Norbiros <norbiros@protonmail.com>
2025-05-18 18:46:15 +03:00
Monika Kairaityte
0c1c4ffea9
Fix reset tag attribute to also reset depends_on
parameter
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-05-16 22:33:00 +03:00
Monika Kairaityte
6e30673260
tests/integration: Fix paths for testing override and reset tags
...
Tests were not run due to missing __init__.py files.
This commit adds missing files and fixes paths to compose.yaml files.
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-05-16 21:51:11 +03:00
Elsa
67616bdaac
Handle exit code when compose up -d
...
Signed-off-by: Elsa <zeyugao@outlook.com>
2025-05-10 14:38:53 +03:00
Povilas Kanapickas
7497692b19
Merge pull request #1184 from schnell18/main
...
Fix service_healthy condition enforcing
2025-05-10 14:20:06 +03:00
Justin Zhang
782c44d4c3
tests: Style cleanup
...
Signed-off-by: Justin Zhang <schnell18@gmail.com>
2025-05-10 14:12:28 +03:00
Justin Zhang
d7762a54f0
Fix service_healthy condition enforcing
...
Skip dependency health check to avoid compose-up hang for podman prior
to 4.6.0, which doesn't support --condition healthy.
Signed-off-by: Justin Zhang <schnell18@gmail.com>
2025-05-10 14:12:27 +03:00
Justin Zhang
abe5965c9a
tests: Improve reliability of network tests
...
The test did fail on my laptop with podman 5.4.1.
Signed-off-by: Justin Zhang <schnell18@gmail.com>
2025-05-10 14:10:22 +03:00
Justin Zhang
9e0da82726
Change compose-up to create then start container to avoid double exec
...
Signed-off-by: Justin Zhang <schnell18@gmail.com>
2025-05-10 13:58:23 +03:00
Justin Zhang
8638eb9b6d
tests: Test selected env variables to improve robustness
...
Signed-off-by: Justin Zhang <schnell18@gmail.com>
2025-05-10 13:46:26 +03:00
gtebbutt
e1d938ffa6
Add --abort-on-container-failure
...
Signed-off-by: gtebbutt <5956226+gtebbutt@users.noreply.github.com>
2025-05-10 13:41:29 +03:00
Monika Kairaityte
1dab256cdd
tests/integration: Add override tag attribute test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-30 23:37:05 +03:00
Monika Kairaityte
2a33ef5c79
tests/integration: Add override tag service test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-30 23:37:05 +03:00
Monika Kairaityte
5ab734026c
tests/integration: Add reset tag attribute test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-30 23:37:05 +03:00
Monika Kairaityte
35dc395483
tests/integration: Add reset tag service test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-30 23:37:05 +03:00
Monika Kairaityte
38a9263424
integration/tests: Move 'volumes_merge' tests to 'merge' directory
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-30 23:37:05 +03:00
Povilas Kanapickas
342a39dcfe
Merge pull request #1179 from knarfS/fix_port_cmd
...
Fix port command
2025-04-14 18:05:53 +03:00
Povilas Kanapickas
d6b8476573
Merge pull request #1180 from knarfS/add_rmi_arg
...
Add rmi argument for down command
2025-04-14 18:04:09 +03:00
Frank Stettner
ae41ef08c3
tests/integration: Improve tests for port command
...
Refs #778 and #1039
Signed-off-by: Frank Stettner <frank-stettner@gmx.net>
2025-04-10 07:51:39 +02:00
Frank Stettner
d80c31f578
tests/integration: Add tests for up and down command
...
Refs #387
Signed-off-by: Frank Stettner <frank-stettner@gmx.net>
2025-04-08 13:53:27 +02:00
Yashodhan Pise
fbc4c7da80
Integration tests for container scaling changes
...
Signed-off-by: Yashodhan Pise <technoy@gmail.com>
2025-04-08 01:42:03 +03:00
Povilas Kanapickas
10a30ba24a
Merge pull request #1173 from mokibit/automate-ulimit-test
...
tests/integration: Automate manual `ulimit` test
2025-04-04 17:12:42 +03:00
Monika Kairaityte
a1be62fd31
tests/integration: Automate manual ulimit test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-04 16:31:26 +03:00
Monika Kairaityte
e45b5d5063
tests/integration: Automate manual volumes_merge
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-04-04 15:22:45 +03:00
Monika Kairaityte
e04b8f3a60
tests/integration: Add integration test for buid git URL as context
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-03-30 21:56:55 +03:00
Povilas Kanapickas
7d7533772b
Merge pull request #1165 from drachenfels-de/fix-project-name-interpolation
...
Fix `COMPOSE_PROJECT_NAME` interpolation
2025-03-20 19:26:03 +02:00
Ruben Jenster
1aa750bacf
integration/tests: Test project name override with COMPOSE_PROJECT_NAME env variable
...
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de>
2025-03-20 12:07:07 +01:00
Ruben Jenster
170411de8b
test/integration: Test COMPOSE_PROJECT_NAME interpolation
...
Refs #1073
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de>
2025-03-20 12:07:01 +01:00
charliemirabile
2e7d83f7f0
Properly surface errors from build commands
...
the commit 38b13a3 ("Use asyncio for subprocess calls") broke the way
exit codes are reported from the podman compose build command.
The tasks are awaited as they finish which means that if a later build
finishes sucessfully after a failing build, it overwrites status.
Previously the `parse_return_code` function would skip updating the status
if the new return code was zero, but in removing it, this logic was not
carried forward.
Fixes: 38b13a3 ("Use asyncio for subprocess calls")
Signed-off-by: charliemirabile <46761267+charliemirabile@users.noreply.github.com>
2025-03-18 21:49:55 -04:00
Monika Kairaityte
8ef537e247
test/integration: Automate manual selinux
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-03-06 13:04:53 +02:00
Monika Kairaityte
202c3771a9
test/integration: Automate manual uidmaps
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-03-04 22:28:50 +02:00
Ian Fijolek
4cd1642be0
Add quiet flag to podman-compose config
...
This skips printing and is useful for validating config files.
Signed-off-by: Ian Fijolek <ian@iamthefij.com>
2025-02-28 12:48:08 -08:00
Jörn Hirschfeld
aeaceed7ba
integration test for x-podman.interface_name option
...
Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech>
2025-02-23 17:08:00 +01:00
Monika Kairaityte
838957b902
test/integration: Automate manual 'secrets' test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-19 21:42:52 +02:00
Monika Kairaityte
bfba7ba32d
tests/integration: Automate manual seccomp
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-07 22:38:58 +02:00
Matthias Schiffer
43a2f1d01f
Implement x-podman.pod_args to override --pod-args default
...
Allow setting an argument list as x-podman.pod_args to override the
default value `--infra=false --share=`. `--pod-args` passed on the command
line takes precedence over the value set in docker-compose.yml; the values
are not merged.
Fixes #1057 .
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2025-02-07 12:11:19 +01:00
Monika Kairaityte
eaec19336f
tests/integration: Describe pid
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-06 15:16:44 +02:00
Monika Kairaityte
bfea139362
tests/integration: Automate manual no_services
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-05 20:47:59 +02:00
Monika Kairaityte
e626f15eff
tests/integration: Automate manual nets_test_ip
test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-05 19:31:43 +02:00
Monika Kairaityte
29404af723
tests/integration: Automate manual 'nets_test3' test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-03 19:04:15 +02:00
Monika Kairaityte
d9ef3d2cc6
tests/integration: Add missing __init__.py for network_scoped_aliases
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-01-23 02:11:46 +02:00
Monika Kairaityte
d23ef4f481
tests/integration: Add missing __init__.py for build_labels test
...
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-01-23 02:11:46 +02:00