François Cami
630c408f9e
ipatests: remove dnf workaround from test_epn.py
...
73c02f635 introduced a workaround to make sure the latest version
of (free)ipa-client-epn was installed.
Since cc624fb17 this should not be needed anymore.
Fixes: https://pagure.io/freeipa/issue/8391
Signed-off-by: François Cami <fcami@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com >
2020-07-03 15:33:49 +02:00
François Cami
73c02f635d
ipatests: ipa_epn: uninstall/reinstall ipa-client-epn
...
Due to https://github.com/freeipa/freeipa-pr-ci/issues/378
the installed version of freeipa-client-epn is not the built
one. Temporarily force uninstall/reinstall of this package
before running the test.
Fixes: https://pagure.io/freeipa/issue/8374
Signed-off-by: François Cami <fcami@redhat.com >
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2020-06-25 15:20:21 +02:00
François Cami
0d4f022b3b
ipatests: check that EPN's configuration file is installed.
...
Fixes: https://pagure.io/freeipa/issue/8374
Signed-off-by: François Cami <fcami@redhat.com >
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2020-06-25 15:20:21 +02:00
Rob Crittenden
ba7974bfd1
IPA-EPN: Don't treat givenname differently
...
This was returning givenname as a list and not as a single
string which messed up the templating.
https://pagure.io/freeipa/issue/3687
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Francois Cami <fcami@redhat.com >
2020-06-10 11:22:58 -04:00
Rob Crittenden
cb205cc5e4
IPA-EPN: add test to validate smtp_delay value
...
Configuration test to ensure that smtp_delay validation is
properly enforced.
Also reset the epn configuration when the tests are run.
https://pagure.io/freeipa/issue/3687
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Francois Cami <fcami@redhat.com >
2020-06-10 11:22:58 -04:00
Rob Crittenden
759ab3120e
IPA-EPN: Add tests for --mail-test option
...
Test sending a default template email to the smtp_admin user.
Test that --mail-test and --dry-run cannot be used together.
https://pagure.io/freeipa/issue/3687
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Francois Cami <fcami@redhat.com >
2020-06-10 11:22:58 -04:00
Rob Crittenden
41e3d58a0b
IPA-EPN: test using SSL against port 465
...
Enable the postfix SSL listener on port 465. The certifiates
and other configuration is already in place.
Test that sending mail is successful.
Fixes: https://pagure.io/freeipa/issue/3687
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Francois Cami <fcami@redhat.com >
2020-06-10 11:22:58 -04:00
Rob Crittenden
7e621cf84f
IPA-EPN: Add test for starttls mode
...
Get a certificate for postfix and configure it to allow starttls
connections.
Fixes: https://pagure.io/freeipa/issue/3687
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Francois Cami <fcami@redhat.com >
2020-06-10 11:22:58 -04:00
Rob Crittenden
1760ad48ae
IPA-EPN: Add tests for sending real mail with auth and templates
...
Send e-mail using postfix on localhost and read the contents to
verify that the mail was delivered and that the template was
applied correctly.
Fixes: https://pagure.io/freeipa/issue/3687
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Francois Cami <fcami@redhat.com >
2020-06-10 11:22:58 -04:00
François Cami
3805eff417
IPA-EPN: Test suite.
...
Initial test suite for EPN.
Fixes: https://pagure.io/freeipa/issue/3687
Signed-off-by: François Cami <fcami@redhat.com >
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Michal Polovka <mpolovka@redhat.com >
Reviewed-By: Christian Heimes <cheimes@redhat.com >
2020-06-09 08:43:45 +02:00