Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pytest] Port AD id mapping tests to the new framework #7171

Closed
wants to merge 280 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
19fecbf
Tests: Improve stability of test_0004_bz2110091
jakub-vavra-cz Jun 15, 2023
05bc18c
Tests: Add ssh module that is fast, reliable, accurate
aborah-sudo May 31, 2023
895d194
ldap: return failure if there are no grace logins left
sumit-bose Jun 7, 2023
5008f0f
ad: use sAMAccountName to lookup hosts
sumit-bose Jun 7, 2023
5711bb2
cache_req: remove unused field cache_behavior from state
pbrezina Jun 1, 2023
bc5fe9e
cache_req: fix propagation of offline status with cache_first = true
pbrezina Jun 1, 2023
d3c3408
SYSDB: in case (ignore_group_members == true) group is actually complete
alexey-tikhonov Jun 10, 2023
5092224
TEST: Fix pam-srv-tests to correctly treat the test name
aplopez May 31, 2023
228183b
IPA: Do not try to add duplicate values to the LDAP attributes
aplopez May 31, 2023
42cf3c4
UTIL: New function string_in_list_size()
aplopez Jun 6, 2023
010e61f
UTIL: add_strings_lists() becomes add_strings_lists_ex()
aplopez Jun 7, 2023
bfc88dc
RESPONDER: attr_in_list() is replaced by string_in_list_size()
aplopez Jun 7, 2023
355b0c2
IPA: Do not duplicate the entry attributes.
aplopez Jun 8, 2023
aa06159
po: update translations
simmon-nplob Jun 2, 2023
abce376
po: update translations
yurchor Jun 1, 2023
a94f39f
po: update translations
NorwayFun Jun 3, 2023
8e80798
po: update translations
simmon-nplob Jun 2, 2023
d37d72f
po: update translations
oktay454 Jun 2, 2023
f0d8f93
po: update translations
piotrdrag Jun 4, 2023
8d3acd3
po: update translations
Jun 5, 2023
d95212b
po: update translations
Jun 9, 2023
4f469c0
po: update translations
Jun 9, 2023
c40d183
po: update translations
Jun 9, 2023
7f6c10d
pot: update pot files
pbrezina Jun 23, 2023
256e013
Test: Test search filter specific user override or a specific group o…
madhuriupadhye May 8, 2023
301e5b3
Tests: When adding attributes ldap_user_extra_attrs with mail value i…
madhuriupadhye Jun 8, 2023
dc8d649
Release sssd-2.9.1
pbrezina Jun 23, 2023
b8ff5f1
Test: gating sssd after crash
shridhargadekar1 Jun 26, 2023
a871398
Tests: Fix alltest tier1_3 tests with new ssh module
aborah-sudo Jun 26, 2023
7eef916
Tests: Fix IPA tire1_2 tests
aborah-sudo Jun 26, 2023
4e7cfe1
BUILD: Accept krb5 1.21 for building the PAC plugin
alexey-tikhonov Jun 15, 2023
f16e570
watchdog: add arm_watchdog() and disarm_watchdog() calls
sumit-bose Jun 9, 2023
27987c7
sbus: arm watchdog for sbus_connect_init_send()
sumit-bose Jun 9, 2023
e574144
Tests: Update test_ldap_password_policy.py::test_maxage as per the ne…
aborah-sudo Jun 28, 2023
140692c
Tests: Fix test_0002_bz1928648 with new ssh module
aborah-sudo Jul 11, 2023
a1e773d
Tests: Update tier1 test cases with new ssh module
aborah-sudo Jul 12, 2023
ddfc5e5
Tests: Backport of https://github.com/SSSD/sssd/pull/6818
aborah-sudo Jul 12, 2023
7a63582
Tests: Fix test_0008_1636002
aborah-sudo Jul 13, 2023
e6fbd1c
SPEC: sync with Fedora spec file
alexey-tikhonov Jul 11, 2023
15d7d34
sssct: allow cert-show and cert-eval-rule as non-root
sumit-bose Jul 4, 2023
11afa7a
certmap: fix partial string comparison
sumit-bose Jul 4, 2023
aedef95
test: fix linking issue
sumit-bose Jul 10, 2023
89ff254
Tests: Minor fix in test_adtrust
madhuriupadhye Jun 29, 2023
c26b6b5
Tests: converted multihost/test_config.py
patriki01 May 4, 2023
d8c18e1
Tests: Fix test_maxage
aborah-sudo Jul 14, 2023
5bd218b
test: basic tests for ldap_user_extra_attrs
ikerexxe Jun 27, 2023
752e002
Test: Check case-insensitive while checking with group lookup for a o…
madhuriupadhye May 11, 2023
84e0aac
ci: move to new centos8 buildroot repository url
pbrezina Jul 17, 2023
2f4a3fa
ci: run workflows on sssd-2-9
pbrezina Jul 17, 2023
65abf05
Tests: Fix KCM::test_client_timeout
aborah-sudo Jul 20, 2023
0b9bc87
Tests: Update sssh module for tier 1_3, 1_4 and 2
aborah-sudo Jul 18, 2023
473e2b4
Tests: Add sleep time to test_bz785908
aborah-sudo Jul 21, 2023
e26215d
Tests: Package download
madhuriupadhye Jul 21, 2023
fd80b42
tests: add pytest-importance plugin to system tests
pbrezina May 16, 2023
bb46f31
tests: add pytest-output plugin to system tests
pbrezina May 16, 2023
b9d3ad1
tests: add requirements to system tests
pbrezina Jun 1, 2023
cc99fdd
tests: drop tier from system tests
pbrezina Jun 1, 2023
df727cb
tests: fix doctring in test_config__add_remove_section
pbrezina Jul 19, 2023
71876d6
ci: generate polarion xmls from system tests
pbrezina May 16, 2023
13373ea
ci: run system test in collect only mode first
pbrezina Jul 19, 2023
8c1b5c4
man: clarify passkey PIN prompt
ikerexxe May 29, 2023
b8b75ab
Change "non_kerberos" to "local" authentication
justin-stephenson Apr 21, 2023
5b575fc
Add local auth policy
justin-stephenson Apr 21, 2023
16f12ef
PAM: Fail empty password in passkey fallback
justin-stephenson Jun 29, 2023
9cecdc1
Tests: convert intg/test_memory_cache.py to system tests
patriki01 Apr 25, 2023
3734714
tests: fix doctring in test_memory_cache__invalidate_group_after_stop
pbrezina Jul 25, 2023
e8bd99e
Tests: Add package for IPA tests
madhuriupadhye Jul 25, 2023
fe6be47
tests: multihost/basic/sssctl_config_check.py converted
patriki01 Jul 3, 2023
be42e37
Tests: converted intg/test_memory_cache to test_id
patriki01 Apr 27, 2023
7fbb9a0
mans: fix typo in ldap_idmap_autorid_compat
andreboscatto Jul 25, 2023
8335284
tests: converted multihost/basic/test_ldap.py
patriki01 Jun 1, 2023
0b5d3ab
readme: remove github actions badges
pbrezina Aug 1, 2023
f79ce53
passkey: fix two covscan issues
ikerexxe May 18, 2023
aba98a4
passkey: rename function
ikerexxe May 24, 2023
9c9a8de
MAN: only mention 'files' provider if its support is built
alexey-tikhonov Aug 12, 2023
e19570e
KRB5: avoid another attempt to free 'cc' in 'done:' section if first …
alexey-tikhonov Jun 19, 2023
e124370
KRB5: use proper function to deallocate mem
alexey-tikhonov Jun 19, 2023
f745621
KRB5: avoid FORWARD_NULL
alexey-tikhonov Jun 19, 2023
b9fa1af
KRB5: fix memory leak
alexey-tikhonov Jun 19, 2023
2ed6aa8
KRB5: fix memory leak
alexey-tikhonov Jun 19, 2023
afbf087
KRB5: avoid RESOURCE_LEAK
alexey-tikhonov Jun 19, 2023
996affc
KRB5: fixed RESOURCE_LEAK
alexey-tikhonov Jun 20, 2023
4d12836
LDAP: fixed RESOURCE_LEAK
alexey-tikhonov Jun 20, 2023
f7f9f6e
LDAP: fixed leak of `kprinc`
alexey-tikhonov Jun 20, 2023
50e2fd2
UTILS: fixed USE_AFTER_FREE
alexey-tikhonov Jun 20, 2023
4b2dbc2
Fix typo: found => find
fcami Jul 4, 2023
d479b28
UTILS: swap order of seteuid()/setegid()
alexey-tikhonov Aug 7, 2023
358e6d1
SBUS: warn loudly if bus denies access
alexey-tikhonov Aug 9, 2023
1c417ba
IFP: add a comment to 'org.freedesktop.sssd.infopipe.service' to avoi…
alexey-tikhonov Aug 9, 2023
e57b8e7
Passkey: Warning display for fallback
justin-stephenson Jul 21, 2023
ccbeb64
Makefile: Respect `BUILD_PASSKEY` conditional
justin-stephenson Aug 15, 2023
1508225
pam: Conditionalize passkey code
justin-stephenson Aug 14, 2023
f72763a
ipa: Add `BUILD_PASSKEY` conditional for passkey codepath
justin-stephenson Aug 15, 2023
d0359db
pam: Remove unneeded passkey verification call
justin-stephenson Aug 14, 2023
19b43cc
CI: Add Fedora 40+ to install CI scripts
justin-stephenson Aug 15, 2023
3d22dca
PROXY: missing `proxy_resolver_lib_name` isn't an error
alexey-tikhonov Aug 22, 2023
78fba72
Fix compilation warning ``` ../src/responder/pam/pamsrv_cmd.c: In fun…
alexey-tikhonov Aug 22, 2023
cb86a5c
DP: ENOTSUP isn't a fatal failure for target c-tor
alexey-tikhonov Aug 23, 2023
d08af4b
IPA: Change sysdb_attrs_add_val to sysdb_attrs_add_val_safe in debug …
bangcheng Aug 23, 2023
9c4ac1b
mc: recover from invalid memory cache size
pbrezina Aug 4, 2023
0919c92
Proxy: Avoid ldb_modify failed error
justin-stephenson Aug 23, 2023
e71a353
Passkey: Add child timeout handler
justin-stephenson Aug 21, 2023
e2cb4d5
Tests: sssctl_config_check: test for incorrectly set value
patriki01 Jul 27, 2023
d935fa6
UTILS: include name of the file that failed perform_checks() in the d…
alexey-tikhonov Aug 29, 2023
ee8f50f
TESTS: Porting sss_override test suite
Apr 21, 2023
2a3a132
Passkey: Conditional fixes
justin-stephenson Aug 31, 2023
45ed619
sss_iface: do not add cli_id to chain key
pbrezina Sep 4, 2023
9d6ab77
po: update translations
weblate Aug 31, 2023
c84689d
pot: update pot files
pbrezina Sep 7, 2023
a62efb7
tests: include passkey test code only if passkey is built
pbrezina Sep 7, 2023
644cd59
Release sssd-2.9.2
pbrezina Sep 7, 2023
0a42910
tests: convert multihost/basic/test_basic to test_kcm and test_authen…
patriki01 Jul 25, 2023
f1a1170
Tests: Print krb5.conf when joining realm.
jakub-vavra-cz Sep 5, 2023
cb1c59c
Tests: Split package installation to different transactions.
jakub-vavra-cz Sep 6, 2023
f117da5
Tests: Handle dns with systemd resolved.
jakub-vavra-cz Sep 6, 2023
71ca205
tests: add sssd_test_framework.markers plugin
pbrezina Aug 10, 2023
674ee26
tests: adding group and importance markers
Aug 25, 2023
ec8f026
tests: Add missing pytest marker config.
jakub-vavra-cz Sep 26, 2023
a4de653
ci: remove unused clang-analyzer from dependencies
sumit-bose Sep 15, 2023
02bd1d7
Passkey: Allow kerberos preauth for "false" UV
justin-stephenson Sep 8, 2023
a311133
passkey: omit user-verification
ikerexxe Sep 18, 2023
45fbcd9
Tests: Enabling proxy_fast_alias shows "ldb_modify failed: [Invalid a…
aborah-sudo Aug 11, 2023
7e45b32
Tests: Port rootdse test suit to new test framework.
aborah-sudo Aug 21, 2023
b86d301
SUDO service: ${DEBUG_LOGGER} was missed for 'sudo'
alexey-tikhonov Sep 9, 2023
5469de2
tests: Improve read write pipe child tests
justin-stephenson Sep 22, 2023
0047969
util: Realloc buffer size for atomic safe read
justin-stephenson Sep 22, 2023
0705145
MC: a couple of additions to 'recover from invalid memory cache size'…
alexey-tikhonov Sep 25, 2023
ede391c
Passkey: Increase conv message size for prompting
justin-stephenson Sep 26, 2023
583daff
Tests: converted alltests/test_pasword_policy.py to tests/test_ldap.py
patriki01 Sep 26, 2023
6bba653
ci: install latest SSSD code on IPA server
pbrezina Sep 25, 2023
b8b2bfa
Tests: alltest/test_sssctl_local.py converted to system/tests/sssctl.py
patriki01 Sep 5, 2023
7a53c7a
Tests: multihost/basic/test_files converted
patriki01 Jul 20, 2023
df709da
tests: add passkey tests for sssctl and non-kerberos authentication
madhuriupadhye Mar 20, 2023
c6ea805
NSS: Replace notification message by a less scary one
aplopez Oct 4, 2023
a9617cf
Tests:alltests/test_rfc2307.py converted to test_ldap.py
patriki01 Sep 21, 2023
8d5752f
Tests: alltests/test_sss_cache.py converted to multihost/test_sssctl.py
patriki01 Sep 7, 2023
129ceae
cli: caculate the wait_time in milliseconds
Geass-LL Sep 29, 2023
3b939ce
Tests: add follow-symlinks to sed for nsswitch
spoore1 Oct 5, 2023
1fa7210
KCM: Remove the oldest expired credential if no more space.
aplopez Oct 3, 2023
834b536
KCM: Display in the log the limit as set by the user
aplopez Oct 9, 2023
6218b40
Tests: Skip tests unstable on other archs and tweak realm join.
jakub-vavra-cz Oct 3, 2023
c799b75
Tests: Fix AD param sasl tests.
jakub-vavra-cz Oct 16, 2023
5e35a69
configure: use 'LDB_CFLAGS'
alexey-tikhonov Oct 10, 2023
c99f684
Tests: adjoin in test_00015_authselect_cannot_validate_its_own_files
jakub-vavra-cz Oct 16, 2023
7d73571
utils: enable talloc null tracking
sumit-bose Oct 11, 2023
42face7
proxy: add support for certificate mapping rules
sumit-bose Sep 1, 2023
351aab9
intg: add NSS module for nss-wrapper support
sumit-bose Sep 1, 2023
d364914
intg: replace files with proxy provider in PAM responder test
sumit-bose Sep 1, 2023
25a913e
confdb: add new option for confdb_certmap_to_sysdb()
sumit-bose Sep 4, 2023
7668ed6
intg: use file and proxy provider in PAM responder test
sumit-bose Sep 18, 2023
04b6a22
intg: add proxy auth with fallback test
sumit-bose Oct 11, 2023
793284a
man: Improve LDAP security wording
justin-stephenson Sep 27, 2023
a48c744
dyndns: PTR record updates separately
thalman Sep 26, 2023
aa3616b
Updating ad_multihost test
Apr 27, 2023
c866b53
Updating ad_multihost test
Apr 27, 2023
3fd19c8
Adding test case for bz2167728
Apr 30, 2023
9c4f728
man: clarify user credentials for `cache_credentials`
ikerexxe Oct 19, 2023
9e7a08a
TESTS: topology set to KnownTopologyGroup.AnyProvider
patriki01 Oct 12, 2023
a9498b1
Tests: Fix autofs cleanups
jakub-vavra-cz Oct 23, 2023
2bbc875
ipa: reduce log level of some HBAC log messages
sumit-bose Oct 24, 2023
fa33c99
CI: build passkey for centos-9
ikerexxe Oct 24, 2023
9ebaee7
build(deps): bump DamianReeves/write-file-action
dependabot[bot] Oct 23, 2023
d154f72
build(deps): bump actions/checkout from 3 to 4
dependabot[bot] Oct 23, 2023
66d115c
build(deps): bump vapier/coverity-scan-action from 1.2.0 to 1.7.0
dependabot[bot] Oct 23, 2023
155584e
build(deps): bump linuxdeepin/action-cppcheck
dependabot[bot] Oct 23, 2023
380eafa
intg: return status code for calls requiring it in fake nss module
pbrezina Oct 26, 2023
e217fa8
ci: get frozen Fedora releases in the matrix
pbrezina Oct 25, 2023
ef5370e
SSS_CLIENT: replace `__thread` with `pthread_*specific()`
alexey-tikhonov Oct 23, 2023
5a546c8
ipa: do not go offline if group does not have SID
pbrezina Aug 10, 2023
3da5457
PAM: fix Smartcard offline authentication
sumit-bose Nov 2, 2023
2eae8ab
po: update translations
weblate Sep 18, 2023
d380342
pot: update pot files
pbrezina Nov 13, 2023
ee2e0cd
Release sssd-2.9.3
pbrezina Nov 13, 2023
ba7b993
CI: clean configure.sh
ikerexxe Oct 27, 2023
3161740
CI: clean distro.sh
ikerexxe Oct 27, 2023
52acc39
CI: clean deps.sh
ikerexxe Oct 27, 2023
776f6e1
CI: upload cwrap logs
ikerexxe Nov 6, 2023
fd414aa
Tests: Add a test for bz1900973 kcm delete expired tickets
jakub-vavra-cz Mar 2, 2023
f394ace
SPEC: 'sssd-proxy' requires 'libsss_certmap.so'
alexey-tikhonov Nov 13, 2023
4b4564c
UTIL: use proper specifier for 'DEBUG_CHAIN_ID_FMT_*'
alexey-tikhonov Nov 13, 2023
1e2af0d
Don't provide 'uint64_t' as POPT_ARG_LONG.
alexey-tikhonov Nov 14, 2023
b536e4b
tests: consolidation, refactoring and organizing, renaming of some tests
Sep 13, 2023
469ddcb
LOGROTATE: logrotate should also signal sssd_kcm
aplopez Nov 10, 2023
8c83234
KCM: Replace a hard-coded constant by a macro
aplopez Nov 3, 2023
855d046
KCM: Fixed a wrong check
aplopez Nov 3, 2023
14e7d7c
KCM: Remove unused cc_be_type from struct kcm_ccdb
aplopez Nov 13, 2023
3e740a2
KCM: When freeing the client, check that it is not NULL.
aplopez Nov 13, 2023
a5c96e2
KCM: sss_iobuf_init_empty() shall not zero memory
aplopez Nov 3, 2023
78d0a97
KCM: Reduce the amount of memory allocated for the packages
aplopez Nov 3, 2023
60fde9d
KCM: Do not zero memory when not need.
aplopez Nov 7, 2023
c5d0457
Tests: converted alltests/test_default_debug_level
patriki01 Jul 26, 2023
ff52002
ci: make valgrind suppression more relaxed for test_ipa_subdomains_se…
sumit-bose Nov 28, 2023
e03921e
nssidmap: fix sss_nss_getgrouplist_timeout() with empty secondary gro…
sumit-bose Oct 26, 2023
9a6ff9e
pam: fix Smartcard auth with files provider
sumit-bose Nov 27, 2023
a8928a9
tests: add passkey tests for authentication failures
madhuriupadhye May 12, 2023
be5399c
sssctl: do not require root for user-checks
sumit-bose Nov 22, 2023
e44ad32
Tests: Add a test for kcm log rotation SSSD-5687
jakub-vavra-cz Nov 14, 2023
2bc72a2
Tests: alltests/test_autoprivategroup.py converted to system/test_aut…
patriki01 Nov 2, 2023
35bcb91
ad: do not print backtrace if SSSD domain name is not the same as DNS…
pbrezina Nov 14, 2023
eabeb3a
ad: do not print backtrace if SOM is missing in GPO
pbrezina Nov 14, 2023
d02874b
tests: adapt to new firewall API
pbrezina Dec 5, 2023
f490872
passkey: Add krb5 preauthentication prompt support
justin-stephenson Nov 1, 2023
6959dc6
DP: reduce log level in case a responder asks for unknown domain
alexey-tikhonov Dec 7, 2023
66bd91d
Tests: alltests/test_ldap_extra_attrs.py converted to system/tests/te…
patriki01 Oct 5, 2023
f6faf12
LOGS: added missing new line
alexey-tikhonov Dec 8, 2023
4d01e11
passkey: Skip processing non-passkey mapping data
justin-stephenson Dec 1, 2023
1cffe5b
Tests: Fix tokengroups tests.
jakub-vavra-cz Jun 20, 2023
9f406d4
Tests: Retry realm join as it is flaky on multiarch setups
jakub-vavra-cz Nov 28, 2023
cbd479d
Tests: Change path to keytabs to reflect whole domain in them
jakub-vavra-cz Dec 15, 2023
0ae9238
Tests: Add importance and ticket to multihost
jakub-vavra-cz Nov 16, 2023
854edfb
Tests: Revert change of retun type of realm_join
jakub-vavra-cz Dec 20, 2023
033f3db
man: fix wrong product name
andreboscatto Dec 15, 2023
02c1832
Passkey: Fix coverity memory overrun error
justin-stephenson Dec 8, 2023
f5e3bb3
Passkey: Fix coverity RESOURCE_LEAK
justin-stephenson Dec 11, 2023
51f9031
Passkey: Fix valgrind error and missing free
justin-stephenson Dec 12, 2023
160738e
SSS_CLIENT: MC: in case mem-cache file validation fails,
alexey-tikhonov Dec 8, 2023
a186224
SSS_CLIENT: check if mem-cache fd was hijacked
alexey-tikhonov Dec 15, 2023
abb146e
SSS_CLIENT: check if reponder socket was hijacked
alexey-tikhonov Dec 20, 2023
8bf25b6
scripts: sign tarball with sssd project key
pbrezina Dec 7, 2023
5c22473
scripts: create checksum file for release tarball
pbrezina Dec 7, 2023
46f4161
KCM: Fix a memory "leak"
aplopez Dec 18, 2023
8a78c75
Tests: multihost/test_sssctl_analyzer.py converted to system/test_sss…
patriki01 Nov 9, 2023
5a2256c
Tests: Add a plugin for a per-test logging
jakub-vavra-cz Dec 7, 2023
852b9e0
Tests: alltests/test_config_validation converted
patriki01 Dec 11, 2023
bd9cf6f
Tests: alltests/test_offline.py converted
patriki01 Oct 23, 2023
80d5a34
Tests: Add passkey test cases for following scenario
madhuriupadhye Sep 29, 2023
a339315
Handle child-domain group membership
thalman Nov 14, 2023
98d8bed
DEBUG: added missing new line
alexey-tikhonov Jan 4, 2024
936b828
LDAP: make groups_by_user_send/recv public
sumit-bose Nov 3, 2023
09dcc73
ad: gpo evalute host groups
sumit-bose Nov 6, 2023
dda0f2e
sysdb: remove sysdb_computer.[ch]
sumit-bose Nov 17, 2023
f5ce7c1
sdap: add set_non_posix parameter
sumit-bose Jan 9, 2024
05de56d
GPO evaluation of primary group
thalman Aug 31, 2023
cb64d47
tests: updating poor assertion in dyndns
Jan 12, 2024
c054fc0
Tests: Fix ipa test for gating.
aborah-sudo Jan 10, 2024
1c5a11f
tests: adding background refresh tests to the new framework
Nov 21, 2023
eecd418
pot: update pot files
pbrezina Jan 12, 2024
02d3f21
Release sssd-2.9.4
pbrezina Jan 12, 2024
b1e8c21
Test: Dropping the assertion of ssh from analyzer list
shridhargadekar Jan 13, 2024
9490f25
Tests: Add single retry for realm leave
jakub-vavra-cz Jan 12, 2024
bfcb272
build(deps): bump actions/download-artifact from 3 to 4
dependabot[bot] Jan 1, 2024
32390d0
build(deps): bump github/codeql-action from 2 to 3
dependabot[bot] Jan 1, 2024
aa63f77
build(deps): bump actions/upload-artifact from 3 to 4
dependabot[bot] Jan 1, 2024
50077c3
pam: fix SC auth with multiple certs and missing login name
sumit-bose Jan 18, 2024
1815037
krb5_child: fix order of calloc arguments
pbrezina Jan 23, 2024
33bb96f
man: improving documentation about username and email
andreboscatto Jan 17, 2024
33cce29
Tests: Set ciphers for kerberos
jakub-vavra-cz Jan 23, 2024
ae2f5e9
Tests: Add pytest.ini with marker converted to basic suite
jakub-vavra-cz Jan 23, 2024
28c4141
Tests: Fix OsError in test_kcm_debug_level_set
jakub-vavra-cz Jan 24, 2024
3d9aebc
add ad tests
liswang89 Jan 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/analyze-target.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Analyze (target)"
on:
pull_request_target:
branches: [master, sssd-2-7, sssd-2-8]
branches: [master, sssd-2-7, sssd-2-8, sssd-2-9]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
Expand All @@ -13,14 +13,14 @@ jobs:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

- name: Perform cppcheck analysis
# v0.0.11 is the latest release but we need a later commit
uses: linuxdeepin/action-cppcheck@9ef62c4ec8cd5660952cd02c58b83fa57c16a42b
uses: linuxdeepin/action-cppcheck@e63fb1d3f321e0467737aa9de7f691360fb1b8fb
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
Expand All @@ -36,13 +36,13 @@ jobs:
timeout-minutes: 1440
steps:
- name: Checkout target branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: target

- name: Checkout pull request branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: covscan
Expand Down
79 changes: 63 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "ci"
on:
push:
branches: [master, sssd-2-7, sssd-2-8]
branches: [master, sssd-2-7, sssd-2-8, sssd-2-9]
pull_request:
branches: [master, sssd-2-7, sssd-2-8]
branches: [master, sssd-2-7, sssd-2-8, sssd-2-9]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -15,7 +15,7 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
id: dependencies
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
source ../contrib/fedora/bashrc_sssd
make distcheck

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: build
Expand All @@ -63,7 +63,7 @@ jobs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get matrix
id: matrix
Expand All @@ -80,7 +80,7 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sssd

Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:

- name: Upload main artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: ${{ matrix.tag }}-intgcheck
Expand All @@ -124,10 +124,11 @@ jobs:
./sssd/ci-build-debug/ci-*.log
./sssd/ci-build-debug/test-suite.log
./sssd/ci-build-debug/ci-mock-result/*.log
./sssd/ci-build-debug/src/tests/cwrap/test-suite.log

- name: Upload valgrind artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: ${{ matrix.tag }}-intgcheck-valgrind
Expand All @@ -145,7 +146,7 @@ jobs:
contents: read
steps:
- name: Checkout sssd repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sssd

Expand Down Expand Up @@ -214,7 +215,7 @@ jobs:
pip3 install -r ./sssd/src/tests/multihost/requirements.txt

- name: Create multihost configuration
uses: DamianReeves/write-file-action@41569a7dac64c252caacca7bceefe28b70b38db1
uses: DamianReeves/write-file-action@0a7fcbe1960c53fc08fe789fa4850d24885f4d84
with:
path: mhc.yml
write-mode: overwrite
Expand All @@ -237,7 +238,7 @@ jobs:

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: ${{ matrix.tag }}-multihost
Expand All @@ -258,7 +259,7 @@ jobs:
contents: read
steps:
- name: Checkout sssd repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sssd

Expand All @@ -276,12 +277,22 @@ jobs:
- /dev/shm
volumes:
- ../sssd:/sssd:rw
ipa:
image: ${REGISTRY}/ci-ipa-devel:${TAG}
shm_size: 4G
tmpfs:
- /dev/shm
volumes:
- ../sssd:/sssd:rw

- name: Build SSSD on the client
- name: Build SSSD on the client and IPA
uses: SSSD/sssd-ci-containers/actions/exec@master
with:
log-file: build.log
working-directory: /sssd
where: |
client
ipa
script: |
#!/bin/bash
set -ex
Expand All @@ -294,22 +305,35 @@ jobs:
/sssd/configure --enable-silent-rules
make rpms

- name: Install SSSD on the client
- name: Install SSSD on the client and IPA
uses: SSSD/sssd-ci-containers/actions/exec@master
with:
log-file: install.log
user: root
where: |
client
ipa
script: |
#!/bin/bash
set -ex

dnf remove -y --noautoremove sssd\*
dnf install -y /dev/shm/sssd/rpmbuild/RPMS/*/*.rpm
rm -fr /dev/shm/sssd

# We need to reenable sssd-kcm since it was disabled by removing sssd not not enabled again
systemctl enable --now sssd-kcm.socket

- name: Restart SSSD on IPA server
uses: SSSD/sssd-ci-containers/actions/exec@master
with:
user: root
where: ipa
script: |
#!/bin/bash
set -ex

systemctl restart sssd || systemctl status sssd

- name: Install system tests dependencies
shell: bash
working-directory: ./sssd/src/tests/system
Expand Down Expand Up @@ -339,23 +363,45 @@ jobs:
run: |
yq -i 'del(.domains[0].hosts.[] | select(.role == "ad"))' mhc.yaml

- name: Check polarion metadata
shell: bash
working-directory: ./sssd/src/tests/system
run: |
# Run pytest in collect only mode to quickly catch issues in Polarion metadata.
set -ex -o pipefail

mkdir -p $GITHUB_WORKSPACE/artifacts
source .venv/bin/activate
pytest \
--color=yes \
--mh-config=./mhc.yaml \
--mh-log-path=$GITHUB_WORKSPACE/mh.log \
--mh-artifacts-dir=$GITHUB_WORKSPACE/artifacts \
--polarion-config=./polarion.yaml \
--output-polarion-testcase=$GITHUB_WORKSPACE/artifacts/testcase.xml \
--collect-only . |& tee $GITHUB_WORKSPACE/pytest-collect.log

- name: Run tests
shell: bash
working-directory: ./sssd/src/tests/system
run: |
set -ex -o pipefail

mkdir -p $GITHUB_WORKSPACE/artifacts
source .venv/bin/activate
pytest \
--color=yes \
--mh-config=./mhc.yaml \
--mh-log-path=$GITHUB_WORKSPACE/mh.log \
--mh-artifacts-dir=$GITHUB_WORKSPACE/artifacts \
--polarion-config=./polarion.yaml \
--output-polarion-testcase=$GITHUB_WORKSPACE/artifacts/testcase.xml \
--output-polarion-testrun=$GITHUB_WORKSPACE/artifacts/testrun.xml \
-vvv . |& tee $GITHUB_WORKSPACE/pytest.log

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: ${{ matrix.tag }}-system
Expand All @@ -366,6 +412,7 @@ jobs:
build.log
install.log
pytest.log
pytest-collect.log

result:
name: All tests are successful
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/copr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
name: copr
on:
pull_request_target:
branches: [master, sssd-2-7, sssd-2-8]
branches: [master, sssd-2-7, sssd-2-8, sssd-2-9]
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
Expand All @@ -41,7 +41,7 @@ jobs:
contents: read
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand All @@ -53,7 +53,7 @@ jobs:
version: 9.${{ env.COPR_PROJECT }}

- name: Upload source rpm as an artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.srpm.outputs.file }}
path: ${{ steps.srpm.outputs.path }}
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
run: |
# CentOS Stream 8
copr-cli --config "$coprcfg" edit-chroot \
--repos 'https://koji.mbox.centos.org/kojifiles/repos/dist-c8-stream-build/latest/$basearch/' \
--repos 'https://kojihub.stream.centos.org/kojifiles/repos/c8s-build/latest/$basearch' \
--modules idm:DL1 \
$COPR_ACCOUNT/$COPR_PROJECT/centos-stream-8-x86_64

Expand All @@ -114,10 +114,10 @@ jobs:
fail-fast: false
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Downlooad source rpm
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ needs.prepare.outputs.srpm }}
path: .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copr_cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: copr cleanup
on:
pull_request_target:
branches: [master, sssd-2-7, sssd-2-8]
branches: [master, sssd-2-7, sssd-2-8, sssd-2-9]
types: [closed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies
Expand All @@ -22,7 +22,7 @@ jobs:
uses: ./.github/actions/configure

- name: Execute and submit coverity scan
uses: vapier/coverity-scan-action@v1.2.0
uses: vapier/coverity-scan-action@v1.7.0
with:
email: "[email protected]"
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
Expand Down
Loading
Loading