Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ updates:
time: '11:00'
open-pull-requests-limit: 10
target-branch: "v7"
vendor: true
3 changes: 0 additions & 3 deletions .github/workflows/release-update-repos.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "Release: Update Repositories"

on:
push:
branches: "v*"

workflow_dispatch:
inputs:
build_version:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests-integration-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "version=$version" >> $GITHUB_OUTPUT

- name: Checkout cf-deployment Min CAPI
if: ${{ inputs.capi-version != 'edge' }}
if: inputs.capi-version != 'edge'
uses: actions/checkout@v3
with:
repository: cloudfoundry/cf-deployment
Expand All @@ -61,7 +61,7 @@ jobs:

- name: Checkout cf-deployment
uses: actions/checkout@v3
if: ${{ inputs.capi-version == 'edge' }}
if: inputs.capi-version == 'edge'
with:
repository: cloudfoundry/cf-deployment
path: cf-deployment
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
credhub --version

- name: Deploy edge CAPI with Isolation Segment and OIDC Provider
if: ${{ inputs.capi-version == 'edge' }}
if: inputs.capi-version == 'edge'
env:
CF_INT_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
run: |
Expand All @@ -161,7 +161,7 @@ jobs:
bosh -d cf releases | grep capi

- name: Deploy MIN CAPI with Isolation Segment and OIDC Provider
if: ${{ inputs.capi-version != 'edge' }}
if: inputs.capi-version != 'edge'
run: |
# TODO: Make this actually deploy min capi
# Creates vars files
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
check-latest: true

- name: Run Integration Tests
if: ${{ !inputs.run-with-client-creds }}
if: !inputs.run-with-client-creds
run: |
ENV=$(cat metadata.json | jq -r '.name')
eval "$(bbl print-env --metadata-file ./metadata.json)"
Expand All @@ -244,7 +244,7 @@ jobs:
make integration-tests-full-ci

- name: Run Integration Tests with client credentials
if: ${{ inputs.run-with-client-creds }}
if: inputs.run-with-client-creds
env:
CF_INT_CLIENT_ID: 'potato-face'
CF_INT_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
run-integration-tests-cf-env-with-edge-capi:
name: Integration tests with EDGE CAPI
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
uses: ./.github/workflows/tests-integration-reusable.yml
with:
capi-version: edge
Expand All @@ -22,7 +22,7 @@ jobs:

run-integration-tests-cf-env-with-edge-capi-with-client-creds:
name: EDGE CAPI and client creds
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
uses: ./.github/workflows/tests-integration-reusable.yml
with:
capi-version: edge
Expand All @@ -33,7 +33,7 @@ jobs:

run-integration-tests-cf-env-with-min-capi:
name: MIN CAPI
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
uses: ./.github/workflows/tests-integration-reusable.yml
with:
capi-version: min
Expand All @@ -44,7 +44,7 @@ jobs:

#run-integration-windows:
# name: Windows
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
# if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
# uses: ./.github/workflows/tests-integration-reusable.yml
# with:
# capi-version: edge
Expand All @@ -55,7 +55,7 @@ jobs:

#run-integration-windows-client-credentials:
# name: Windows with client credentials
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
# if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
# uses: ./.github/workflows/tests-integration-reusable.yml
# with:
# capi-version: edge
Expand Down
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

14 changes: 6 additions & 8 deletions integration/helpers/fake_data.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package helpers

import (
"embed"
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"

. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"
"net/http"
)

//go:embed fixtures
var content embed.FS

// AddFiftyOneOrgs adds a mock handler to the given server which returns
// 51 orgs on GET requests to /v3/organizations?order_by=name. It also
// paginates, so page 2 can be requested with /v3/organizations?page=2&per_page=50.
Expand Down Expand Up @@ -81,9 +81,7 @@ func AddEmptyPaginatedResponse(server *ghttp.Server, path string) {
}

func fixtureData(name string) []byte {
wd := os.Getenv("GOPATH")
fp := filepath.Join(wd, "src", "code.cloudfoundry.org", "cli", "integration", "helpers", "fixtures", name)
b, err := ioutil.ReadFile(fp)
b, err := content.ReadFile("fixtures/" + name)
Expect(err).ToNot(HaveOccurred())
return b
}