Skip to content

Return structured authentication results - #289

Open
uhc7 wants to merge 1 commit into
mainfrom
feature/281-structured-auth-results
Open

uhc7 wants to merge 1 commit into
mainfrom
feature/281-structured-auth-results

Conversation

@uhc7

@uhc7 uhc7 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates CloudClient.check_credentials() to return structured authentication results as a pandas DataFrame.

The returned DataFrame includes:

  • subscription ID
  • subscription name
  • subscription state
  • configured Batch account
  • configured Storage account

The existing credential validation and logging behavior is preserved. If subscription lookup fails, the method continues to log the exception and returns an empty DataFrame with the expected columns.

Testing

  • Added coverage for the returned DataFrame schema and values.
  • Added coverage for the empty DataFrame returned when credential checking fails.
  • Ruff and pre-commit checks passed.
  • Targeted CloudClient tests: 15 passed.
  • Scripts tests: 26 passed.
  • Full test suite: 270 passed; 1 unrelated existing Windows-specific failure in test_download_job_stats due to the test using /tmp.

Fixes #281

@uhc7 uhc7 self-assigned this Sep 16, 2026
@uhc7
uhc7 requested a review from ryanraaschCDC September 16, 2026 06:34

@ryanraaschCDC ryanraaschCDC left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks great! Let's have Fawad review it as well since he proposed this enhancement

@ryanraaschCDC
ryanraaschCDC requested a review from xop5 September 16, 2026 13:56
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.

Return Structured Authentication Results

3 participants