@@ -62,10 +62,10 @@ def test_model_serving_auth(env_values, del_env_values, oauth_file_name, monkeyp
6262
6363 # patch mlflow to read the file from the test directory
6464 monkeypatch .setattr (
65- "databricks.sdk.credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
65+ "databricks.sdk.databricks. credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
6666 oauth_file_name ,
6767 )
68- mocker .patch ("databricks.sdk.config.Config._known_file_config_loader" )
68+ mocker .patch ("databricks.sdk.databricks. config.Config._known_file_config_loader" )
6969
7070 cfg = Config ()
7171 assert cfg .auth_type == "model-serving"
@@ -107,7 +107,7 @@ def test_model_serving_auth_errors(env_values, oauth_file_name, monkeypatch):
107107 for env_name , env_value in env_values :
108108 monkeypatch .setenv (env_name , env_value )
109109 monkeypatch .setattr (
110- "databricks.sdk.credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
110+ "databricks.sdk.databricks. credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
111111 oauth_file_name ,
112112 )
113113
@@ -121,10 +121,10 @@ def test_model_serving_auth_refresh(monkeypatch, mocker):
121121
122122 # patch mlflow to read the file from the test directory
123123 monkeypatch .setattr (
124- "databricks.sdk.credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
124+ "databricks.sdk.databricks. credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
125125 "tests/testdata/model-serving-test-token" ,
126126 )
127- mocker .patch ("databricks.sdk.config.Config._known_file_config_loader" )
127+ mocker .patch ("databricks.databricks. sdk.config.Config._known_file_config_loader" )
128128
129129 cfg = Config ()
130130 assert cfg .auth_type == "model-serving"
@@ -135,12 +135,12 @@ def test_model_serving_auth_refresh(monkeypatch, mocker):
135135 assert headers .get ("Authorization" ) == "Bearer databricks_sdk_unit_test_token" # Token defined in the test file
136136 # Simulate refreshing the token by patching to to a new file
137137 monkeypatch .setattr (
138- "databricks.sdk.credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
138+ "databricks.sdk.databricks. credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
139139 "tests/testdata/model-serving-test-token-v2" ,
140140 )
141141
142142 monkeypatch .setattr (
143- "databricks.sdk.credentials_provider.time.time" ,
143+ "databricks.sdk.databricks. credentials_provider.time.time" ,
144144 lambda : current_time + 10 ,
145145 )
146146
@@ -151,7 +151,7 @@ def test_model_serving_auth_refresh(monkeypatch, mocker):
151151
152152 # Expiry is 300 seconds so this should force an expiry and re read from the new file path
153153 monkeypatch .setattr (
154- "databricks.sdk.credentials_provider.time.time" ,
154+ "databricks.sdk.databricks. credentials_provider.time.time" ,
155155 lambda : current_time + 600 ,
156156 )
157157
@@ -171,7 +171,7 @@ def test_agent_user_credentials(monkeypatch, mocker):
171171 monkeypatch .setenv ("IS_IN_DB_MODEL_SERVING_ENV" , "true" )
172172 monkeypatch .setenv ("DB_MODEL_SERVING_HOST_URL" , "x" )
173173 monkeypatch .setattr (
174- "databricks.sdk.credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
174+ "databricks.sdk.databricks. credentials_provider.ModelServingAuthProvider._MODEL_DEPENDENCY_OAUTH_TOKEN_FILE_PATH" ,
175175 "tests/testdata/model-serving-test-token" ,
176176 )
177177
0 commit comments