Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Remove integration tests from Hub repo #419

Merged
merged 1 commit into from
Jun 30, 2023
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
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.