def test_service(self, reset_and_start_fledge, service_branch, fledge_url, wait_time, retries, remove_directories):
    _configure_and_start_service(service_branch, fledge_url, remove_directories)
    retry_count = 0
    default_registry_count = 2
    service_registry = default_registry_count
    while ((service_registry != 3) and (retry_count < retries)):
        svc = _get_result(fledge_url, '/fledge/service')
        service_registry = svc['services']
        retry_count += 1
        pause_for_x_seconds(x=(wait_time * 2))
    if (len(service_registry) == default_registry_count):
        assert False, 'Failed to start the {} service'.format(SERVICE)
    _verify_service(fledge_url, status='running')
    _verify_audit_log_entry(fledge_url, '/fledge/audit?source=NTFST', name=SERVICE_NAME)
def test_service(self, reset_and_start_fledge, service_branch, fledge_url, wait_time, retries, remove_directories):
    _configure_and_start_service(service_branch, fledge_url, remove_directories)
    retry_count = 0
    default_registry_count = 2
    service_registry = default_registry_count
    while ((service_registry != 3) and (retry_count < retries)):
        svc = _get_result(fledge_url, '/fledge/service')
        service_registry = svc['services']
        retry_count += 1
        pause_for_x_seconds(x=(wait_time * 2))
    if (len(service_registry) == default_registry_count):
        assert False, 'Failed to start the {} service'.format(SERVICE)
    _verify_service(fledge_url, status='running')
    _verify_audit_log_entry(fledge_url, '/fledge/audit?source=NTFST', name=SERVICE_NAME)