@@ -234,10 +234,10 @@ def test_studio_internet_free_mode(request):
234234
235235# noinspection DuplicatedCode
236236def test_studio_multiple_users (request ):
237- ide_ds = SSHIDE (request .config .getini ('sagemaker_studio_domain' ), 'test-data-science ' )
237+ ide_tf = SSHIDE (request .config .getini ('sagemaker_studio_domain' ), 'test-tensorflow ' )
238238 ide_pt = SSHIDE (request .config .getini ('sagemaker_studio_domain' ), 'test-pytorch' )
239239
240- ide_ds .create_ssh_kernel_app (
240+ ide_tf .create_ssh_kernel_app (
241241 'ssh-test-user' ,
242242 image_name_or_arn = 'sagemaker-data-science-310-v1' ,
243243 instance_type = 'ml.m5.large' ,
@@ -260,26 +260,26 @@ def test_studio_multiple_users(request):
260260 time .sleep (60 )
261261
262262 ide_wrapper = SSHIDEWrapper .attach (
263- ide_ds .domain_id , ide_ds .user , "ssh-test-user"
263+ ide_tf .domain_id , ide_tf .user , "ssh-test-user"
264264 )
265265
266266 with ide_wrapper .start_ssm_connection (10022 , timeout = timedelta (minutes = 5 )) as ssm_proxy :
267267 user_profile_name = ssm_proxy .run_command_with_output ("sm-ssh-ide get-user-profile-name" )
268268 user_profile_name = user_profile_name .decode ('latin1' )
269269 logger .info (f"Collected SageMaker Studio profile name: { user_profile_name } " )
270270
271- ide_ds .delete_kernel_app ('ssh-test-user' , wait = False )
271+ ide_tf .delete_kernel_app ('ssh-test-user' , wait = False )
272272 ide_pt .delete_kernel_app ('ssh-test-user' , wait = False )
273273
274- assert "test-data-science " in user_profile_name
274+ assert "test-tensorflow " in user_profile_name
275275
276276
277277# noinspection DuplicatedCode
278278def test_studio_default_domain_multiple_users (request ):
279- ide_ds = SSHIDE (request .config .getini ('sagemaker_studio_domain' ), 'test-data-science ' )
279+ ide_tf = SSHIDE (request .config .getini ('sagemaker_studio_domain' ), 'test-tensorflow ' )
280280 ide_pt = SSHIDE (request .config .getini ('sagemaker_studio_domain' ), 'test-pytorch' )
281281
282- ide_ds .create_ssh_kernel_app (
282+ ide_tf .create_ssh_kernel_app (
283283 'ssh-test-user' ,
284284 image_name_or_arn = 'sagemaker-data-science-310-v1' ,
285285 instance_type = 'ml.m5.large' ,
@@ -303,18 +303,18 @@ def test_studio_default_domain_multiple_users(request):
303303
304304 # Empty domain "" to fetch the latest profile, useful when switching between many AWS accounts with the same profile
305305 ide_wrapper = SSHIDEWrapper .attach (
306- "" , 'test-data-science' , "ssh-test-user"
306+ "" , ide_tf . user , "ssh-test-user"
307307 )
308308
309309 with ide_wrapper .start_ssm_connection (10022 , timeout = timedelta (minutes = 5 )) as ssm_proxy :
310310 user_profile_name = ssm_proxy .run_command_with_output ("sm-ssh-ide get-user-profile-name" )
311311 user_profile_name = user_profile_name .decode ('latin1' )
312312 logger .info (f"Collected SageMaker Studio profile name: { user_profile_name } " )
313313
314- ide_ds .delete_kernel_app ('ssh-test-user' , wait = False )
314+ ide_tf .delete_kernel_app ('ssh-test-user' , wait = False )
315315 ide_pt .delete_kernel_app ('ssh-test-user' , wait = False )
316316
317- assert "test-data-science " in user_profile_name
317+ assert "test-tensorflow " in user_profile_name
318318
319319
320320@pytest .mark .parametrize ('user_profile_name' , ['test-firefox' ])
0 commit comments