@@ -29,7 +29,7 @@ def setUp(self) -> None:
29
29
30
30
self .test_config = MagicMock ()
31
31
self .test_config .working_directory = "test_working_directory"
32
- self .test_config .integ_test = {"test-configs" : ['with-security' , 'without-security' ]}
32
+ self .test_config .integ_test = {"test-configs" : ['with-security' , 'without-security' ], "additional-cluster-configs" : { 'server.host' : '0.0.0.0' } }
33
33
34
34
self .bundle_manifest_opensearch = MagicMock ()
35
35
self .bundle_manifest_opensearch .build .version = "1.2.0"
@@ -93,6 +93,8 @@ def test_execute_tests(self, mock_execute: Mock, mock_git: Mock, mock_test_resul
93
93
call ("test_endpoint" , 1234 , False , "without-security" )
94
94
])
95
95
96
+ self .assertEqual (str (suite .additional_cluster_config ), "{'server.host': '0.0.0.0'}" )
97
+
96
98
# test base class
97
99
98
100
@patch ("os.path.exists" )
@@ -150,6 +152,7 @@ def test_execute_integtest_sh(self, mock_execute: Mock, mock_git: Mock, mock_tes
150
152
}
151
153
)
152
154
assert (mock_test_result_data .return_value in suite .result_data )
155
+ self .assertEqual (suite .additional_cluster_config , None )
153
156
154
157
@patch ("os.path.exists" )
155
158
@patch ("test_workflow.integ_test.integ_test_suite_opensearch_dashboards.TestResultData" )
@@ -188,6 +191,7 @@ def test_execute_integtest_sh_script_do_not_exist(self, mock_execute: Mock, mock
188
191
mock_execute .assert_not_called ()
189
192
mock_test_result_data .assert_not_called ()
190
193
self .save_logs .assert_not_called ()
194
+ self .assertEqual (suite .additional_cluster_config , None )
191
195
192
196
@patch ("os.path.exists" )
193
197
@patch ("test_workflow.integ_test.integ_test_suite_opensearch_dashboards.TestResultData" )
@@ -226,6 +230,8 @@ def test_is_security_enabled(self, mock_execute: Mock, mock_git: Mock, mock_test
226
230
227
231
self .assertEqual (str (ctx .exception ), "Unsupported test config: random-config" )
228
232
233
+ self .assertEqual (suite .additional_cluster_config , None )
234
+
229
235
@patch ("test_workflow.integ_test.integ_test_suite.logging" )
230
236
@patch ("os.path.exists" )
231
237
@patch ("test_workflow.integ_test.integ_test_suite_opensearch_dashboards.TestResultData" )
0 commit comments