github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/cli/tasks/integration-experimental-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    path: go/src/code.cloudfoundry.org/cli
    12  - name: cf-cli-binaries
    13  - name: bosh-lock
    14  - name: vars-store
    15  
    16  params:
    17    CF_INT_CLIENT_ID:
    18    CF_INT_CLIENT_SECRET:
    19    CF_INT_CLIENT_CREDENTIALS_TEST_MODE: false
    20    CF_INT_DOCKER_IMAGE:
    21    CF_INT_DOCKER_USERNAME:
    22    CF_INT_DOCKER_PASSWORD:
    23    CF_INT_IGNORE_API_VERSION_CHECK: false
    24  
    25  run:
    26    path: bash
    27    args:
    28    - -c
    29    - |
    30      set -e
    31  
    32      ENV=$(cat bosh-lock/name | cut -d "." -f 1)
    33      export SSL_CERT_DIR=/tmp/cert_dir
    34      mkdir -p $SSL_CERT_DIR
    35  
    36      pushd vars-store/ci/infrastructure/$ENV
    37        eval "$(bbl print-env)"
    38  
    39        bosh int bbl-state.json --path /lb/cert > $SSL_CERT_DIR/$ENV.lb.cert
    40      popd
    41  
    42      credhub login
    43      export CF_INT_PASSWORD=$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)
    44      credhub get --name /bosh-$ENV/cf/router_ca | bosh interpolate - --path /value/certificate > $SSL_CERT_DIR/$ENV.router.ca
    45  
    46      set -x
    47  
    48      domain=$(cat bosh-lock/name)
    49      export CF_INT_API="https://api.${domain}"
    50      export CF_DIAL_TIMEOUT=15
    51      export SKIP_SSL_VALIDATION=false
    52  
    53      export GOPATH=$PWD/go
    54      export PATH=$GOPATH/bin:$PATH
    55  
    56      go get -u github.com/onsi/ginkgo/ginkgo
    57  
    58      export RUN_ID=$(openssl rand -hex 16)
    59  
    60      pushd cf-cli-binaries
    61        tar xvzf cf-cli-binaries.tgz
    62        chmod +x cf-cli_linux_x86-64
    63        mv cf-cli_linux_x86-64 $GOPATH/bin/cf
    64      popd
    65  
    66      echo "CF_INT_CLIENT_CREDENTIALS_TEST_MODE: $CF_INT_CLIENT_CREDENTIALS_TEST_MODE"
    67  
    68      cd $GOPATH/src/code.cloudfoundry.org/cli
    69      ginkgo -r -nodes=16 -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/experimental integration/v6/experimental