History log of /sssd-io/src/tests/intg/sssd_netgroup.py
Revision Date Author Comments Expand
a7acb83aa5c70547f5575cdbb13228f23e3621c0 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix E305 pep8 issues on sssd_netgroup.py E305: expected 2 blank lines after class or function definition, found 1 This issue was found on a debian_testing machine. Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

0f8add07b8257fcce9f62ad80d24e79b8013ae42 09-Mar-2018 Sumit Bose <sbose@redhat.com>

intg: enhance netgroups test Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

49dd8ee2834d9477418961dbaffa4a03cfa9fd1e 29-Jan-2018 René Genz <liebundartig@freenet.de>

Fix minor spelling mistakes in tests/* Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

1921d739ff7b028baa591272cc8969e330c8f872 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

TESTS: add a helper module with shared NSS constants Every module that reads the sssd_nss module directly copied around the same definition of NSS constants. This commit moves them into a single file to avoid code duplication. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

fd2dfed53be8e3a0b63a1b268be34c2dc11ce837 16-Jan-2017 Lukas Slebodnik <lslebodn@redhat.com>

intg: Return strings from ctypes wrappers Python module ctypes directly uses C functions from libraries. C functions usually returns "char *" when string is expected. But python3 uses unicode for string. Encoding returned bytes ("char *") to unicode strings simplify tests in python3 Reviewed-by: Martin Basti <mbasti@redhat.com>

19398379a221a11755c77bb157864dfa9f465488 16-Jan-2017 Lukas Slebodnik <lslebodn@redhat.com>

intg: Use bytes as input in ctypes Python module ctypes directly uses C functions and C functions expect "char *" as a string and not pointer to wide characters "wchar *". Reviewed-by: Martin Basti <mbasti@redhat.com>

c596fc4d75304ff224cbad0aa2aecd3cbe82d2ff 24-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

sssd_netgroup.py: Resolve nested netgroups Reviewed-by: Petr Čech <pcech@redhat.com>

b4633e73067d7bf3b0dbaf212569c123de88f306 10-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

intg: Allow to test netgroups sh-4.2# getent netgroup -s sss QAUsers QAUsers ( ,qa1,example.com) ( ,qa2,example.com) ( ,qa3,example.com) sh-4.2# getent netgroup -s sss QASystems QASystems (qahost1.example.com,,) (qahost2.lab.eng.pnq.redhat.com,,) sh-4.2# getent netgroup -s sss test sh-4.2# echo $? 2 sh-4.2# python Python 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sssd_netgroup >>> sssd_netgroup.get_sssd_netgroups('QAUsers') (1, 0, [(None, 'qa1', 'example.com'), (None, 'qa2', 'example.com'), (None, 'qa3', 'example.com')]) >>> sssd_netgroup.get_sssd_netgroups('QASystems') (1, 0, [('qahost1.example.com', None, None), ('qahost2.lab.eng.pnq.redhat.com', None, None)]) >>> sssd_netgroup.get_sssd_netgroups('test') (0, 0, []) >>> Reviewed-by: Petr Čech <pcech@redhat.com>