Skip to content

Instantly share code, notes, and snippets.

@ferventcoder
Last active August 29, 2015 14:27
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 ferventcoder/5d335bb0efa7f9fab1d6 to your computer and use it in GitHub Desktop.
Save ferventcoder/5d335bb0efa7f9fab1d6 to your computer and use it in GitHub Desktop.
Package Verifier test steps

Requirements

  • Virtualbox installed
  • Vagrant installed
  • Vagrant sahara plugin installed
  • Vagrant box win2012r2x64 available

Box Prep

  • Copy PrepareMachine.ps1 to VagrantAction.ps1
  • Run vagrant up

Steps

  • Run vagrant sandbox on
  • Copy ChocolateyAction.ps1 to VagrantAction.ps1 - replace {{action}} with install, {{package}}, and {{version}}.
  • Run vagrant provision - capture output (this is the install log), note the exit code.
  • Copy ChocolateyAction.ps1 to VagrantAction.ps1 - replace {{action}} with uninstall, {{package}}, and {{version}}.
  • Run vagrant provision - capture output (this is the uninstall log), note the exit code.
  • Run vagrant sandbox rollback to set the machine ready for previous.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment