@@ -141,7 +141,8 @@ def wait_for_stability(pod: str) -> None:
141
141
timeout = 100
142
142
for _ in range (3 ):
143
143
call (
144
- f"timeout { timeout } s bash -c 'until kubectl wait --for=condition=Ready pods --all --timeout 5s; do sleep 1; done'" , shell = True )
144
+ f"timeout { timeout } s bash -c 'until kubectl wait --for=condition=Ready pods --all --timeout 5s; do sleep 1; done'" ,
145
+ shell = True )
145
146
timeout = 50
146
147
time .sleep (3 )
147
148
@@ -198,6 +199,15 @@ def test_make_commands_rstudio(self, mock_execute: unittest.mock.Mock) -> None:
198
199
assert "make validate-rstudio-image image=rstudio-c9s-python-3.11" in commands
199
200
assert "make undeploy-c9s-rstudio-c9s-python-3.11" in commands
200
201
202
+ @unittest .mock .patch ("make_test.execute" )
203
+ def test_make_commands_rsudio_rhel (self , mock_execute : unittest .mock .Mock ) -> None :
204
+ """Compares the commands with what we had in the openshift/release yaml"""
205
+ run_tests ("rstudio-rhel9-python-3.11" )
206
+ commands : list [str ] = [c [0 ][1 ][0 ] for c in mock_execute .call_args_list ]
207
+ assert "make deploy-rhel9-rstudio-rhel9-python-3.11" in commands
208
+ assert "make validate-rstudio-image image=rstudio-rhel9-python-3.11" in commands
209
+ assert "make undeploy-rhel9-rstudio-rhel9-python-3.11" in commands
210
+
201
211
@unittest .mock .patch ("make_test.execute" )
202
212
def test_make_commands_cuda_rstudio (self , mock_execute : unittest .mock .Mock ) -> None :
203
213
"""Compares the commands with what we had in the openshift/release yaml"""
@@ -207,6 +217,15 @@ def test_make_commands_cuda_rstudio(self, mock_execute: unittest.mock.Mock) -> N
207
217
assert "make validate-rstudio-image image=cuda-rstudio-c9s-python-3.11" in commands
208
218
assert "make undeploy-c9s-rstudio-c9s-python-3.11" in commands
209
219
220
+ @unittest .mock .patch ("make_test.execute" )
221
+ def test_make_commands_cuda_rstudio_rhel (self , mock_execute : unittest .mock .Mock ) -> None :
222
+ """Compares the commands with what we had in the openshift/release yaml"""
223
+ run_tests ("cuda-rstudio-rhel9-python-3.11" )
224
+ commands : list [str ] = [c [0 ][1 ][0 ] for c in mock_execute .call_args_list ]
225
+ assert "make deploy-rhel9-rstudio-rhel9-python-3.11" in commands
226
+ assert "make validate-rstudio-image image=cuda-rstudio-rhel9-python-3.11" in commands
227
+ assert "make undeploy-rhel9-rstudio-rhel9-python-3.11" in commands
228
+
210
229
@unittest .mock .patch ("make_test.execute" )
211
230
def test_make_commands_runtime (self , mock_execute : unittest .mock .Mock ) -> None :
212
231
"""Compares the commands with what we had in the openshift/release yaml"""
0 commit comments