| Summary: | [server] Authentication for tests | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> | ||||
| Component: | Client | Assignee: | John Arthorne <john.arthorne> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | aniefer, tomasz.zarna | ||||
| Version: | 0.2 | ||||||
| Target Milestone: | 0.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 336095 | ||||||
| Attachments: |
|
||||||
|
Description
John Arthorne
Created attachment 187467 [details]
Work in progress
This patch contains some things I was trying to get this to work.
One of the problems I had was that the tests seemed to be picking up the useradmin.xml implementation of OrionUserAdmin instead of the secure storage implementation. I had to delete that bundle, and all references to it, to make sure I was using the correct UserAdmin implementation. I had to fix bug 335301 to see that the new user service on Secure Storage works fine. I got rid of XML User Storage tests. The old storage can be tested via BasicUserTests now. I'll take this, working with Andrew on getting tests running. The authentication preference is consulted very early in startup, so I couldn't see a way for the tests to set this value early enough. Since we really don't need the ability to set authentication on the fly, I think the easiest solution is a system property that can be set by the test harness: -Dorion.tests.authtype=Basic Fixed. I think we should just create the workspace first before tests are launched. Then in the instance scope prefs you can configure the authentication type. (In reply to comment #7) > I think we should just create the workspace first before tests are launched. > Then in the instance scope prefs you can configure the authentication type. The system property is much easier. For the tests we would need to store the preferences file somewhere, and copy it into the workspace each time a new one is created. For people running tests in their dev environment, they would have the manual step to configure the workspace before running tests. With the system property we just add it to the launch configuration for the tests, and our tests work immediately out of the box for someone who wants to run them in their workspace. |