Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests][auth] Fix unreported issue with auth tests skipped, fix storage of ssl protocol #57981

Merged

Conversation

nyalldawson
Copy link
Collaborator

Supersedes #57890, adding the required changes to fix the tests on Qt 6 builds.

The old approach (casting Qt enums to int and storing) is not stable, and breaks with the Qt 6 builds were the raw SSL protocol
enums have changed values (due to removed deprecated protocols).

Replace this with a stable string encoding/decoding approach, with compatibility for upgrading older configus, and add additional tests.

(Note that auth configuration created in Qt 5 builds which use the deprecated protocols cannot be loaded in Qt 6 builds, since
those protocols are no longer supported.)

elpaso and others added 2 commits July 4, 2024 07:55
Test were silently skipped since 5ac1774 (lazy init of
auth manager).

The error message was also misleading:
"QCA's qca-ossl plugin is missing, skipping test case"
because the plugin was actually installed but the auth
system wasn't initialized.
Copy link

github-actions bot commented Jul 3, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 62515d0)

The old approach (casting Qt enums to int and storing) is not
stable, and breaks with the Qt 6 builds were the raw SSL protocol
enums have changed values (due to removed deprecated protocols).

Replace this with a stable string encoding/decoding approach, with
compatibility for upgrading older configus, and add additional tests.

(Note that auth configuration created in Qt 5 builds which use
the deprecated protocols cannot be loaded in Qt 6 builds, since
those protocols are no longer supported.)
@nyalldawson nyalldawson force-pushed the bugfix-authmanager-initialization-in-tests branch from 18b0f6e to 62515d0 Compare July 4, 2024 00:07
@elpaso elpaso merged commit bee010b into qgis:master Jul 4, 2024
29 checks passed
@nyalldawson nyalldawson deleted the bugfix-authmanager-initialization-in-tests branch July 22, 2024 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants