Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ChefServerNginxStoppedSentinel = "/var/opt/opscode/a1stub_stopped_nginx"
    Variables ¶
This section is empty.
Functions ¶
func CleanupTestHarness ¶
func CleanupTestHarness()
CleanupTestHarness removes any tempfiles created by the test harness
func StartTestHarness ¶
func StartTestHarness() error
StartTestHarness does what is necessary to be able to run the `migrate-from-v1` code against a host that doesn't actually have A1 installed. The test harness consists of these things:
- sanity checks to make sure we actually don't have a1 installed, just in case.
 - a set of stub binaries for commands such as `automate-ctl`; StartTestHarness puts these in the PATH
 - a stub A1 API HTTP server.
 
These components generally support invoking failure modes by setting the `FAILURE` environment variable to a value as defined in a1upgrade/upgrade.go
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.