• Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      Write comprehensive unit tests for all PKI API types, validation rules, and configuration logic.Test coverage needed:*API validation tests: Valid configurations accepted* Invalid algorithm rejected* Invalid keySize rejected* Invalid curve rejected* Mutual exclusivity enforced (keySize vs curve)* Required fields enforced* List uniqueness enforced (category, certificateName)Type tests:* DeepCopy works correctly* JSON marshaling/unmarshaling* Default values applied correctlyEdge cases:* Empty spec behavior* Minimal valid config* Maximal config with all fields* Unicode in certificateName (should fail)Test organization:* Location: openshift/api/config/v1alpha1/_test.go Use table-driven tests for validation* Test both valid and invalid inputs* Clear test names describing scenario*Acceptance:** Unit tests written for all validation rules* Test coverage >80% for PKI types* All tests passing* Tests run in CI

              Unassigned Unassigned
              lusanche@redhat.com Luis Sanchez
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: