Bug 40296 - write tests for the office 365 listener
write tests for the office 365 listener
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Office 365
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
Erik Damrose
:
Depends on: 38950
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-18 12:28 CET by Daniel Tröder
Modified: 2023-03-25 06:52 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2015-12-18 12:28:18 CET
While it would be nice to use a different channel for testing the listener, C# code using MS libraries on Mono are not well maintainable for us… maybe we can find usable PHP or JS code, but I suggest to just go for code coverage and use the Apps code for all communication with Azure.

The AzureAuth and AzureHandler classes can be used without the listener. So this would work:
1. udm users/user modify ... givenName=abc              # uses listener
2. sleep x                                              # ~10s
3. AzureHandler.list_users(...)["givenName"] == abc     # creates connection from ucs-test, using same credentials as listener


For automated tests an Azure account is sufficient - no Office 365 account is needed.
The wizard part has to be skipped. That means that an Azure account + App has to be created and a TGZ of the resulting /etc/univention-office365 has to be stored in a secure location accessible only to Univention staff and jenkins.
Comment 1 Daniel Tröder univentionstaff 2016-04-21 17:37:53 CEST
10 ucs-tests are in the same source package
Comment 2 Erik Damrose univentionstaff 2016-05-02 13:19:27 CEST
ucs-tests for office365 look good.

There are currently two tests failing, which are not critical. They are merely not adapted to code changes in the app itself.

These issues will be tracked via Bug 41184

-> Verified