1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

gitlab-ci/autobuild: Add new build confirming behaviour on older MIT Kerberos

Because the MIT KDC builds are moving to current MIT and out of the default autobuild
this ensures that on our default host, which is closer to what most of our
users operate, Samba still works with Kerberos.

This uses the ktest environment that does not require the KDC to exist
and instead uses a static ccache and keytab.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Andrew Bartlett 2021-08-18 14:59:47 +12:00 committed by Andreas Schneider
parent 167ad96136
commit 6145c388d2
2 changed files with 29 additions and 2 deletions

View File

@ -383,6 +383,13 @@ samba-fips:
samba-fileserver:
extends: .needs_samba-h5l-build-private
# This is a full build without the AD DC so we test the build with MIT
# Kerberos from the default system (Ubuntu 18.04 at this stage).
# Runtime behaviour checked via the ktest (static ccache and keytab)
# environment
samba-ktest-mit:
extends: .shared_template
samba-ad-dc-1:
extends: .needs_samba-def-build-private

View File

@ -430,8 +430,28 @@ tasks = {
"fileserver_smb1",
"fileserver_smb1_done",
"maptoguest",
"ktest", # ktest is also tested in samba and samba-mitkrb5
# but is tested here against a system Heimdal
"ktest", # ktest is also tested in samba-ktest-mit samba
# and samba-mitkrb5 but is tested here against
# a system Heimdal
])),
("lcov", LCOV_CMD),
("check-clean-tree", CLEAN_SOURCE_TREE_CMD),
],
},
# This is a full build without the AD DC so we test the build with
# MIT Kerberos from the current system. Runtime behaviour is
# confirmed via the ktest (static ccache and keytab) environment
"samba-ktest-mit": {
"sequence": [
("random-sleep", random_sleep(300, 900)),
("configure", "./configure.developer --without-ad-dc --with-system-mitkrb5 " + samba_configure_params),
("make", "make -j"),
("test", make_test(include_envs=[
"ktest", # ktest is also tested in fileserver, samba and
# samba-mitkrb5 but is tested here against a
# system MIT krb5
])),
("lcov", LCOV_CMD),
("check-clean-tree", CLEAN_SOURCE_TREE_CMD),