Skip to content

Conversation

gdbranco
Copy link
Contributor

@gdbranco gdbranco commented Oct 1, 2025

  • Add comprehensive external auth provider resource structure
  • Implement schema with full validation including HTTPS URLs, client secrets
  • Add custom validation for client ID/secret combinations
  • Create complete state structures following backend API model
  • Add subsystem tests for validation scenarios
  • Register resource in provider
  • Implement placeholder CRUD operations (to be completed in OCM-18658)

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story (OCM-xxxx):
Fixes #OCM-18657

Change type

  • New feature
  • Bug fix
  • Build
  • CI
  • Documentation
  • Performance
  • Refactor
  • Style
  • Unit tests
  • Subsystem tests

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

Copy link

openshift-ci bot commented Oct 1, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

openshift-ci bot commented Oct 1, 2025

[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 vkareh for approval. For more information see the Code Review Process.

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

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

- Add comprehensive external auth provider resource structure
- Implement schema with full validation including HTTPS URLs, client secrets
- Add custom validation for client ID/secret combinations
- Create complete state structures following backend API model
- Add subsystem tests for validation scenarios
- Register resource in provider
- Implement placeholder CRUD operations (to be completed in OCM-18658)
… import, registration and comprehensive testing

Complete external auth provider implementation with import, registration and comprehensive testing

  Implements OCM-18658, OCM-18659, OCM-18660, and OCM-18661:

  **CRUD operations (OCM-18658):**
  * Implement create, update and delete operations for
    external_auth_provider resource

  **Import Functionality (OCM-18659):**
  * Implement import format: cluster_id,provider_id
  * Add comprehensive import validation and error handling
  * Support importing existing external auth providers into Terraform state

  **Resource Registration (OCM-18660):**
  * Register rhcs_external_auth_provider resource in provider schema
  * Add resource to provider.go with external_auth_provider.New()
  * Enable resource discovery and usage in Terraform configurations

  **Comprehensive Testing (OCM-18661):**
  * Add comprehensive subsystem tests covering resource lifecycle
  * Implement proper OCM API mocking with cmv1.MarshalCluster() and RespondWithJSON()
  * Add CRUD operation tests (Create, Read, Update, Delete) with terraform apply
  * Include static validation, runtime validation, and import functionality tests
  * Add console client configuration testing with proper array schema

  **Test Coverage Includes:**
  - Static validation (schema, field requirements, HTTPS validation)
  - Runtime validation (cluster checks, external auth enablement)
  - Import functionality (format validation, provider retrieval)
  - Full CRUD operations (Create, Read, Update, Delete with terraform apply)
  - Edge cases and error scenarios
  - Console client array configuration testing
@gdbranco gdbranco marked this pull request as ready for review October 3, 2025 09:16
Copy link

openshift-ci bot commented Oct 3, 2025

@gdbranco: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit 944589e link true /test unit
ci/prow/e2e-presubmits-rosa-sts-advanced-critical-high-presubmit 944589e link true /test e2e-presubmits-rosa-sts-advanced-critical-high-presubmit

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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.

1 participant