@@ -34,23 +34,23 @@ def step_impl(context: MinifiTestContext):
3434 assert context .containers ["elasticsearch" ].create_doc_elasticsearch ("my_index" , "preloaded_id" ) or context .containers ["elasticsearch" ].log_app_output ()
3535
3636
37- @given (u 'an ElasticsearchCredentialsControllerService is set up with Basic Authentication' )
37+ @given ('an ElasticsearchCredentialsControllerService is set up with Basic Authentication' )
3838def step_impl (context : MinifiTestContext ):
3939 controller_service = ControllerService (class_name = "ElasticsearchCredentialsControllerService" , service_name = "ElasticsearchCredentialsControllerService" )
4040 controller_service .add_property ("Username" , "elastic" )
4141 controller_service .add_property ("Password" , "password" )
4242 context .get_or_create_default_minifi_container ().flow_definition .controller_services .append (controller_service )
4343
4444
45- @given (u 'an ElasticsearchCredentialsControllerService is set up with ApiKey' )
45+ @given ('an ElasticsearchCredentialsControllerService is set up with ApiKey' )
4646def step_impl (context : MinifiTestContext ):
4747 controller_service = ControllerService (class_name = "ElasticsearchCredentialsControllerService" , service_name = "ElasticsearchCredentialsControllerService" )
4848 api_key = context .containers ["elasticsearch" ].elastic_generate_apikey ()
4949 controller_service .add_property ("API Key" , api_key )
5050 context .get_or_create_default_minifi_container ().flow_definition .controller_services .append (controller_service )
5151
5252
53- @then (u 'Elasticsearch has a document with "{doc_id}" in "{index}" that has "{value}" set in "{field}"' )
53+ @then ('Elasticsearch has a document with "{doc_id}" in "{index}" that has "{value}" set in "{field}"' )
5454def step_impl (context : MinifiTestContext , doc_id : str , index : str , value : str , field : str ):
5555 assert context .containers ["elasticsearch" ].check_elastic_field_value (index_name = index , doc_id = doc_id , field_name = field , field_value = value ) or log_due_to_failure (context )
5656
@@ -70,7 +70,7 @@ def step_impl(context):
7070 context .containers ["opensearch" ].create_doc_elasticsearch ("my_index" , "preloaded_id" )
7171
7272
73- @then (u 'Opensearch has a document with "{doc_id}" in "{index}" that has "{value}" set in "{field}"' )
73+ @then ('Opensearch has a document with "{doc_id}" in "{index}" that has "{value}" set in "{field}"' )
7474def step_impl (context : MinifiTestContext , doc_id : str , index : str , value : str , field : str ):
7575 assert context .containers ["opensearch" ].check_elastic_field_value (index_name = index , doc_id = doc_id , field_name = field , field_value = value ) or log_due_to_failure (context )
7676
0 commit comments