Repository navigation
Patch the libpq version in two OAuth server tests so they pass on libpq older than 18. - #10934
Conversation
…pq older than 18. test_server_kerberos_exclusivity and test_update_checked_endpoint save or update servers that use oauth_direct, which pgAdmin refuses when its libpq is older than 18. They passed where CI loads libpq 18 or later, but failed on macOS and Windows against PostgreSQL 15 to 17. Patch the loaded libpq version to 18, as the other auth method tests already do, so they run the same on any libpq.
|
No actionable comments were generated in the recent review. WalkthroughTwo server test modules now patch the loaded libpq version to 180000 during setup. Each registers cleanup to stop the patch. The test scenarios and server API assertions are otherwise unchanged. ChangesLibpq test setup
Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Possibly related PRs
Suggested reviewers: Merge Risk:
|
Since #10830 was merged,
Run Python tests on PostgreSQLfails on macOS and Windows against PostgreSQL 15 to 17, where CI loads a libpq older than 18. In 9 scenarios,test_server_kerberos_exclusivityandtest_update_checked_endpointsave or update anoauth_directserver, which pgAdmin now refuses on such a libpq:The oauth_direct authentication method is not available in this pgAdmin: it needs libpq 18 or later, and pgAdmin is using libpq 16.16.Both tests now patch
pg_oauth2.loaded_libpq_versionto 18, astest_server_auth_methodalready does. With the loaded version faked to 16.16 locally, the 9 failures reproduce without this change and pass with it.Summary by CodeRabbit