Commit Graph

11 Commits

Author SHA1 Message Date
Martin Pitt
25768f40dd tests: Fix browser.sh path detection to be less STI specific
Only set `$SOURCE` to ./source/ if that actually exists, which is when
it is being called through Standard Test Interface.

Provide fallbacks for using FMF [1] or when calling the script manually.

[1] https://github.com/cockpit-project/cockpit-podman/pull/649
2021-01-19 07:54:36 +01:00
Matej Marusak
94a9748f3f test: Set root password to 'foobar' in test Vm 2021-01-07 13:58:42 +01:00
Matej Marusak
a54f341f46 test: Sync up browser.sh with upstream tests 2021-01-07 12:11:10 +01:00
Matej Marusak
4cef1ffec0 test: Cleanup images before pulling the ones we need 2020-11-05 11:39:35 +01:00
Martin Pitt
2957a067ee tests: Run more upstream integration tests
This requires a workaround for podman.service leaking processes on
shutdown: https://github.com/containers/podman/issues/7021

Some tests don't work in dist-git gating CI environment yet:
testNotRunning, testRunImageSystem, testRunImageUser

Also don't use run-tests yet, this requires
https://github.com/cockpit-project/cockpit-podman/pull/437
2020-07-20 07:38:18 +02:00
Martin Pitt
124190644b tests: Adjust to podman 2.0 API
Use the REST socket unit name.
2020-07-15 13:51:30 +02:00
Martin Pitt
0d5eac1292 tests: Set up root ssh access
The test needs to be able to `ssh root@localhost` to run commands on the
machine directly, it doesn't just run commands through cockpit.
2020-05-18 13:58:14 +02:00
Martin Pitt
3d9d9a56f4 tests: Fix RHEL check 2020-05-15 08:25:32 +02:00
Martin Pitt
1d5f8f120c tests: Run as unprivileged user
Approach taken from cockpit:
https://src.fedoraproject.org/rpms/cockpit/c/6d1be3eb74
2020-04-29 07:49:57 +02:00
Martin Pitt
d6da8e6a37 tests: Fix for running in RHEL
* Generalize setting of $TEST_OS
 * chromium-headless is not in RHEL 8, install it from EPEL.
2020-04-28 10:40:37 +02:00
Martin Pitt
70257534e1 Add initial upstream integration test
Re-use the test skeleton from cockpit. Just run a single integration
test for now, until we make them properly @nondestructive upstream [1].

Run chromium and the test directly on the test bed. For cockpit-podman
tests it's not practical to run them in a cockpit/tasks podman
container, as that container interferes too much with the tests.

[1] https://github.com/cockpit-project/cockpit-podman/pull/356
2020-04-15 22:20:39 +02:00