2727 "keras_remote.cli.commands.up.create_program" ,
2828 ),
2929 "get_stack" : mock .patch ("keras_remote.cli.commands.up.get_stack" ),
30- "configure_docker_auth" : mock .patch (
31- "keras_remote.cli.commands.up.configure_docker_auth" ,
32- ),
3330 "configure_kubectl" : mock .patch (
3431 "keras_remote.cli.commands.up.configure_kubectl" ,
3532 ),
@@ -68,7 +65,6 @@ def test_full_success(self):
6865 self .assertIn ("Setup Complete" , result .output )
6966 self .assertNotIn ("Warnings" , result .output )
7067 self .mocks ["install_lws" ].assert_called_once ()
71- self .mocks ["configure_docker_auth" ].assert_called_once ()
7268 self .mocks ["configure_kubectl" ].assert_called_once ()
7369 self .mocks [
7470 "install_gpu_drivers"
@@ -83,27 +79,11 @@ def test_pulumi_failure_still_runs_post_deploy(self):
8379 result = self .runner .invoke (up , _CLI_ARGS )
8480
8581 self .assertEqual (result .exit_code , 0 , result .output )
86- self .mocks ["configure_docker_auth" ].assert_called_once ()
8782 self .mocks ["configure_kubectl" ].assert_called_once ()
8883 self .mocks ["install_lws" ].assert_called_once ()
8984 self .assertIn ("Setup Completed With Warnings" , result .output )
9085 self .assertIn ("Pulumi provisioning encountered errors" , result .output )
9186
92- def test_post_deploy_failure_does_not_block_others (self ):
93- """One post-deploy step failing doesn't prevent the others from running."""
94- self .mocks [
95- "configure_docker_auth"
96- ].side_effect = subprocess .CalledProcessError (1 , "gcloud" )
97-
98- result = self .runner .invoke (up , _CLI_ARGS )
99-
100- self .assertEqual (result .exit_code , 0 , result .output )
101- # Subsequent steps still called despite Docker auth failure.
102- self .mocks ["configure_kubectl" ].assert_called_once ()
103- self .mocks ["install_lws" ].assert_called_once ()
104- self .assertIn ("Setup Completed With Warnings" , result .output )
105- self .assertIn ("Docker authentication" , result .output )
106-
10787 def test_multiple_post_deploy_failures (self ):
10888 """Multiple post-deploy failures are all reported."""
10989 self .mocks ["configure_kubectl" ].side_effect = subprocess .CalledProcessError (
0 commit comments