[Subclipse-dev] Continuous Integration: Testing security by changing authentication credentials. Is it impossible?
From: Javier Ruiz Jiménez <jruiz_at_tecsisa.com>
Date: Fri, 17 Jun 2011 04:33:37 -0700 (PDT)
Hi
We are developing an application to administer Subversion repositories, for subversion access we are using svnclientadapter with javahl (because we need to do exports without externals).
In order to provide the credentials to access the repository we use an implementation of ISVNPromptUserPassword as PasswordCallback.
Our ISVNPromptUserPassword implementation returns false in userAllowedSave so the user/password is not cached.
Everything works perfectly for production except that we would like to run some tests during CI to check user authorization against different paths (We launch a svnserv during tests and create some repositories and paths).
The user/password is not cached between different executions of the application, I have checked %APPDATA%/Subversion/auth/svn.simple for cached credentials and credentials are not cached.
Problem:
The user/password is cached in memory during the execution of the test and can't be changed.
We need to be able to change credentials to test with different users.
Something like:
test(){
}
Is it possible to change the user/password during execution?
Thanks!
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].
|
This is an archived mail posted to the Subclipse Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.