/go-konveyor-tests

Primary LanguageGoApache License 2.0Apache-2.0

Golang API test suite for Konveyor

API tests on Quay License contributions welcome

API CI Test Suite End-To-End Test Suite

This repository contains application-level tests for Konveyor. That means test focusing on integration of multiple components and real-world Koveyor use-cases. Basic components tests should be placed and executed in their own repositories.

Test are organized in packages/directories by the high-level Konveyor features.

Tests require running Konveyor/MTA installation (e.g. Minikube works great for test development purposes).

Contribution guidelines

Background for this test suite come from Hub API tests konveyor/tackle2-hub#268.

Application Analysis integration test example: https://github.com/konveyor/tackle2-hub/blob/main/test/integration/applications-inventory/analysis/windup_basic_test.go

Full hub provided test "framework": https://github.com/konveyor/tackle2-hub/pull/268/files#diff-fcd2bf711a00447192da2d46171f15d0bb6302397b523e0ba92ac9f61bbb8ff7

Local test suite execution

Clone this repo

git clone https://github.com/aufi/go-konveyor-tests && cd go-konveyor-tests

Prepare environment

$ make setup # start minikube&tackle using David's scripts - local env only

Run test suite

$ make test

Run test manually example:

$ export HUB_BASE_URL="http://`minikube ip`/hub"
$ go test -v analysis/windup_basic_test.go

Konveyor CI status

Component CI (after merge) Nightly (cron)
Hub Hub main Hub Test Suite
UI UI test -
Addon Windup Test Windup Addon -
E2E API API CI Test Suite API End-To-End Test Suite
E2E UI UI E2E test UI E2E test

Code of Conduct

Refer to Konveyor's Code of Conduct here.