Skip to content

test(dex): use an unknown TLS group in the unsupported curves case - #1569

Merged
svghadi merged 1 commit into
redhat-developer:masterfrom
Gabrielandre02:fix-dex-tls-curve-test
Nov 18, 2026
Merged

svghadi merged 1 commit into
redhat-developer:masterfrom
Gabrielandre02:fix-dex-tls-curve-test

Conversation

@Gabrielandre02

Copy link
Copy Markdown
Contributor

What does this PR do?

TestGetDexConfig_TLS fails on master, and it fails the "Build manager image" step of the KinD E2E jobs on every PR.

The case "omits curve preferences when all groups are unsupported" uses SecP256r1MLKEM768 as the unsupported group. #1517 added that group to the supported curves, and #1527 merged right after it, so the case now gets tlsCurvePreferences back and the assertion fails.

I changed the case to use configv1.TLSGroup("UnknownGroup"), the same group the matching cases in argoutil/tls_test.go and image_updater_test.go use. The case no longer depends on which curves are supported.

PR acceptance criteria:

  • Documentation was updated and verified using make serve-docs: not applicable, test-only change
  • Unit tests were updated
  • E2E tests were updated: not applicable

What type of PR is this?

/kind failing-test

Special notes to the reviewer:

I ran go test ./controllers/argocd/ locally. It fails on master and passes with this change. I did not run the E2E suites.

Signed-off-by: gabriel.carmo <admin@gabrielandre.com.br>
@openshift-ci openshift-ci Bot added the kind/failing-test Categorizes issue or PR as related to a frequently failing test. label Nov 17, 2026
@openshift-ci
openshift-ci Bot requested review from jgwest and varshab1210 November 17, 2026 23:23
@openshift-ci

openshift-ci Bot commented Nov 17, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign trdoyle81 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci

openshift-ci Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @Gabrielandre02. Thanks for your PR.

I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Updated TLS configuration test coverage to verify that curve preferences are omitted when an unsupported group is specified. No user-facing behavior changes are included.

The TLS configuration test now uses UnknownGroup in the case that expects no curve preferences.

Changes: TLS configuration test

Layer / File(s) Summary
Update curve group test input
argocd-operator/controllers/argocd/dex_test.go
The test case expecting no curve preferences now uses UnknownGroup instead of TLSGroupSecP256r1MLKEM768.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: akhilnittala

Merge Risk: Minimal · up to 604cc

This updates a test so it no longer depends on a group that has since become supported. It does not change runtime behavior and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title accurately names the change: a test-only fix in the dex TLS test that switches the unsupported curves case to an unknown TLS group. It is specific and concise, and it follows the conventiona…
Description check Passed The description explains the failing test, the cause (SecP256r1MLKEM768 became supported after #1517 and #1527), and the fix (use configv1.TLSGroup("UnknownGroup")). It matches the one-line test chang…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title accurately names the change: a test-only fix in the dex TLS test that switches the unsupported curves case to an unknown TLS group. It is specific and concise, and it follows the conventional commit style.

Full details: Description check

Explanation

The description explains the failing test, the cause (SecP256r1MLKEM768 became supported after #1517 and #1527), and the fix (use configv1.TLSGroup("UnknownGroup")). It matches the one-line test change in the raw summary.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d5b45e0 and 604cc70.

Files selected for processing: 1

  • argocd-operator/controllers/argocd/dex_test.go
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@svghadi

svghadi commented Nov 18, 2026

Copy link
Copy Markdown
Member

/ok-to-test

@svghadi
svghadi merged commit e26439c into redhat-developer:master Nov 18, 2026
10 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/failing-test Categorizes issue or PR as related to a frequently failing test. ok-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants