Fix basic auth integration test (#15679)

* Add some retries

* Add a delay to allow creds to propagate

* Checkstyle and stuff
This commit is contained in:
Kashif Faraz 2024-01-14 22:29:15 +05:30 committed by GitHub
parent 500681d0cb
commit f0c552b2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -77,6 +77,20 @@ public class ITBasicAuthConfigurationTest extends AbstractAuthConfigurationTest
checkNodeAccess(druid99); checkNodeAccess(druid99);
} }
@Override
protected void setupHttpClientsAndUsers() throws Exception
{
super.setupHttpClientsAndUsers();
// Add a delay to allow propagation of credentials to all services
try {
Thread.sleep(5000);
}
catch (Throwable t) {
// Ignore exception
}
}
@Override @Override
protected void setupDatasourceOnlyUser() throws Exception protected void setupDatasourceOnlyUser() throws Exception
{ {