Skip to content

Change to wrong password test#1

Open
bostko wants to merge 5 commits into
livetest-simplify-langfrom
change-password
Open

Change to wrong password test#1
bostko wants to merge 5 commits into
livetest-simplify-langfrom
change-password

Conversation

@bostko
Copy link
Copy Markdown
Owner

@bostko bostko commented May 14, 2017

FIrst test doesn't work even in version 0.3.5
testAuthSuccessAndFail fails when using NTLM

http://cxf.547215.n5.nabble.com/NTLM-Authentication-being-cached-td5741310.html

BTW I see some commits are made for NTLM changes which might fix the problem https://github.com/apache/httpclient/commits/trunk?after=8a1b96bfa75382c0b94d70f6914fbb9bfeb0451e+69

@bostko bostko force-pushed the change-password branch from ee2b593 to efd2f87 Compare May 14, 2017 11:28
@bostko bostko changed the title Change password doesn't work even in version 0.3.5 Change to wrong password doesn't work even in version 0.3.5 May 14, 2017
@bostko bostko changed the title Change to wrong password doesn't work even in version 0.3.5 Change to wrong password test May 14, 2017
neykov added 2 commits May 15, 2017 09:02
private static final Logger LOG = Logger.getLogger(WinRmChangePassword.class.getName());

@Test(groups="Live")
public void testAuthSuccessAndFail() throws Exception {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always fail with NTLM auth when reusing the context. The problem is with Brooklyn which should create a new context for the new set of credentials.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder whether it can be fixed in the http client library, but in any case we need to work around it in Brooklyn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants