File tree Expand file tree Collapse file tree 1 file changed +2
-31
lines changed Expand file tree Collapse file tree 1 file changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -14,40 +14,12 @@ declare CLIENT_SECRET
14
14
readonly DEFAULT_ORG=" test"
15
15
readonly DEFAULT_SPACE=" development"
16
16
17
- DEPLOYMENT_DIRECTORY=" $( mktemp -d) "
18
- readonly DEPLOYMENT_DIRECTORY
19
-
20
17
discover_environment () {
21
- local env_name
22
- env_name=$( jq -r .name < " ${METADATA_FILE} " )
23
-
24
18
eval " $( bbl print-env --metadata-file " ${METADATA_FILE} " ) "
25
19
26
20
CF_API_HOST=" $( jq -r .cf.api_url < " ${METADATA_FILE} " ) "
27
- CF_PASSWORD=" $( credhub get -n " /bosh-${env_name} /cf/cf_admin_password" -q) "
28
- CLIENT_SECRET=" $( credhub get -n " /bosh-${env_name} /cf/uaa_admin_client_secret" -q) "
29
- }
30
-
31
- prepare_cf_deployment () {
32
- pushd " $DEPLOYMENT_DIRECTORY " > /dev/null
33
-
34
- bosh --deployment cf manifest > manifest.yml
35
-
36
- cat << EOF >ops.yml
37
- - type: replace
38
- path: /instance_groups/name=diego-cell/vm_type
39
- value: large
40
- - type: replace
41
- path: /instance_groups/name=router/vm_type
42
- value: large
43
- - type: replace
44
- path: /instance_groups/name=api/vm_type
45
- value: large
46
- EOF
47
-
48
- bosh --non-interactive --deployment cf deploy --ops-file ops.yml manifest.yml
49
-
50
- popd > /dev/null
21
+ CF_PASSWORD=" $( credhub get -n " /bosh-lite/cf/cf_admin_password" -q) "
22
+ CLIENT_SECRET=" $( credhub get -n " /bosh-lite/cf/uaa_admin_client_secret" -q) "
51
23
}
52
24
53
25
prepare_cf () {
@@ -98,7 +70,6 @@ main() {
98
70
99
71
echo " Running tests against ${CF_API_HOST} "
100
72
echo
101
- prepare_cf_deployment
102
73
prepare_cf
103
74
104
75
run_tests
You can’t perform that action at this time.
0 commit comments