Created
September 20, 2018 21:19
-
-
Save calebwashburn/771d75e6d22c121d622fc0f0041a31a4 to your computer and use it in GitHub Desktop.
Test for configuration change
This file contains 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
product-properties: | |
.properties.push_apps_manager_nav_links: | |
value: | |
- href: /marketplace | |
name: Marketplace | |
- href: https://docs.pivotal.io/pivotalcf/2-1/pas/intro.html | |
name: Docs | |
- href: /tools | |
name: Tools |
This file contains 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
export DEPLOYMENT=$(om --env env.yml curl -p /api/v0/staged/products | jq -r '.[] | .guid' | grep cf) | |
om --env env.yml curl -p /api/v0/staged/products/${DEPLOYMENT}/properties | jq '.[].".properties.push_apps_manager_nav_links".value' > before.json | |
om --env env.yml configure-product --product-name cf --config product.yml | |
om --env env.yml curl -p /api/v0/staged/products/${DEPLOYMENT}/properties | jq '.[].".properties.push_apps_manager_nav_links".value' > after.json | |
diff before.json after.json | |
rm before.json after.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment