Skip to content

fix(test): correct entry variants fetch_nonexistent to use fetch(uid) pattern - #187

Merged
aniket-shikhare-cstk merged 1 commit into
developmentfrom
fix/entry-variants-fetch-nonexistent
Aug 31, 2026
Merged

fix(test): correct entry variants fetch_nonexistent to use fetch(uid) pattern#187
aniket-shikhare-cstk merged 1 commit into
developmentfrom
fix/entry-variants-fetch-nonexistent

Conversation

@aniket-shikhare-cstk

@aniket-shikhare-cstk aniket-shikhare-cstk commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes the single failing test (test_fetch_nonexistent) in test_17_entry_variants.py that caused 269/270 on the last GoCD run
  • entry.variants(x) treats its single positional arg as a branch UID, not a variant UID — so .variants("no_such_variant").fetch() left variant_uid=None and hit the SDK's ArgumentException client-side guard before any HTTP call was made
  • Fix: .variants().fetch("no_such_variant") passes the UID to fetch() directly, which is the correct SDK pattern and reaches the server to get a 404/412/422 response

Test plan

  • Local suite passes 270/270 (currently running)
  • GoCD sdk-python-cma-daily-sanity pipeline passes on this branch

🤖 Generated with Claude Code

… pattern

variants(x) treats its single positional arg as a branch UID, not a
variant UID, so variants("no_such_variant").fetch() left variant_uid=None
and hit the client-side ArgumentException guard before the HTTP call.
Fix: pass the UID to fetch() directly, which is the correct SDK pattern.

Generated by Claude Code
@aniket-shikhare-cstk
aniket-shikhare-cstk requested a review from a team as a code owner August 30, 2026 23:04
@snyk-io

snyk-io Bot commented Aug 30, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 2 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@aniket-shikhare-cstk
aniket-shikhare-cstk merged commit 076d335 into development Aug 31, 2026
9 checks passed
@aniket-shikhare-cstk
aniket-shikhare-cstk deleted the fix/entry-variants-fetch-nonexistent branch August 31, 2026 09:08
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