Update dependency docusaurus-plugin-sass to v0.2.6 #1242
GitHub Actions / JUnit Test Report
failed
Jan 2, 2025 in 0s
53 tests run, 50 passed, 0 skipped, 3 failed.
Annotations
Check failure on line 36 in port_ocean/tests/test_smoke.py
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-12585063661', blueprint_department='fake-department-1...e='smoke-test', integration_version='0.1.4-dev'), <port_ocean.clients.port.client.PortClient object at 0x7f51e8e376b0>)
@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 57 in port_ocean/tests/test_smoke.py
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-12585063661', blueprint_department='fake-department-1...e='smoke-test', integration_version='0.1.4-dev'), <port_ocean.clients.port.client.PortClient object at 0x7fb0d4fc35c0>)
@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
Check failure on line 21 in port_ocean/tests/test_smoke.py
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-12585063661'
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-12585063661', blueprint_department='fake-department-1...e='smoke-test', integration_version='0.1.4-dev'), <port_ocean.clients.port.client.PortClient object at 0x7f52d81af260>)
@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-12585063661'
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
Loading