Skip to content

Commit

Permalink
Cleans integration test
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Diego Gonzalez <gojuan@vmware.com>
  • Loading branch information
Juan Diego Gonzalez committed Dec 16, 2022
1 parent db8b4bc commit d75e4fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/cf-env-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ jobs:
repository: cloudfoundry/cf-deployment-concourse-tasks
path: cf-deployment-concourse-tasks

- name: Checkout cli
uses: actions/checkout@v3
with:
repository: cloudfoundry/cli
path: cli
ref: linux-min-capi-int-test

- name: Install Tools
run: |
wget https://github.com/cloudfoundry/bosh-bootloader/releases/download/v8.4.110/bbl-v8.4.110_linux_x86-64 -P /tmp
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/run-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: cli
- name: Set Up Go
uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -52,6 +54,8 @@ jobs:
- name: Run Integration Tests
if: ${{ !inputs.run-with-client-creds }}
run: |
mkdir -p go/src/code.cloudfoundry.org
ln -s ${PWD}/cli go/src/code.cloudfoundry.org
ENV=$(cat metadata.json | jq -r '.name')
eval "$(bbl print-env --metadata-file ./metadata.json)"
export CF_INT_PASSWORD="$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)"
Expand All @@ -64,21 +68,25 @@ jobs:
export NODES=16
export GOPATH=$PWD/go
export PATH=$GOPATH/bin:$PATH
go install github.com/onsi/ginkgo/ginkgo@v1.16.4
cd $GOPATH/src/code.cloudfoundry.org/cli
go install github.com/onsi/ginkgo/ginkgo@v1.16.4
make build
export PATH="$(pwd)/out:$PATH"
export CF_PASSWORD=${CF_INT_PASSWORD}
cf api ${CF_INT_API} --skip-ssl-validation
cf auth
make integration-tests-full-ci
- name: Run Integration Tests with client credentials
if: ${{ inputs.run-with-client-creds }}
env:
CF_INT_CLIENT_ID: 'potato-face'
CF_INT_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
run: |
mkdir -p go/src/code.cloudfoundry.org
ln -s ${PWD}/cli go/src/code.cloudfoundry.org
ENV=$(cat metadata.json | jq -r '.name')
eval "$(bbl print-env --metadata-file ./metadata.json)"
export CF_INT_PASSWORD="$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)"
Expand All @@ -91,11 +99,14 @@ jobs:
export NODES=16
export GOPATH=$PWD/go
export PATH=$GOPATH/bin:$PATH
cd $GOPATH/src/code.cloudfoundry.org/cli
go install github.com/onsi/ginkgo/ginkgo@v1.16.4
make build
export PATH="$(pwd)/out:$PATH"
export CF_PASSWORD=${CF_INT_PASSWORD}
cf api ${CF_INT_API} --skip-ssl-validation
cf auth
make integration-tests-full-ci

0 comments on commit d75e4fa

Please sign in to comment.