testserver: Add Name field to TestUser for current-user me API#4535
Open
testserver: Add Name field to TestUser for current-user me API#4535
Conversation
The current-user me endpoint now returns proper user Name with GivenName and FamilyName fields. This allows tests that query user information to work correctly with the testserver. Changed FamilyName to "McTesterson" (instead of "User") to avoid conflicts with the word "User" in workspace paths like "/Workspace/Users/". Enables selftest/record_cloud/basic test to run locally. Tested on both macOS and Windows. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Collaborator
|
Commit: 9efdeb9
14 interesting tests: 6 FAIL, 6 SKIP, 1 KNOWN, 1 flaky
Top 20 slowest tests (at least 2 minutes):
|
pietern
approved these changes
Feb 18, 2026
andrewnester
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Namefield toTestUserstruct inlibs/testserver/fake_workspace.goGivenName: "Tester"andFamilyName: "McTesterson"test.tomlforacceptance/selftest/record_cloud/basicto enable it independentlyWhy
The
current-user meendpoint (SCIM Me API) was returning a user object without theNamefield populated. This caused tests that query.name.givenNameto receive null values.Changed FamilyName to "McTesterson" (instead of "User") to avoid conflicts with the word "User" in workspace paths like "/Workspace/Users/" which could cause replacement issues in test outputs.
The testserver now matches the real Databricks API by returning proper Name structure with GivenName and FamilyName fields.
Tests
acceptance/selftest/record_cloud/basictest to run locally🤖 Generated with Claude Code