Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-10615 - Azure Service Principal Support in oak-run segment-copy, compact, console #1280

Merged
merged 7 commits into from
Jan 26, 2024

Conversation

dulceanu
Copy link
Contributor

First un-tested implementation

Increased again oak-run size to include apache commons lang3 needed for running azure commands
@dulceanu dulceanu changed the title OAK-10615 - Azure Service Principal Support in oak-run OAK-10615 - Azure Service Principal Support in oak-run segment-copy, compact, console Jan 25, 2024
@dulceanu dulceanu marked this pull request as ready for review January 25, 2024 07:09

assertEquals("myaccount", credentials.getAccountName());

assertTrue(checkLogContainsMessage(AZURE_SECRET_KEY_WARNING, logAppender.list.stream().map(ILoggingEvent::getFormattedMessage).collect(Collectors.toList())));
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not in favor of this type of check. Instead, I would prefer to examine the concrete class returned (subtype of StorageCredentials) or use another method for verification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack. I tried now to tweak it via concrete class returned, as you mentioned, but that would be irrelevant IMO, since we already know that we expect StorageCredentialsAccountAndKey. To me, checking the logs for the warning is still valuable, as this log could witness later deprecated authentication method used.
We use the same mechanism here: DefaultSegmentWriterTest#testHugeMapRecordErrorSize.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the additional info.
In another task, we can perhaps evaluate other options to perform verification of such nature.

@dulceanu dulceanu merged commit 0a6f993 into apache:trunk Jan 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants