feat(apps): Add Generate App Manifest functionality #244
+5
−2
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.
The Cloud Foundry V3 API reference specifies a
manifest
endpoint forapps
that returns the computed app manifest YAML (string), matching the cloudfoundry-application-manifest.json schema.I've added the
get_manifest
method to theAppManager
class of thecloudfoundry_client/v3/apps.py
module that consumes this API endpoint.Example:
I've also introduced a fix to the
_append_encoded_parameter
function of the_get_url_filtered
method of theentities
module of thenetworking
package, in order to append the GET parameters with the%s=%s
format, in line with what the Policy Server API interface expects for its GET requests.Example:
As of now, the following doesn't work as intended:
Expected:
https://<cf-instance>/networking/v1/external/policies?id=97bcba72-43f2-4197-8136-fe178c22846f
Actual:
https://<cf-instance>/networking/v1/external/policies?q=id%3A97bcba72-43f2-4197-8136-fe178c22846f
, which yields all network policies present in the CF instance.