mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-10 08:37:03 +02:00
This starts with a very simple test for `osctl version` using regexps as output of the command depends a lot on current version. We might use more of 'gold' matches for other commands potentially. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
// +build integration
|
|
|
|
// Package base provides shared definition of base suites for tests
|
|
package base
|
|
|
|
// TalosSuite defines most common settings for integration test suites
|
|
type TalosSuite struct {
|
|
// Target is address of master node, if not set config is used
|
|
Target string
|
|
// TalosConfig is a path to talosconfig
|
|
TalosConfig string
|
|
// Version is the (expected) version of Talos tests are running against
|
|
Version string
|
|
// OsctlPath is path to osctl binary
|
|
OsctlPath string
|
|
}
|
|
|
|
// ConfiguredSuite expects config to be set before running
|
|
type ConfiguredSuite interface {
|
|
SetConfig(config TalosSuite)
|
|
}
|
|
|
|
// SetConfig implements ConfiguredSuite
|
|
func (suite *TalosSuite) SetConfig(config TalosSuite) {
|
|
*suite = config
|
|
}
|
|
|
|
// NamedSuite interface provides names for test suites
|
|
type NamedSuite interface {
|
|
SuiteName() string
|
|
}
|