1212from aztk .error import AztkError
1313from aztk .utils import constants
1414from aztk_cli import config
15- from tests .integration_tests .spark .sdk .get_client import get_spark_client , get_test_suffix
16-
15+ from tests .integration_tests .spark .sdk .get_client import (get_spark_client , get_test_suffix )
1716
1817base_cluster_id = get_test_suffix ("cluster" )
1918spark_client = get_spark_client ()
@@ -71,8 +70,8 @@ def test_create_cluster():
7170 # TODO: make Cluster Configuration more robust, test each value
7271 cluster_configuration = aztk .spark .models .ClusterConfiguration (
7372 cluster_id = test_id + base_cluster_id ,
74- vm_count = 2 ,
75- vm_low_pri_count = 0 ,
73+ size = 2 ,
74+ size_low_priority = 0 ,
7675 vm_size = "standard_f2" ,
7776 subnet_id = None ,
7877 custom_scripts = None ,
@@ -103,8 +102,8 @@ def test_get_cluster():
103102 test_id = "test-get-"
104103 cluster_configuration = aztk .spark .models .ClusterConfiguration (
105104 cluster_id = test_id + base_cluster_id ,
106- vm_count = 2 ,
107- vm_low_pri_count = 0 ,
105+ size = 2 ,
106+ size_low_priority = 0 ,
108107 vm_size = "standard_f2" ,
109108 subnet_id = None ,
110109 custom_scripts = None ,
@@ -137,8 +136,8 @@ def test_list_clusters():
137136 test_id = "test-list-"
138137 cluster_configuration = aztk .spark .models .ClusterConfiguration (
139138 cluster_id = test_id + base_cluster_id ,
140- vm_count = 2 ,
141- vm_low_pri_count = 0 ,
139+ size = 2 ,
140+ size_low_priority = 0 ,
142141 vm_size = "standard_f2" ,
143142 subnet_id = None ,
144143 custom_scripts = None ,
@@ -164,8 +163,8 @@ def test_get_remote_login_settings():
164163 test_id = "test-get-remote-login-"
165164 cluster_configuration = aztk .spark .models .ClusterConfiguration (
166165 cluster_id = test_id + base_cluster_id ,
167- vm_count = 2 ,
168- vm_low_pri_count = 0 ,
166+ size = 2 ,
167+ size_low_priority = 0 ,
169168 vm_size = "standard_f2" ,
170169 subnet_id = None ,
171170 custom_scripts = None ,
@@ -195,8 +194,8 @@ def test_submit():
195194 test_id = "test-submit-"
196195 cluster_configuration = aztk .spark .models .ClusterConfiguration (
197196 cluster_id = test_id + base_cluster_id ,
198- vm_count = 2 ,
199- vm_low_pri_count = 0 ,
197+ size = 2 ,
198+ size_low_priority = 0 ,
200199 vm_size = "standard_f2" ,
201200 subnet_id = None ,
202201 custom_scripts = None ,
@@ -225,7 +224,7 @@ def test_submit():
225224 with pytest .warns (DeprecationWarning ):
226225 spark_client .submit (
227226 cluster_id = cluster_configuration .cluster_id , application = application_configuration , wait = True )
228-
227+
229228 assert True
230229
231230 except (AztkError , BatchErrorException ):
@@ -239,8 +238,8 @@ def test_get_application_log():
239238 test_id = "test-get-app-log-"
240239 cluster_configuration = aztk .spark .models .ClusterConfiguration (
241240 cluster_id = test_id + base_cluster_id ,
242- vm_count = 2 ,
243- vm_low_pri_count = 0 ,
241+ size = 2 ,
242+ size_low_priority = 0 ,
244243 vm_size = "standard_f2" ,
245244 subnet_id = None ,
246245 custom_scripts = None ,
@@ -303,8 +302,8 @@ def test_get_application_status_complete():
303302 test_id = "test-app-status-complete-"
304303 cluster_configuration = aztk .spark .models .ClusterConfiguration (
305304 cluster_id = test_id + base_cluster_id ,
306- vm_count = 2 ,
307- vm_low_pri_count = 0 ,
305+ size = 2 ,
306+ size_low_priority = 0 ,
308307 vm_size = "standard_f2" ,
309308 subnet_id = None ,
310309 custom_scripts = None ,
@@ -349,8 +348,8 @@ def test_delete_cluster():
349348 test_id = "test-delete-"
350349 cluster_configuration = aztk .spark .models .ClusterConfiguration (
351350 cluster_id = test_id + base_cluster_id ,
352- vm_count = 2 ,
353- vm_low_pri_count = 0 ,
351+ size = 2 ,
352+ size_low_priority = 0 ,
354353 vm_size = "standard_f2" ,
355354 subnet_id = None ,
356355 custom_scripts = None ,
@@ -376,8 +375,8 @@ def test_spark_processes_up():
376375 test_id = "test-spark-processes-up-"
377376 cluster_configuration = aztk .spark .models .ClusterConfiguration (
378377 cluster_id = test_id + base_cluster_id ,
379- vm_count = 2 ,
380- vm_low_pri_count = 0 ,
378+ size = 2 ,
379+ size_low_priority = 0 ,
381380 vm_size = "standard_f2" ,
382381 subnet_id = None ,
383382 custom_scripts = None ,
0 commit comments