22#
33# ci/scripts/testflight
44#
5- # Script for testing a BOSH release using bosh2
5+ # Script for testing a BOSH release using bosh
66#
77# author: James Hunt <[email protected] >88
6666
6767
6868header " Cleaning up from any previous deployments..."
69- bosh2 -n delete-deployment
69+ bosh -n delete-deployment
7070
7171header " Creating candidate BOSH release..."
72- bosh2 -n reset-release # in case dev_releases/ is in repo accidentally
72+ bosh -n reset-release # in case dev_releases/ is in repo accidentally
7373
7474cat > config/private.yml << YAML
7575---
@@ -79,16 +79,16 @@ blobstore:
7979 access_key_id: ${AWS_ACCESS_KEY}
8080 secret_access_key: ${AWS_SECRET_KEY}
8181YAML
82- bosh2 create-release
83- bosh2 upload-release --rebase
82+ bosh create-release
83+ bosh upload-release --rebase
8484
8585header " Deploying to ${BOSH_ENVIRONMENT} ..."
86- release_name=$( bosh2 int config/final.yml --path /final_name)
86+ release_name=$( bosh int config/final.yml --path /final_name)
8787
8888header " Choosing cloud-config options"
89- vm_type=$( bosh2 int <( bosh2 cloud-config) --path /vm_types/0/name)
90- disk_type=$( bosh2 int <( bosh2 cloud-config) --path /disk_types/0/name)
91- network=$( bosh2 int <( bosh2 cloud-config) --path /networks/0/name)
89+ vm_type=$( bosh int <( bosh cloud-config) --path /vm_types/0/name)
90+ disk_type=$( bosh int <( bosh cloud-config) --path /disk_types/0/name)
91+ network=$( bosh int <( bosh cloud-config) --path /networks/0/name)
9292
9393release_final_version=$( spruce json dev_releases/* /index.yml | jq -r " .builds[].version" | sed -e " s%+.*%%" )
9494release_dev_version=" ${release_final_version} .latest"
@@ -129,30 +129,30 @@ done
129129
130130set -x
131131
132- bosh2 int ${MANIFEST_PATH} \
132+ bosh int ${MANIFEST_PATH} \
133133 -o tmp/deployment.yml \
134134 ${op_patch_files_flags} \
135135 --vars-store tmp/creds.yml \
136136 --vars-file tmp/vars.yml \
137137 --var-errs \
138138 > tmp/manifest.yml
139139
140- bosh2 -n deploy tmp/manifest.yml
140+ bosh -n deploy tmp/manifest.yml
141141
142142TEST_ERRAND=${TEST_ERRAND:- } # backwards compatibility
143143TEST_ERRANDS=${TEST_ERRANDS:- $TEST_ERRAND }
144144if [[ -n ${TEST_ERRANDS} ]]; then
145145 for errand in ${TEST_ERRANDS} ; do
146146 header " Running '${errand} ' errand"
147- bosh2 -n run-errand ${errand}
147+ bosh -n run-errand ${errand}
148148 done
149149else
150150 echo " No test errands specified, skipping."
151151fi
152152
153153if [[ -z ${SKIP_DELETE_DEPLOYMENT:- } ]]; then
154154 header " Cleaning up after successful deployment..."
155- bosh2 -n delete-deployment
155+ bosh -n delete-deployment
156156else
157157 header " Skipping cleanup of successful deployment."
158158fi
0 commit comments