Skip to content

How to Run and Deploy IATs

hnandiwada edited this page Aug 16, 2019 · 2 revisions
  1. Download the IATs repo.
  2. Ask networking team for an environment with Istio already deployed.
  3. Deploy new CAPI: a. Download bosh manifest: bosh -d manifest > /tmp/cf-manifest.yml b. In /tmp/cf-manifest.yml: update /releases/capi/version to be "latest" c. In the capi-releasedirectory:
    • bosh create-release --force --version=1.83.4+<something>
    • bosh upload-release
    • bosh -d cf deploy /tmp/cf-manifest.yml --no-redact
  4. Get CF admin password from credhub: a. Search for credential: credhub g -n cf_admin_password b. With the credential name: credhub g -n /bosh-<bosh_env_name>/cf/cf_admin_password
  5. Make a config.json file using thecf_admin_password from step 3 and the domains found in bosh-manifest.yml:
    cat << EOF > "${PWD}/config.json"
    {
    	"cf_system_domain": "bosh-lite.com",
    	"cf_admin_user": "admin",
    	"cf_admin_password": <cf_admin_password>,
    	"cf_internal_apps_domain": "apps.internal",
    	"cf_internal_istio_domain": "istio.apps.internal",
    	"cf_istio_domain": "istio.<system_domain>",
    	"product_page_docker_tag": "cfrouting/examples-bookinfo-productpage-v1:latest",
    	"reviews_docker_tag": "cfrouting/examples-bookinfo-reviews-v3:latest",
    	"ratings_docker_tag": "istio/examples-bookinfo-ratings-v1:1.5.0",
    	"details_docker_tag": "istio/examples-bookinfo-details-v1:1.5.0",
    	"wildcard_ca": "<envoy_wildcard_ca.ca>"
    }
    EOF
    
  6. Download chromedriver and make sure it is in your PATH
  7. In the CF incubator, change "cf" to "cf6" as shown below:
    func CfWithCustomReporter(cmdStarter Starter, reporter Reporter, args ...string) *gexec.Session {
    	request, err := cmdStarter.Start(reporter, "cf6", args...)
    	if err != nil {
    		panic(err)
    	}
    	return request
    }
    
  8. Run CONFIG="$PWD/config.json" scripts/test

At this point, the IATs should be able to run successfully.

Clone this wiki locally