Skip to content

Commit

Permalink
[sinttest] Fix IBR-based account registration
Browse files Browse the repository at this point in the history
When performing IBR-based account registration, we do not need to
login nor are the admin credentials typically available.

Suggested-by: Guus der Kinderen <[email protected]>
  • Loading branch information
Flowdalic committed Nov 26, 2023
1 parent 9055878 commit 9156261
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ public static boolean removeConnectionDescriptor(String nickname) {
case inBandRegistration:
accountRegistrationConnection = defaultConnectionDescriptor.construct(sinttestConfiguration);
accountRegistrationConnection.connect();
accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername,
sinttestConfiguration.adminAccountPassword);

if (sinttestConfiguration.accountRegistration == AccountRegistration.inBandRegistration) {

adminManager = null;
accountManager = AccountManager.getInstance(accountRegistrationConnection);
} else {
accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername,
sinttestConfiguration.adminAccountPassword);
adminManager = ServiceAdministrationManager.getInstanceFor(accountRegistrationConnection);
accountManager = null;
}
Expand Down

0 comments on commit 9156261

Please sign in to comment.