Skip to content

Update dependency fastapi to v0.115.8 #7521

Update dependency fastapi to v0.115.8

Update dependency fastapi to v0.115.8 #7521

GitHub Actions / JUnit Test Report failed Jan 21, 2025 in 0s

93 tests run, 90 passed, 0 skipped, 3 failed.

Annotations

Check failure on line 36 in port_ocean/tests/test_smoke.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_smoke.test_valid_fake_departments

assert 0
 +  where 0 = len([])
Raw output
port_client_for_fake_integration = (SmokeTestDetails(integration_identifier='smoke-test-integration-12891747031', blueprint_department='fake-department-1...e='smoke-test', integration_version='0.1.4-dev'), <port_ocean.clients.port.client.PortClient object at 0x7f8c110bffe0>)

    @pytest.mark.skipif(
        environ.get("SMOKE_TEST_SUFFIX", None) is None,
        reason="You need to run the fake integration once",
    )
    async def test_valid_fake_departments(
        port_client_for_fake_integration: Tuple[SmokeTestDetails, PortClient],
    ) -> None:
        details, port_client = port_client_for_fake_integration
        entities = await port_client.search_entities(user_agent_type=UserAgentType.exporter)
>       assert len(entities)
E       assert 0
E        +  where 0 = len([])

port_ocean/tests/test_smoke.py:36: AssertionError

Check failure on line 21 in port_ocean/tests/test_smoke.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_smoke.test_valid_fake_integration

httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://api.getport.io/v1/integration/smoke-test-integration-12891747031'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
Raw output
port_client_for_fake_integration = (SmokeTestDetails(integration_identifier='smoke-test-integration-12891747031', blueprint_department='fake-department-1...e='smoke-test', integration_version='0.1.4-dev'), <port_ocean.clients.port.client.PortClient object at 0x7f047043c980>)

    @pytest.mark.skipif(
        environ.get("SMOKE_TEST_SUFFIX", None) is None,
        reason="You need to run the fake integration once",
    )
    async def test_valid_fake_integration(
        port_client_for_fake_integration: Tuple[SmokeTestDetails, PortClient],
    ) -> None:
        _, port_client = port_client_for_fake_integration
>       current_integration = await port_client.get_current_integration()

port_ocean/tests/test_smoke.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
port_ocean/clients/port/mixins/integrations.py:44: in get_current_integration
    handle_status_code(response, should_raise, should_log)
port_ocean/clients/port/utils.py:73: in handle_status_code
    response.raise_for_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Response [404 Not Found]>

    def raise_for_status(self) -> Response:
        """
        Raise the `HTTPStatusError` if one occurred.
        """
        request = self._request
        if request is None:
            raise RuntimeError(
                "Cannot call `raise_for_status` as the request "
                "instance has not been set on this response."
            )
    
        if self.is_success:
            return self
    
        if self.has_redirect_location:
            message = (
                "{error_type} '{0.status_code} {0.reason_phrase}' for url '{0.url}'\n"
                "Redirect location: '{0.headers[location]}'\n"
                "For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/{0.status_code}"
            )
        else:
            message = (
                "{error_type} '{0.status_code} {0.reason_phrase}' for url '{0.url}'\n"
                "For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/{0.status_code}"
            )
    
        status_class = self.status_code // 100
        error_types = {
            1: "Informational response",
            3: "Redirect response",
            4: "Client error",
            5: "Server error",
        }
        error_type = error_types.get(status_class, "Invalid status code")
        message = message.format(self, error_type=error_type)
>       raise HTTPStatusError(message, request=request, response=self)
E       httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://api.getport.io/v1/integration/smoke-test-integration-12891747031'
E       For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404

.venv/lib/python3.12/site-packages/httpx/_models.py:763: HTTPStatusError

Check failure on line 57 in port_ocean/tests/test_smoke.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_smoke.test_valid_fake_persons

KeyError: 'entities'
Raw output
port_client_for_fake_integration = (SmokeTestDetails(integration_identifier='smoke-test-integration-12891747031', blueprint_department='fake-department-1...e='smoke-test', integration_version='0.1.4-dev'), <port_ocean.clients.port.client.PortClient object at 0x7fb8b1cd2300>)

    @pytest.mark.skipif(
        environ.get("SMOKE_TEST_SUFFIX", None) is None,
        reason="You need to run the fake integration once",
    )
    async def test_valid_fake_persons(
        port_client_for_fake_integration: Tuple[SmokeTestDetails, PortClient],
    ) -> None:
        details, port_client = port_client_for_fake_integration
        headers = await port_client.auth.headers()
        fake_person_entities_result = await port_client.client.get(
            f"{port_client.auth.api_url}/blueprints/{details.blueprint_person}/entities",
            headers=headers,
        )
    
>       fake_person_entities = fake_person_entities_result.json()["entities"]
E       KeyError: 'entities'

port_ocean/tests/test_smoke.py:57: KeyError