github.com/arunkumar7540/cli@v6.45.0+incompatible/ci/cli-v7/tasks/integration-linux.yml (about)

     1  ---
     2  platform: linux
     3  
     4  image_resource:
     5    type: docker-image
     6    source:
     7      repository: cfcli/cli-base
     8  
     9  inputs:
    10  - name: cli
    11  - name: cli-integration
    12    path: go/src/code.cloudfoundry.org/cli
    13  - name: cf-cli-binaries
    14  - name: bosh-lock
    15  - name: vars-store
    16  
    17  params:
    18    CF_CLI_EXPERIMENTAL: false
    19    CF_INT_CLIENT_ID:
    20    CF_INT_CLIENT_SECRET:
    21    CF_INT_DOCKER_IMAGE:
    22    CF_INT_DOCKER_USERNAME:
    23    CF_INT_DOCKER_PASSWORD:
    24    CF_INT_IGNORE_API_VERSION_CHECK:
    25    FLAKE_ATTEMPTS: 2
    26    TAGS: 'V7'
    27    NODES: 16
    28  
    29  run:
    30    path: bash
    31    args:
    32    - -c
    33    - |
    34      set -e
    35  
    36      ENV=$(cat bosh-lock/name | cut -d "." -f 1)
    37      export SSL_CERT_DIR=/tmp/cert_dir
    38      mkdir -p $SSL_CERT_DIR
    39  
    40      if [[ $ENV == "homeroom" ]]; then
    41        export CF_INT_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password)
    42        export CF_INT_OIDC_USERNAME="admin"
    43        export CF_INT_OIDC_PASSWORD=$CF_INT_PASSWORD
    44      else
    45        pushd vars-store/ci/infrastructure/$ENV
    46          eval "$(bbl print-env)"
    47        popd
    48  
    49        credhub login
    50        export CF_INT_PASSWORD=$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)
    51  
    52        export CF_INT_OIDC_USERNAME="admin-oidc"
    53        export CF_INT_OIDC_PASSWORD=$(credhub get -n /bosh-$ENV/cf/uaa_oidc_admin_password | bosh interpolate --path /value -)
    54        credhub get --name /bosh-$ENV/cf/router_ca | bosh interpolate - --path /value/certificate > $SSL_CERT_DIR/$ENV.router.ca
    55        bosh interpolate vars-store/ci/infrastructure/$ENV/bbl-state.json --path /lb/cert > $SSL_CERT_DIR/$ENV.lb.cert
    56      fi
    57  
    58      export SKIP_SSL_VALIDATION=false
    59  
    60      set -x
    61  
    62      domain=$(cat bosh-lock/name)
    63      export CF_INT_API="https://api.${domain}"
    64      export CF_DIAL_TIMEOUT=15
    65  
    66      export GOPATH=$PWD/go
    67      export PATH=$GOPATH/bin:$PATH
    68  
    69      pushd cf-cli-binaries
    70        tar xvzf cf-cli-binaries.tgz
    71        chmod +x cf7-cli_linux_x86-64
    72        mkdir -p $GOPATH/bin
    73        mv cf7-cli_linux_x86-64 $GOPATH/bin/cf
    74      popd
    75  
    76      cd $GOPATH/src/code.cloudfoundry.org/cli
    77  
    78      go get -u github.com/onsi/ginkgo/ginkgo
    79  
    80      ginkgo -r -nodes="$NODES" -tags="$TAGS" -flakeAttempts="$FLAKE_ATTEMPTS" -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/isolated integration/v7/isolated integration/shared/plugin integration/shared/experimental integration/v7/experimental integration/v7/push
    81      ginkgo -r -tags="$TAGS" -flakeAttempts="$FLAKE_ATTEMPTS" -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/global integration/v7/global