Raise exception when command called by run_bosh fails.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
CompiledPackageInserter now creates the blob.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
make importing compiled packages idempotent

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
remove compiled package blob on database failure

this commit makes a best effort to remove the blob if we fail to insert
the object id into the database

Signed-off-by: Brian Cunnie <cunnie@pivotallabs.com>
unit-ish tests for import_compiled_packages job

Signed-off-by: Brian Cunnie <cunnie@pivotallabs.com>
blobstore client is responsible for generating the id

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
test of import_compiled_packages doesn't rely on passed-in options

Passed-in options exercises different code path, making testing
more fragile.  Now we test one code path.

Signed-off-by: Brian Cunnie <cunnie@pivotallabs.com>