Skip to content

Add getSuspendPostUri and getResumePostUri getters to HttpManagementPayload#264

Open
bachuv wants to merge 3 commits intomainfrom
vabachu/http-urls
Open

Add getSuspendPostUri and getResumePostUri getters to HttpManagementPayload#264
bachuv wants to merge 3 commits intomainfrom
vabachu/http-urls

Conversation

@bachuv
Copy link
Contributor

@bachuv bachuv commented Feb 25, 2026

Issue describing the changes in this PR

Enhancements to HTTP management endpoints:

  • Added new methods getSuspendPostUri() and getResumePostUri() to the HttpManagementPayload class, providing URLs for suspending and resuming orchestration instances.

Testing improvements:

  • Added a new test class HttpManagementPayloadTest.java with unit tests covering all URL generation methods in HttpManagementPayload, including the new suspend and resume endpoints.

Build and test configuration:

  • Updated endtoendtests/build.gradle to enable the JUnit Platform for running tests, ensuring compatibility with JUnit 5.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes are added to the CHANGELOG.md
  • I have added all required tests (Unit tests, E2E tests)

@bachuv bachuv requested a review from a team as a code owner February 25, 2026 16:59
Copilot AI review requested due to automatic review settings February 25, 2026 16:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing suspend/resume management endpoint getters to HttpManagementPayload (used by Azure Functions HTTP management payloads) and introduces a small unit test suite to validate URL generation, along with Gradle test configuration updates for the endtoendtests module.

Changes:

  • Add getSuspendPostUri() and getResumePostUri() getters to HttpManagementPayload.
  • Add HttpManagementPayloadTest unit tests covering all URL getter methods (including suspend/resume).
  • Enable the JUnit Platform for the default test task in endtoendtests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
azurefunctions/src/main/java/com/microsoft/durabletask/azurefunctions/HttpManagementPayload.java Exposes suspend/resume POST management URLs via new getters.
endtoendtests/src/test/java/com/functions/HttpManagementPayloadTest.java Adds unit tests to validate URL construction for all management endpoints.
endtoendtests/build.gradle Configures the default Gradle test task to run on JUnit Platform.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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