mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
cac43a1dd0
The test is implemented as a go test. It can be executed as a bazel target. The general workflow is to setup a cluster, point the test to the workspace in which to find the kubeconfig and the constellation config and specify a target image, k8s and service version. The test will succeed if it detects all target versions in the cluster within the configured timeout. The CI automates the above steps. A separate workflow is introduced as there are multiple input fields to the test. Adding all of these to the manual e2e test seemed confusing. Co-authored-by: Fabian Kammel <fk@edgeless.systems>
20 lines
643 B
Go
20 lines
643 B
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
// Package upgrade tests that the CLI's upgrade apply command works as expected and
|
|
// the operators eventually upgrade all nodes inside the cluster.
|
|
// The test is written as a go test because:
|
|
// 1. the helm cli does not directly provide the chart version of a release
|
|
//
|
|
// 2. the image patch needs to be parsed from the image-api's info.json
|
|
//
|
|
// 3. there is some logic required to setup the test correctly:
|
|
//
|
|
// - set microservice, k8s version correctly depending on input
|
|
//
|
|
// - set or fetch measurements depending on target image
|
|
package upgrade
|