Skip to content

Commit

Permalink
Remove integration tests from Hub repo
Browse files Browse the repository at this point in the history
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 <maufart@redhat.com>
  • Loading branch information
aufi committed Jun 23, 2023
1 parent 908a0a3 commit 6a9f041
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 175 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,8 @@ test:
test-api:
HUB_BASE_URL=${HUB_BASE_URL} go test -count=1 -v ./test/api/...

# Run Hub API integration tests.
test-integration:
HUB_BASE_URL=${HUB_BASE_URL} go test -count=1 -v ./test/integration/...

# Run Hub test suite.
test-all: test-unit test-api test-integration
test-all: test-unit test-api

migration:
hack/next-migration.sh
Expand Down
6 changes: 3 additions & 3 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
Hub tests consist of following parts:
- Unit tests ```$ make test```
- REST API tests ```$ make test-api```
- Integration tests ```$ make test-integration```
- WIP Export/import tests

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

For API E2E / integration tests, refer to https://github.com/konveyor/go-konveyor-tests

## General information

- Tests are written in golang to fit well to the Konveyor project components.
- Each test is responsible for setup its test data and clean it when finished.
- The main way of interacting with Hub is its API, to make testing easier, following tools are provided:
- ```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.
- ```addon.Client``` provides API methods like Get/Post/etc. it can be accessed from ```RichClient.Client()```
- ```addon.Client``` provides API methods like Get/Post/etc. it can be accessed from ```RichClient.Client```
- ```test/assertion``` package provides Should/Must and other equality assertions.
- Hub's ```API``` package provides predefined routes and resources struct definition.

Expand Down
5 changes: 0 additions & 5 deletions test/integration/README.md

This file was deleted.

59 changes: 0 additions & 59 deletions test/integration/applications-inventory/analysis/pkg.go

This file was deleted.

103 changes: 0 additions & 103 deletions test/integration/applications-inventory/analysis/windup_basic_test.go

This file was deleted.

0 comments on commit 6a9f041

Please sign in to comment.