talos

Форк
0
/
version_test.go 
34 строки · 859.0 Байт
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4

5
//go:build integration
6

7
// Package integration_test contains core runners for integration tests
8
package integration_test
9

10
import (
11
	"github.com/stretchr/testify/suite"
12

13
	"github.com/siderolabs/talos/internal/integration/base"
14
)
15

16
// VersionSuite.
17
type VersionSuite struct {
18
	suite.Suite
19
	base.TalosSuite
20
}
21

22
func (suite *VersionSuite) SuiteName() string {
23
	return "VersionSuite"
24
}
25

26
func (suite *VersionSuite) TestExpectedVersion() {
27
	const versionRegex = `v([0-9]+)\.([0-9]+)\.([0-9]+)(-[0-9]+-[a-z]+\.[0-9]+)?(-.g[a-f0-9]+)?(-dirty)?`
28

29
	suite.Assert().Regexp(versionRegex, suite.Version)
30
}
31

32
func init() {
33
	allSuites = append(allSuites, new(VersionSuite))
34
}
35

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.