Univention Bugzilla – Bug 48896
Add mailPrimaryAddress to demo users
Last modified: 2022-07-15 08:31:09 CEST
It would be helpful to add a mailPrimaryAddress to the demo users (demo_student, demo_admin, demo_teacher)
Hint: IIRC the mailPrimaryAddress can only be set, if a mail domain object exists. And this mail domain object is available if univention-mail-server is somewhere installed within the domain.
The UDM module mail/domain is part of UCS, no need for univention-mail-server. We could create a mail/domain object for demoschool.example.com. Subdomains of example.com are AFAIK allowed and will not make any problems. Then we can create email addresses like: demo_student@.demoschool.example.com
MR merged, package built (`13.0.13A~5.0.0.202204221510`) and advisory updated https://git.knut.univention.de/univention/ucsschool/-/commit/c5cd1deae5e1edd7698047c796ddff584dcb38e2.
Package installs, changes work --> VERIFIED
Reopen because of failing tests: Please have a look at these tests + fix them: https://univention-dist-jenkins.k8s.knut.univention.de/job/UCSschool-5.0/job/Install%20Singleserver/lastCompletedBuild/Config=s4,TestGroup=base1,UCSRelease=testing/testReport/90_ucsschool/31_create_demoportal/test_create_school_doesnt_create_existing_school/ https://univention-dist-jenkins.k8s.knut.univention.de/job/UCSschool-5.0/job/Install%20Singleserver/lastCompletedBuild/Config=s4,TestGroup=base1,UCSRelease=testing/testReport/90_ucsschool/31_create_demoportal/test_create_school_creates_missing_school/
I ran the tests that were failing in a VM and they pass now.
Still failing: https://univention-dist-jenkins.k8s.knut.univention.de/job/UCSschool-5.0/job/Install%20Singleserver/40/Config=s4,TestGroup=base1,UCSRelease=testing/ I suggest to start that Jenkins job, but configure it to a) only run one of the failing sub-jobs (e.g. "s4,base1,public") and b) to not "halt". Than you can log into the test machine after it has finished, and run the test there to see what is different to your test VM.
Looks like it's not failing anymore: https://univention-dist-jenkins.k8s.knut.univention.de/job/UCSschool-5.0/job/Install%20Singleserver/lastBuild/Config=s4,TestGroup=base1,UCSRelease=testing/testReport/
all ok https://univention-dist-jenkins.k8s.knut.univention.de/job/UCSschool-5.0/job/Install%20Singleserver/Config=s4,TestGroup=base1,UCSRelease=testing/42/ The problem was: The fix was correct and at the same time a changelog entry was missing. Because the previous version ...37 had not been built yet, this did not raise any errors. Adding a new changelog entry fixed this issue.
UCS@school 5.0 v2 has been released. https://docs.software-univention.de/changelog-ucsschool-5.0v2-de.html If this error occurs again, please clone this bug.