Javier Ruiz Jiménez
2011-06-17 11:33:37 UTC
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(){
setUser(admin);
commitToFolder(AdminOnlyFolder)
setUser(reader);
commitToFolder(AdminOnlyFolder) -> expect failure.
}
Is it possible to change the user/password during execution?
Thanks!
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2768432
To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
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(){
setUser(admin);
commitToFolder(AdminOnlyFolder)
setUser(reader);
commitToFolder(AdminOnlyFolder) -> expect failure.
}
Is it possible to change the user/password during execution?
Thanks!
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2768432
To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].