Add health check type configuration and improve CF API compatibility#120
Merged
Add health check type configuration and improve CF API compatibility#120
Conversation
ramonskie
approved these changes
Dec 3, 2025
Contributor
ramonskie
left a comment
There was a problem hiding this comment.
looks good. but we need to squash this when merging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the switchblade testing framework with health check configuration support and improves Cloud Foundry API compatibility for buildpack testing scenarios.
Changes
1. Health Check Configuration Support
WithHealthCheckType()method toDeployProcessinterface and implementationscf set-health-checkto configure process-based or port-based health checksWithHealthCheckType("process")- For scripts/background processes that don't serve HTTP2. CF API v2 to v3 Migration
stage.gofrom/v2/apps/{guid}/routesto/v3/apps/{guid}/routes3. Graceful TCP Route Handling
setup.go4. Buildpack Deletion Fix
-s/--stackflag fromcf delete-buildpackcommand ininitialize.goMotivation
These changes were needed to support R buildpack integration tests running on Cloud Foundry environments with:
Testing
Backward Compatibility
WithHealthCheckType()is optional (no call = default behavior)