-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
**CLI** user can see a **diff** when **pushing** that respects **arguments and flags** #2196
Comments
We did some manual testing on this issue. Based on the results we got, it seems that the desired behavior is already present. SetupTesting done using a GCP BOSH-lite-based CF running CF-deployment 16.14.0 and a locally-built CAPI running We used pora as our test application. The manifests we used are at the end of this comment. Results
Test ManifestsSingle-app manifest:
Multi-app manifest:
|
For acceptance: App nameThe diff didn't show up as expected. my steps:
While these manifest properties are technically correct, and only the properties for multi1 are showing up, what I am not seeing - which I expected to see - is the diff formatted and red for where I removed
Push FlagsAgree that this looked good. I pushed the app with various flag overrides ( |
I think this behavior is correct. Currently, the diffing logic returns an "effective" diff (i.e. it only marks changes that will actually cause a change to the app), not a "literal" diff (what you'd get if you ran the old & new manifests through In the above case, removing the env vars from the manifest doesn't actually change the app (because manifest changes are additive) - running |
Okay that makes sense to me. Thanks for explaining that behavior, and why it's expected. The rest of the issue looks like the expected behavior was working! |
Acceptance Criteria
App Name
Given a manifest file "manifest.yml" with multiple apps in it:
app1
,app2
, andapp3
When I
cf push app1 -f manifest.yml
, specifying a single app to pushThen I should only see a diff for
app1
And it should show all the fields for
app1
inmanifest.yml
(not the other apps in the manifest)Push Flags
Given a manifest file "manifest.yml" with one or more apps in it
When I
cf push -f manifest.yml
with one or more other flag overrides (e.g.-m
,-k
, etc)Then the diff should take the flag overrides into account
Dev Notes
This might already be implemented, it's just difficult to tell given the currently in-flight bug that we're working on (https://www.pivotaltracker.com/story/show/177552249).
This story will be to verify the desired behavior exists.
The text was updated successfully, but these errors were encountered: