Skip to content

Instantly share code, notes, and snippets.

@calebwashburn
Created September 20, 2018 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebwashburn/771d75e6d22c121d622fc0f0041a31a4 to your computer and use it in GitHub Desktop.
Save calebwashburn/771d75e6d22c121d622fc0f0041a31a4 to your computer and use it in GitHub Desktop.
Test for configuration change
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
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