#!/bin/bash
set -e -x

cd /var/vcap/packages/acceptance-tests

export GOROOT=/var/vcap/packages/golang
export PATH=/var/vcap/packages/cli/bin:$GOROOT/bin:$PWD/bin:$PATH
export CONFIG=$PWD/integration_config.json

cat > integration_config.json <<EOF
{
  "api_url":       "<%= p('cf.api_url') %>",
  "apps_domain":   "<%= p('cf.apps_domain') %>",
  "admin_user":    "<%= p('cf.admin_username') %>",
  "broker_host":   "<%= p('broker.host') %>",
  "service_name":  "<%= p('service.name') %>",
  "plans": [
  <% plans = p('service.plans')
  plans.each do |plan| %>
    {
      "plan_name": "<%= plan['plan_name'] %>",
      "max_storage_mb": <%= plan['max_storage_mb'] %>
  <% if plan != plans.last %>
    },
  <% else %>
    }
  <% end
  end%>
  ],
  "skip_ssl_validation": <%= p('cf.skip_ssl_validation') %>,
  "max_user_connections": <%= p('mysql.max_user_connections') %>,
  "storage_capacity_mb": <%= p('mysql.storage_capacity_mb') %>,
EOF

# don't expose passwords
set +x

cat >> integration_config.json <<EOF
  "admin_password":   "<%= p('cf.admin_password') %>"
}
EOF

set -x

bin/test

#!/bin/bash
set -e -x

cd /var/vcap/packages/acceptance-tests

export GOROOT=/var/vcap/packages/golang
export PATH=/var/vcap/packages/cli/bin:$GOROOT/bin:$PWD/bin:$PATH
export CONFIG=$PWD/integration_config.json

cat > integration_config.json <<EOF
{
  "api_url":       "<%= p('cf.api_url') %>",
  "apps_domain":   "<%= p('cf.apps_domain') %>",
  "admin_user":    "<%= p('cf.admin_username') %>",
  "broker_host":   "<%= p('broker.host') %>",
  "service_name":  "<%= p('service.name') %>",
  "plans": [
  <% plans = p('service.plans')
  plans.each do |plan| %>
    {
      "plan_name": "<%= plan['plan_name'] %>",
      "max_storage_mb": <%= plan['max_storage_mb'] %>
  <% if plan != plans.last %>
    },
  <% else %>
    }
  <% end
  end%>
  ],
  "skip_ssl_validation": <%= p('cf.skip_ssl_validation') %>,
  "max_user_connections": <%= p('mysql.max_user_connections') %>,
EOF

# don't expose passwords
set +x

cat >> integration_config.json <<EOF
  "admin_password":   "<%= p('cf.admin_password') %>"
}
EOF

set -x

bin/test

Remove unused storage_capacity_mb from integration config
Remove unused storage_capacity_mb from integration config

Removed from the script which generates it

[#74071960]
