Skip to content

fix(test): replace removed /providers with /service-types in TC-30 - #54

Merged
jenniferubah merged 1 commit into
dcm-project:mainfrom
vkolodny:fix/tc30-providers-removed
Aug 19, 2026
Merged

fix(test): replace removed /providers with /service-types in TC-30#54
jenniferubah merged 1 commit into
dcm-project:mainfrom
vkolodny:fix/tc30-providers-removed

Conversation

@vkolodny

Copy link
Copy Markdown
Contributor

Summary

Fixes the catalog-subsystem CI failure blocking all open PRs on main.

Test plan

  • make catalog-subsystem-test — 41/41 specs passed locally

Made with Cursor

… TC-30

PR dcm-project#51 removed the /providers API entirely (replaced by agents).
TC-30 used /providers as a protected endpoint target — now uses
/service-types which still exists in the catalog API.

Fixes catalog-subsystem CI failure on main.

Signed-off-by: Vladislav Kolodny <vkolodny@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vkolodny
vkolodny requested a review from a team as a code owner August 19, 2026 19:41
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix TC-30 to use the service-types endpoint

🐞 Bug fix 🧪 Tests 🕐 Less than 5 minutes

Grey Divider

AI Description

• Replaces removed /providers calls with the supported /service-types catalog endpoint.
• Restores auth-disabled subsystem coverage and unblocks catalog CI.
Diagram

sequenceDiagram
  actor Test as TC-30 Test
  participant API as Catalog API
  participant Auth as Disabled Auth
  participant Handler as Service Types
  Test->>API: GET with garbage headers
  API->>Auth: Process request
  Auth->>Handler: Bypass authentication
  Handler-->>Test: Return 200 JSON
Loading
High-Level Assessment

The endpoint substitution is the optimal minimal fix: it preserves TC-30's authentication-bypass intent while targeting an active catalog route. Reusing /catalog-items was considered but would reduce endpoint diversity without improving coverage.

Files changed (1) +5 / -5

Bug fix (1) +5 / -5
auth_disabled_test.goReplace removed providers endpoint in TC-30 +5/-5

Replace removed providers endpoint in TC-30

• Changes both auth-disabled scenarios that targeted the removed '/providers' route to use '/service-types'. Existing malformed-header and successful-response assertions remain unchanged; header alignment is also normalized by formatting.

test/subsystem/catalog/auth_disabled_test.go

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@jenniferubah
jenniferubah merged commit 008340e into dcm-project:main Aug 19, 2026
7 checks passed
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.

3 participants