Commit Graph

7 Commits

Author SHA1 Message Date
Ed Santiago
9def1dd905 Gating tests: use loginctl
- instead of hacky mkdir /run/user/<fedora id>,
  use loginctl enable-linger and hope that it
  has the same effect.

  reason: the mkdir doesn't seem to be 100% effective.
  There are cases in which the first rootless podman
  invocation fails with:

    Error: could not get runtime: cannot mkdir /run/user/1000/libpod: mkdir /run/user/1000/libpod: no such file or directory

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-10-09 14:57:11 -06:00
Ed Santiago
20052717cb rootless: 1 step forward, 1 step back
forward: rhbz1740664 (permissions on /dev/net/tun) appears to
be fixed; let's remove the 'modprobe tun' workaround.

back: rootless tests are failing in CI, in a way that I
can't reproduce via 1minutetip. One of the errors is:

   cannot mkdir /run/user/1000/libpod: mkdir /run/user/1000/libpod: no such file or directory

...so let's try, after the mkdir, chowning it to fedora.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-09-12 15:18:17 -06:00
Ed Santiago
b1820d75a1 Workaround for failing rootless tests bz1740664
Systemd bug 1740664 causes /dev/net/tun to be mode 600,
causing slirp4netns to fail on rootless podman.
Suggested workaround is to 'modprobe tun'. Let's
give that a try in the interests of making the
gating tests pass.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-08-26 09:27:53 -06:00
Bruno Goncalves
2afdae1620 run tests with timeout parameter
timeout parameter is supported by the test role: https://pagure.io/standard-test-roles/blob/master/f/roles/standard-test-basic
2019-08-02 08:47:15 +02:00
Bruno Goncalves
096afbce0b run tests using standard-test-basic role
attempt to run the test also as rootless
2019-07-22 15:04:33 +02:00
Ed Santiago
aea393b7eb New tests subpackage
Define a new podman-tests subpackage, containing a set of
tests intended to be run as gates. As of this initial checkin,
this consists of a set of BATS tests in /usr/share/podman .

Include a configuration for running under Fedora CI

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-03-13 06:45:03 -06:00
Ed Santiago
7203469f10 Quick simple tests for podman
This is a placeholder only. The idea is that, once the ginkgo
tests are approved and merged and packaged, you add that
package to test_podman.yml:required_packages, then rewrite
the .sh script so it invokes those tests and writes PASS/FAIL
to test.log as appropriate.

Until then, this can serve as a rudimentary gate.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2018-11-13 09:50:53 -07:00