@@ -113,7 +113,8 @@ def test_deploy(tfo, time, sagemaker_session):
113113 model = PipelineModel (
114114 models = [framework_model , sparkml_model ], role = ROLE , sagemaker_session = sagemaker_session
115115 )
116- model .deploy (instance_type = INSTANCE_TYPE , initial_instance_count = 1 )
116+ kms_key = "pipeline-model-deploy-kms-key"
117+ model .deploy (instance_type = INSTANCE_TYPE , initial_instance_count = 1 , kms_key = kms_key )
117118 sagemaker_session .endpoint_from_production_variants .assert_called_with (
118119 name = "mi-1-2017-10-10-14-14-15" ,
119120 production_variants = [
@@ -126,6 +127,7 @@ def test_deploy(tfo, time, sagemaker_session):
126127 }
127128 ],
128129 tags = None ,
130+ kms_key = kms_key ,
129131 wait = True ,
130132 data_capture_config_dict = None ,
131133 )
@@ -154,6 +156,7 @@ def test_deploy_endpoint_name(tfo, time, sagemaker_session):
154156 }
155157 ],
156158 tags = None ,
159+ kms_key = None ,
157160 wait = True ,
158161 data_capture_config_dict = None ,
159162 )
@@ -183,6 +186,7 @@ def test_deploy_update_endpoint(tfo, time, sagemaker_session):
183186 initial_instance_count = INSTANCE_COUNT ,
184187 instance_type = INSTANCE_TYPE ,
185188 tags = None ,
189+ kms_key = None ,
186190 data_capture_config_dict = None ,
187191 )
188192 config_name = sagemaker_session .create_endpoint_config (
@@ -275,6 +279,7 @@ def test_deploy_tags(tfo, time, sagemaker_session):
275279 ],
276280 tags = tags ,
277281 wait = True ,
282+ kms_key = None ,
278283 data_capture_config_dict = None ,
279284 )
280285
0 commit comments