Skip to content

fix(5633): correct Enable endpoint; stabilize workflow integration tests#152

Open
OMpawar-21 wants to merge 4 commits intodevelopmentfrom
enhc/DX-5633
Open

fix(5633): correct Enable endpoint; stabilize workflow integration tests#152
OMpawar-21 wants to merge 4 commits intodevelopmentfrom
enhc/DX-5633

Conversation

@OMpawar-21
Copy link
Copy Markdown
Contributor

Summary

  • Fixes Workflow.Enable() / EnableAsync() calling the disable URL; both now use the /enable path.
  • Aligns Contentstack020_WorkflowTest with real API behavior and stack constraints.

Test changes

  • Test011 — Resolves a real content-type UID from the stack for GetPublishRule (the API does not treat $all as a valid path segment for that endpoint).
  • Test012 — Publish rule update uses locales present on the stack (en-us only).
  • Test103 — Duplicate workflow name: handles ContentstackErrorException when the client throws on 422.
  • Test108 — Expects successful workflow delete when publish rules exist (per API).
  • Test110 — Post-delete Fetch handles both response and exception paths.

…ases

Add Contentstack018_EnvironmentTest.cs with complete CRUD coverage for Environment API.

- 16 tests: sync/async happy path + negative path scenarios
- Fix API calls to use environment names instead of UIDs for fetch/update/delete
- Includes proper cleanup, unique naming, and error handling
- All tests passing with comprehensive positive/negative validation
Add Contentstack019_RoleTest with 16 integration tests (sync/async CRUD + query,
negative paths for non-existent role UID). Roles use /roles/{uid}; minimal
RoleModel uses BranchRules for branch main. Mirrors Contentstack018 patterns.
Add EntryVariant model and Entry.Variant() for create/fetch/find/update/delete
against entry variant endpoints.

Extend publish flow with PublishVariant, PublishVariantRules, and serialization
in PublishUnpublishDetails / PublishUnpublishService; update unit tests for
variant publish JSON.

Add Contentstack021_EntryVariantTest: Product Banner lifecycle (setup, create,
fetch, publish, delete) with config-based stack API key, and negative cases
for invalid entry/variant, publish, environments, and unlinked content types.

Update CHANGELOG for Entry Variant support.
- Workflow.Enable() / EnableAsync() now call .../enable instead of .../disable.
- Integration tests: resolve a real content-type UID for GetPublishRule (Test011);
  publish-rule update uses stack locales only (Test012); duplicate-name create
  handles ContentstackErrorException (Test103); delete-with-publish-rules expects
  success per API (Test108); post-delete fetch handles exception path (Test110).
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner March 31, 2026 12:57
@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 0 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

✅ BUILD PASSED - All security checks passed

cs-raj
cs-raj previously approved these changes Apr 7, 2026
@OMpawar-21 OMpawar-21 dismissed cs-raj’s stale review April 7, 2026 10:40

The merge-base changed after approval.

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.

2 participants