Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-okta for openSUSE:Factory checked in at 2026-04-10 17:53:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-okta (Old) and /work/SRC/openSUSE:Factory/.python-okta.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-okta" Fri Apr 10 17:53:16 2026 rev:7 rq:1345700 version:3.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-okta/python-okta.changes 2026-03-16 14:20:26.357033224 +0100 +++ /work/SRC/openSUSE:Factory/.python-okta.new.21863/python-okta.changes 2026-04-10 18:02:37.473648490 +0200 @@ -1,0 +2,26 @@ +Thu Apr 9 19:00:32 UTC 2026 - Martin Hauke <[email protected]> + +- Update to version 3.4.0 + * feat: Implement DPoP module. + * Remove minLength validation for the secondEmail attribute from + the OpenAPI spec. + * Add CAA DNS Record Type Support for Custom Domain Operations. + * Fix multipart file upload handling in HTTP client. + * Revert changes for EmailDomainDNSRecordType schema. +- Update to version 3.3.0 + * fix: Handle unknown Application signOnMode values gracefully. + * Added FAILED_TO_VERIFY as ENUM option to DomainValidationStatus + * fix: Correct EmailDomain model field deserialization. + * fix: handle nullable discriminator fields in JWKS models. +- Update to version 3.2.0 + * Replace flatdict dependency with custom dictionary utilities. + * Python MGMT SDK: SDK making malformed request for OAuth access + tokens in v 3.0.0. + * fix: use lazy imports to speed up module import time. + * Handle apps with the "MFA_AS_SERVICE" sign-on mode. + * feat: Add LogUserBehavior model and comprehensive System Log + userBehaviors support. +- Add patch: + * fix-test.patch + +------------------------------------------------------------------- Old: ---- okta-3.1.0.tar.gz New: ---- fix-test.patch okta-sdk-python-3.4.0.tar.gz ----------(New B)---------- New:- Add patch: * fix-test.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-okta.spec ++++++ --- /var/tmp/diff_new_pack.aHPMFQ/_old 2026-04-10 18:02:38.237680005 +0200 +++ /var/tmp/diff_new_pack.aHPMFQ/_new 2026-04-10 18:02:38.237680005 +0200 @@ -2,7 +2,7 @@ # spec file for package python-okta # # Copyright (c) 2026 SUSE LLC and contributors -# Copyright (c) 2024, Martin Hauke <[email protected]> +# Copyright (c) 2024-2026, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,20 +19,22 @@ %{?sle15_python_module_pythons} Name: python-okta -Version: 3.1.0 +Version: 3.4.0 Release: 0 Summary: Python SDK for the Okta Management API License: Apache-2.0 URL: https://github.com/okta/okta-sdk-python -Source: https://files.pythonhosted.org/packages/source/o/okta/okta-%{version}.tar.gz +Source: https://github.com/okta/okta-sdk-python/archive/refs/tags/v%{version}.tar.gz#/okta-sdk-python-%{version}.tar.gz +Patch0: fix-test.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module aenum} +BuildRequires: %{python_module anyio} BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module aenum} BuildRequires: %{python_module aiohttp} BuildRequires: %{python_module blinker} BuildRequires: %{python_module flatdict} @@ -43,6 +45,9 @@ BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-recording} +BuildRequires: %{python_module pytest-tornasync} +BuildRequires: %{python_module pytest-trio} +BuildRequires: %{python_module pytest-twisted} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module requests} @@ -71,7 +76,7 @@ Python SDK for the Okta Management API. %prep -%autosetup -p1 -n okta-%{version} +%autosetup -p1 -n okta-sdk-python-%{version} %build %pyproject_wheel ++++++ fix-test.patch ++++++ diff --git a/test_oauth_http_client.py b/test_oauth_http_client.py index 5d4286a..1717b9d 100644 --- a/test_oauth_http_client.py +++ b/test_oauth_http_client.py @@ -9,6 +9,7 @@ Tests cover: 5. Multiple sequential requests maintain isolated state """ +import mimetypes from unittest.mock import AsyncMock, MagicMock, patch, mock_open import pytest import aiohttp @@ -178,6 +179,9 @@ class TestHTTPClientFormData: async def test_file_upload_still_works(self): """Test that file upload functionality is not broken""" + # Initialize mimetypes BEFORE patching open + mimetypes.init() + http_config = { "headers": { "User-Agent": "test-client",
