tests: Run more browser tests

Upstream now grows more and more @nondestructive test, which we can run
in our single test VM, so add the first batch.

This uncovers some issues in the tests that assume that there is no root
login in the VM, skip them. They are being fixed in
https://github.com/cockpit-project/cockpit/pull/13773
This commit is contained in:
Martin Pitt 2020-03-23 12:15:45 +01:00
parent ffbd0b8503
commit 12cf08914b
2 changed files with 13 additions and 2 deletions

View File

@ -13,6 +13,8 @@
- cockpit
- cockpit-tests
- cockpit-dashboard
- cockpit-sosreport
- cockpit-storaged
- podman
tests:
- smoke:

View File

@ -11,7 +11,7 @@ chcon -Rt container_file_t "$SOURCE" "$LOGS"
# create user account for logging in
if ! id admin 2>/dev/null; then
useradd admin -G wheel
useradd -c Administrator -G wheel admin
echo admin:foobar | chpasswd
fi
@ -40,7 +40,16 @@ cp -a /source/test .
npm install axe-core chrome-remote-interface sizzle
export TEST_OS=fedora-32
test/verify/check-menu -tv --machine \$HOST:22 --browser \$HOST:9090
export TEST_AUDIT_NO_SELINUX=1
# FIXME: Test{Accounts,Login}.testBasic don't get along with the existing root session (https://github.com/cockpit-project/cockpit/pull/13773)
test/verify/check-accounts -tv --machine \$HOST:22 --browser \$HOST:9090 TestAccounts.{testRootLogin,testUnprivileged}
test/verify/check-login -tv --machine \$HOST:22 --browser \$HOST:9090 TestLogin.{testExpired,testSELinuxRestrictedUser}
# check-menu is not @nondestructive yet, keep it last
for t in sosreport storage-basic menu; do
test/verify/check-\$t -tv --machine \$HOST:22 --browser \$HOST:9090
done
EOF
# reset system changes from verify tests, for running this multiple times in a row