Skip to content

Commit

Permalink
TMP: Debug integation tests
Browse files Browse the repository at this point in the history
Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
  • Loading branch information
Billy99 committed Jun 14, 2024
1 parent 2fee248 commit a09d130
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
git diff --exit-code -I'^ createdAt: ' bundle
kubernetes-integration-tests:
name: Kubernetes Integration Tests (Go ${{ matrix.go }} - amd64)
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ test-integration: ## Run Integration tests.
$(SED) -e 's@bpfman\.image=.*@bpfman.image=$(BPFMAN_IMG)@' \
-e 's@bpfman\.agent\.image=.*@bpfman.agent.image=$(BPFMAN_AGENT_IMG)@' \
kustomization.yaml.env > kustomization.yaml
cd config/bpfman-deployment && cat config.yaml
docker pull $(BPFMAN_IMG)
docker images
GOFLAGS="-tags=integration_tests" go test -race -v ./test/integration/...

## The physical bundle is no longer tracked in git since it should be considered
Expand Down
2 changes: 1 addition & 1 deletion config/test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ resources:
images:
- name: quay.io/bpfman/bpfman-operator
newName: quay.io/bpfman/bpfman-operator
newTag: int-test-amd64
newTag: int-test
2 changes: 1 addition & 1 deletion config/test/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: config
namespace: kube-system
data:
bpfman.agent.image: quay.io/bpfman/bpfman-agent:int-test-amd64
bpfman.agent.image: quay.io/bpfman/bpfman-agent:int-test
bpfman.image: quay.io/bpfman/bpfman:latest
bpfman.log.level: bpfman=debug
bpfman.agent.log.level: debug
2 changes: 2 additions & 0 deletions test/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ func TestMain(m *testing.M) {
// changes prior to the tests and fed them to the test suite.
if bpfmanAgentImage == "" || bpfmanOperatorImage == "" {
exitOnErr(fmt.Errorf("BPFMAN_AGENT_IMG, and BPFMAN_OPERATOR_IMG must be provided"))
} else {
fmt.Printf("INFO: using bpfmanAgentImage=%s and bpfmanOperatorImage=%s\n", bpfmanAgentImage, bpfmanOperatorImage)
}

ctx, cancel = context.WithCancel(context.Background())
Expand Down

0 comments on commit a09d130

Please sign in to comment.