Skip to content

Commit 6a9f041

Browse files
committed
Remove integration tests from Hub repo
Integration E2E tests using API are now in https://github.com/konveyor/go-konveyor-tests those are executed using global CI workflows. Related to: - konveyor#310 - konveyor#418 Signed-off-by: Marek Aufart <[email protected]>
1 parent 908a0a3 commit 6a9f041

File tree

5 files changed

+4
-175
lines changed

5 files changed

+4
-175
lines changed

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,8 @@ test:
131131
test-api:
132132
HUB_BASE_URL=${HUB_BASE_URL} go test -count=1 -v ./test/api/...
133133

134-
# Run Hub API integration tests.
135-
test-integration:
136-
HUB_BASE_URL=${HUB_BASE_URL} go test -count=1 -v ./test/integration/...
137-
138134
# Run Hub test suite.
139-
test-all: test-unit test-api test-integration
135+
test-all: test-unit test-api
140136

141137
migration:
142138
hack/next-migration.sh

test/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
Hub tests consist of following parts:
44
- Unit tests ```$ make test```
55
- REST API tests ```$ make test-api```
6-
- Integration tests ```$ make test-integration```
7-
- WIP Export/import tests
86

97
All tests can be executed with ```$ make test-all``` which will run all available tests.
108

9+
For API E2E / integration tests, refer to https://github.com/konveyor/go-konveyor-tests
10+
1111
## General information
1212

1313
- Tests are written in golang to fit well to the Konveyor project components.
1414
- Each test is responsible for setup its test data and clean it when finished.
1515
- The main way of interacting with Hub is its API, to make testing easier, following tools are provided:
1616
- ```RichClient``` from [binding](https://github.com/konveyor/tackle2-hub/tree/main/binding) package that provides methods working with Hub resources (like ```RichClient.Application.Create(&testApp)```). This is a preffered option.
17-
- ```addon.Client``` provides API methods like Get/Post/etc. it can be accessed from ```RichClient.Client()```
17+
- ```addon.Client``` provides API methods like Get/Post/etc. it can be accessed from ```RichClient.Client```
1818
- ```test/assertion``` package provides Should/Must and other equality assertions.
1919
- Hub's ```API``` package provides predefined routes and resources struct definition.
2020

test/integration/README.md

-5
This file was deleted.

test/integration/applications-inventory/analysis/pkg.go

-59
This file was deleted.

test/integration/applications-inventory/analysis/windup_basic_test.go

-103
This file was deleted.

0 commit comments

Comments
 (0)