Skip to content

Commit 8fe7073

Browse files
authored
Migrate v3 integration tests to dryrun tests (#3193)
* Migrate v3 integration tests to dryrun tests
1 parent b55a4f7 commit 8fe7073

30 files changed

+674
-10054
lines changed

.cursor/rules/code-quality-checks.mdc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ make vet
3535

3636
# Run unit tests
3737
make unit-tests
38-
39-
# Run integration tests
40-
make test-integration
4138
```
4239

4340
## Pre-commit Checklist

.cursor/rules/project-overview.mdc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ make build-ttl.sh
4444
# Run unit tests
4545
make unit-tests
4646

47-
# Run integration tests
48-
make test-integration
49-
5047
# Run end-to-end tests
5148
make e2e-tests
5249

.github/workflows/ci.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,12 @@ jobs:
122122
name: Integration tests
123123
runs-on: ubuntu-latest
124124
needs:
125-
- int-tests-api
126125
- int-tests-kind
127126
- int-tests-kind-ha-registry
128127
- int-tests-kind-ha-registry-disable-hashi-raft
129128
if: ${{ !cancelled() }}
130129
steps:
131130
# https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context
132-
- name: fail if int-tests-api job was not successful
133-
if: needs.int-tests-api.result != 'success' && needs.int-tests-api.result != 'skipped'
134-
run: exit 1
135131
- name: fail if int-tests-kind job was not successful
136132
if: needs.int-tests-kind.result != 'success' && needs.int-tests-kind.result != 'skipped'
137133
run: exit 1
@@ -144,21 +140,6 @@ jobs:
144140
- name: succeed if everything else passed
145141
run: echo "Integration tests succeeded"
146142

147-
int-tests-api:
148-
name: Integration tests (api)
149-
runs-on: ubuntu-latest
150-
steps:
151-
- name: Checkout
152-
uses: actions/checkout@v5
153-
- name: Setup go
154-
uses: actions/setup-go@v6
155-
with:
156-
go-version-file: go.mod
157-
cache-dependency-path: "**/*.sum"
158-
- name: Run tests
159-
run: |
160-
make test-integration
161-
162143
int-tests-kind:
163144
name: Integration tests (kind)
164145
runs-on: ubuntu-latest

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,6 @@ unit-tests: envtest
289289
$(MAKE) -C operator test
290290
$(MAKE) -C utils unit-tests
291291

292-
.PHONY: test-integration
293-
test-integration: static-dryrun
294-
$(MAKE) -C api test-integration
295-
296292
.PHONY: vet
297293
vet:
298294
go vet -tags $(GO_BUILD_TAGS) ./...

api/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ swag:
1515
.PHONY: unit-tests
1616
unit-tests:
1717
go test -race -tags $(GO_BUILD_TAGS) -v $(shell go list ./... | grep -v '/integration')
18-
19-
.PHONY: test-integration
20-
test-integration:
21-
go test -race -tags $(GO_BUILD_TAGS) -v ./integration/...

0 commit comments

Comments
 (0)