Skip to content

Bump sphinx-autodoc-typehints from 2.3.0 to 2.4.0 #993

Bump sphinx-autodoc-typehints from 2.3.0 to 2.4.0

Bump sphinx-autodoc-typehints from 2.3.0 to 2.4.0 #993

GitHub Actions / Test Report ubuntu-latest:3.10 failed Sep 9, 2024 in 0s

89 tests run, 58 passed, 5 skipped, 26 failed.

Annotations

Check failure on line 77 in .tox/.pkg/lib/python3.10/site-packages/setuptools/_vendor/importlib_resources/tests/test_files.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_files

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_files(client):
    
        jms_api = JmsApi(client)
        proj = jms_api.create_project(
            Project(name=f"rep_client_test_jms_FilesTest", active=False), replace=True
        )
        project_api = ProjectApi(client, proj.id)
    
        cwd = os.path.dirname(__file__)
        example_dir = os.path.join(cwd, "..", "..", "examples", "mapdl_motorbike_frame")
        log.debug(f"example_dir: {example_dir}")
    
        # Create some files
        files = []
        mac_path = os.path.join(example_dir, "motorbike_frame.mac")
        files.append(
            File(name="mac", evaluation_path="motorbike_frame.mac", type="text/plain", src=mac_path)
        )
        res_path = os.path.join(example_dir, "motorbike_frame_results.txt")
        files.append(
            File(
                name="results",
                evaluation_path="motorbike_frame_results.txt",
                type="text/plain",
                src=res_path,
            )
        )
        files.append(File(name="img", evaluation_path="file000.jpg", type="image/jpeg", hash=None))
        files.append(File(name="out", evaluation_path="file.out", type="text/plain", hash=None))
    
        with open(mac_path, "rb") as f:
            file_object_string = f.read()
        files.append(
            File(
                name="file-object",
                evaluation_path="my-file.txt",
                type="text/plain",
                src=io.BytesIO(file_object_string),
            )
        )
    
>       files_created = project_api.create_files(files)

tests/jms/test_files.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 149 in .tox/.pkg/lib/python3.10/site-packages/setuptools/_vendor/importlib_resources/tests/test_files.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_files.test_download_file_in_subdir

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_download_file_in_subdir(client):
    
        jms_api = JmsApi(client)
        proj = jms_api.create_project(Project(name=f"rep_test_download_file_in_subdir", active=False))
        project_api = ProjectApi(client, proj.id)
    
        files = [
            File(
                name="file",
                evaluation_path="subdir/file.txt",
                type="text/plain",
                src=io.BytesIO(b"This is my file"),
            )
        ]
    
>       file = project_api.create_files(files)[0]

tests/jms/test_files.py:149: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 70 in tests/jms/test_jms_api.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_jms_api

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_jms_api(client):
    
        log.debug("=== Client ===")
        proj_name = "Mapdl Motorbike Frame"
    
        log.debug("=== Projects ===")
        jms_api = JmsApi(client)
    
        project = jms_api.get_project_by_name(name=proj_name)
    
        if project:
            log.debug(f"Project: {project.id}")
            log.debug(f"project={project}")
        else:
            log.debug(f"Project {proj_name} not found. Creating it.")
>           project = create_project(client, proj_name, num_jobs=5, use_exec_script=False)

tests/jms/test_jms_api.py:70: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 118 in tests/jms/test_jms_api.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_jms_api.test_fields_query_parameter

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:40809/api/v1/metadata:get
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'

    def test_fields_query_parameter(url, username, password):
    
        client1 = Client(url, username, password, all_fields=False)
    
        proj_name = "test_fields_query_parameter"
>       project = create_project(client1, proj_name, num_jobs=2, use_exec_script=False)

tests/jms/test_jms_api.py:118: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:40809/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 109 in tests/jms/test_job_definitions.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_job_definitions.test_task_and_job_definition_copy

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_task_and_job_definition_copy(client):
    
        # create new project
        num_jobs = 1
>       project = create_project(
            client,
            f"test_task_definition_copy",
            num_jobs=num_jobs,
            use_exec_script=False,
            active=False,
        )

tests/jms/test_job_definitions.py:109: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 234 in tests/jms/test_jobs.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_jobs.test_job_update

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_job_update(client):
        jms_api = JmsApi(client)
        proj_name = f"test_job_update_{uuid.uuid4().hex[:8]}"
    
>       project = create_project(client=client, name=proj_name, num_jobs=2)

tests/jms/test_jobs.py:234: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 246 in tests/jms/test_projects.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_projects.test_project_archive_restore

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_project_archive_restore(client):
    
        num_jobs = 2
        jms_api = JmsApi(client)
        proj_name = f"test_jms_project_archive_restore"
    
        # Setup project to work with
>       project = motorbike_create_project(client=client, name=proj_name, num_jobs=num_jobs)

tests/jms/test_projects.py:246: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 287 in tests/jms/test_projects.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_projects.test_copy_exec_script

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_copy_exec_script(client):
    
        jms_api = JmsApi(client)
        proj_name = f"test_copy_exec_script"
    
        proj = Project(name=proj_name)
        proj = jms_api.create_project(proj)
    
        project_api = ProjectApi(client, proj.id)
        ansys_short_version = f"v{ansys_version[2:4]}{ansys_version[6]}"
        script_name = f"mapdl-{ansys_short_version}-exec_mapdl"
>       file = project_api.copy_default_execution_script(f"{script_name}.py")

tests/jms/test_projects.py:287: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:637: in copy_default_execution_script
    op = self.client.dt_api.get_metadata([dst])
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 139 in .tox/.pkg/lib/python3.10/site-packages/pkg_resources/tests/test_resources.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_resources.test_jobs_equality

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_jobs_equality(client):
    
        # create new project
        num_jobs = 1
>       project = create_project(
            client,
            f"test_jobs_equality",
            num_jobs=num_jobs,
            use_exec_script=False,
            active=False,
        )

tests/jms/test_resources.py:139: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 78 in tests/jms/test_task_commands.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_task_commands.test_job_with_commands

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_job_with_commands(client):
    
        jms_api = JmsApi(client)
        proj_name = f"test_job_with_commands"
        proj = Project(name=proj_name)
        proj = jms_api.create_project(proj)
        project_api = ProjectApi(client, proj.id)
        log.info(f"Created project '{proj.name}', ID='{proj.id}'")
    
        exec_script = File(
            name="exec_script",
            evaluation_path="exec_script.py",
            type="application/x-python-code",
            src=io.StringIO(EXECUTION_SCRIPT),
        )
>       exec_script = project_api.create_files([exec_script])[0]

tests/jms/test_task_commands.py:78: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 295 in tests/jms/test_task_definition.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_task_definition.test_analyze_task_definition

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_analyze_task_definition(client):
        # Because compute resources can't be assumed to be available,
        # so we just hit the endpoint
    
>       project = create_project(client, 1, use_exec_script=False)

tests/jms/test_task_definition.py:295: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/python_two_bar_truss_problem/project_setup.py:99: in main
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 108 in tests/jms/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_tasks.test_task_integration

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_task_integration(client):
    
        proj_name = "Mapdl Motorbike Frame"
    
>       project = create_project(client, proj_name, num_jobs=5, use_exec_script=False)

tests/jms/test_tasks.py:108: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 41 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_mapdl_motorbike_frame

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_mapdl_motorbike_frame(client):
    
        from examples.mapdl_motorbike_frame.project_setup import create_project
    
        num_jobs = 5
>       project = create_project(
            client, f"Test mapdl_motorbike_frame", num_jobs=num_jobs, use_exec_script=False
        )

tests/test_examples.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 61 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_mapdl_motorbike_frame_with_exec_script

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_mapdl_motorbike_frame_with_exec_script(client):
    
        from examples.mapdl_motorbike_frame.project_setup import create_project
    
        num_jobs = 5
>       project = create_project(
            client, f"Test mapdl_motorbike_frame", num_jobs=num_jobs, use_exec_script=True
        )

tests/test_examples.py:61: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 79 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_mapdl_motorbike_frame_with_user_defined_version

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_mapdl_motorbike_frame_with_user_defined_version(client):
    
        from examples.mapdl_motorbike_frame.project_setup import create_project
    
        num_jobs = 5
>       project = create_project(
            client,
            f"Test mapdl_motorbike_frame",
            version="2022 R1",
            num_jobs=num_jobs,
            use_exec_script=False,
        )

tests/test_examples.py:79: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_motorbike_frame/project_setup.py:118: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 107 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_mapdl_tyre_performance

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_mapdl_tyre_performance(client):
    
        from examples.mapdl_tyre_performance.project_setup import create_project
    
        num_jobs = 1
>       project = create_project(client, f"Test mapdl_tyre_performance", ansys_version, num_jobs)

tests/test_examples.py:107: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_tyre_performance/project_setup.py:107: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 123 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_python_two_bar_truss_problem

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_python_two_bar_truss_problem(client):
    
        from examples.python_two_bar_truss_problem.project_setup import main
    
        num_jobs = 10
>       project = main(client, num_jobs, use_exec_script=False)

tests/test_examples.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/python_two_bar_truss_problem/project_setup.py:99: in main
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 139 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_python_two_bar_truss_problem_with_exec_script

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_python_two_bar_truss_problem_with_exec_script(client):
    
        from examples.python_two_bar_truss_problem.project_setup import main
    
        num_jobs = 10
>       project = main(client, num_jobs, use_exec_script=True)

tests/test_examples.py:139: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/python_two_bar_truss_problem/project_setup.py:99: in main
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 155 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_mapdl_linked_analyses

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_mapdl_linked_analyses(client):
    
        from examples.mapdl_linked_analyses.project_setup import create_project
    
        for incremental_version in [True, False]:
>           project = create_project(
                client,
                name=f"Test linked analyses (incremental={incremental_version})",
                incremental=incremental_version,
                use_exec_script=False,
                version=ansys_version,
            )

tests/test_examples.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/mapdl_linked_analyses/project_setup.py:333: in create_project
    prestress_task_def_id, prestress_files = create_prestress_task_definition(
examples/mapdl_linked_analyses/project_setup.py:113: in create_prestress_task_definition
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 177 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_fluent_2d_heat_exchanger

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_fluent_2d_heat_exchanger(client):
    
        from examples.fluent_2d_heat_exchanger.project_setup import create_project
    
>       project = create_project(client, name="Fluent test (command)", version=ansys_version)

tests/test_examples.py:177: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/fluent_2d_heat_exchanger/project_setup.py:92: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 193 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_fluent_2d_heat_exchanger_with_exec_script

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_fluent_2d_heat_exchanger_with_exec_script(client):
    
        from examples.fluent_2d_heat_exchanger.project_setup import create_project
    
>       project = create_project(
            client, name="Fluent test (exec script)", version=ansys_version, use_exec_script=True
        )

tests/test_examples.py:193: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/fluent_2d_heat_exchanger/project_setup.py:92: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 211 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_fluent_nozzle

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_fluent_nozzle(client):
    
        from examples.fluent_nozzle.project_setup import create_project
    
>       project = create_project(client, name="Fluent nozzle test", num_jobs=1, version=ansys_version)

tests/test_examples.py:211: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/fluent_nozzle/project_setup.py:125: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 227 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_lsdyna_cylinder_plate

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_lsdyna_cylinder_plate(client):
    
        from examples.lsdyna_cylinder_plate.lsdyna_job import submit_job
    
>       app_job = submit_job(
            client, name="LS-DYNA Cylinder Plate", version=ansys_version, use_exec_script=False
        )

tests/test_examples.py:227: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/lsdyna_cylinder_plate/lsdyna_job.py:193: in submit_job
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 246 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_lsdyna_cylinder_plate_with_exec_script

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_lsdyna_cylinder_plate_with_exec_script(client):
    
        from examples.lsdyna_cylinder_plate.lsdyna_job import submit_job
    
>       app_job = submit_job(client, name="LS-DYNA Cylinder Plate", version=ansys_version)

tests/test_examples.py:246: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/lsdyna_cylinder_plate/lsdyna_job.py:193: in submit_job
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError

Check failure on line 263 in tests/test_examples.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.10

test_examples.test_cfx_static_mixer

ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get
Raw output
client = <ansys.hps.client.client.Client object at 0x7f173ee848e0>

    def test_cfx_static_mixer(client):
    
        from examples.cfx_static_mixer.project_setup import create_project
    
>       project = create_project(
            client, name="CFX static mixer test", num_jobs=1, version=ansys_version
        )

tests/test_examples.py:263: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
examples/cfx_static_mixer/project_setup.py:115: in create_project
    files = project_api.create_files(files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:173: in create_files
    return create_files(self, files, as_objects=as_objects)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:805: in create_files
    _upload_files(project_api, created_files)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:759: in _upload_files
    _fetch_file_metadata(project_api, files, dsts)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/jms/api/project_api.py:772: in _fetch_file_metadata
    op = project_api.client.dt_api.get_metadata(storagePaths)
.tox/py310-coverage/lib/python3.10/site-packages/backoff/_sync.py:105: in retry
    ret = target(*args, **kwargs)
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/api/api.py:140: in get_metadata
    resp = self.client.session.post(url, json=payload)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1157: in post
    return self.request(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:837: in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:926: in send
    response = self._send_handling_auth(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:954: in _send_handling_auth
    response = self._send_handling_redirects(
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:1011: in _send_handling_redirects
    raise exc
.tox/py310-coverage/lib/python3.10/site-packages/httpx/_client.py:994: in _send_handling_redirects
    hook(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response [400 Bad Request]>

    def raise_for_status(response: httpx.Response):
        """Automatically checks HTTP errors.
    
        This method mimics the requests.Response.raise_for_status() method.
        """
        if 400 <= response.status_code < 600:
            if getattr(response, "is_error", False):
                response.read()
    
            r_content = {}
            try:
                r_content = response.json()
            except ValueError:
                pass
    
            reason = r_content.get("title", None)  # jms api
            if not reason:
                reason = r_content.get("error", None)  # auth api
            if not reason:
                reason = getattr(response, "reason", None)
    
            description = r_content.get("description", None)  # jms api
            if not description:
                description = r_content.get("error_description", None)  # auth api
    
            if 400 <= response.status_code < 500:
                error_msg = "%s Client Error: %s for: %s %s" % (
                    response.status_code,
                    reason,
                    response.request.method,
                    response.url,
                )
                if description:
                    error_msg += f"\n{description}"
>               raise ClientError(error_msg, reason=reason, description=description, response=response)
E               ansys.hps.data_transfer.client.exceptions.ClientError: 400 Client Error: code=400, message=Key: 'GetMetadataRequest.Paths' Error:Field validation for 'Paths' failed on the 'required' tag for: POST http://127.0.0.1:34137/api/v1/metadata:get

.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/data_transfer/client/exceptions.py:115: ClientError