File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,18 @@ def run_mnist_raycluster_sdk_oauth(self):
82
82
class TestMnistJobSubmit :
83
83
def setup_method (self ):
84
84
initialize_kubernetes_client (self )
85
- self .namespace = namespace
86
- self .cluster = get_cluster ("mnist" , self .namespace )
87
- if not self .cluster :
88
- raise RuntimeError ("TestRayClusterUp needs to be run before this test" )
89
-
90
- def test_mnist_job_submission (self ):
91
85
auth = TokenAuthentication (
92
86
token = run_oc_command (["whoami" , "--show-token=true" ]),
93
87
server = run_oc_command (["whoami" , "--show-server=true" ]),
94
88
skip_tls = True ,
95
89
)
96
90
auth .login ()
91
+ self .namespace = namespace
92
+ self .cluster = get_cluster ("mnist" , self .namespace )
93
+ if not self .cluster :
94
+ raise RuntimeError ("TestRayClusterUp needs to be run before this test" )
97
95
96
+ def test_mnist_job_submission (self ):
98
97
self .assert_jobsubmit_withoutLogin (self .cluster )
99
98
self .assert_jobsubmit_withlogin (self .cluster )
100
99
You can’t perform that action at this time.
0 commit comments