chore(deps): bump github.com/onsi/ginkgo/v2 from 2.12.1 to 2.13.0
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.12.1 to 2.13.0. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.12.1...v2.13.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
432ac4bc06
commit
aaf13147be
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ require (
|
|||||||
github.com/container-storage-interface/spec v1.8.0
|
github.com/container-storage-interface/spec v1.8.0
|
||||||
github.com/golang/protobuf v1.5.3
|
github.com/golang/protobuf v1.5.3
|
||||||
github.com/kubernetes-csi/csi-lib-utils v0.9.0
|
github.com/kubernetes-csi/csi-lib-utils v0.9.0
|
||||||
github.com/onsi/ginkgo/v2 v2.12.1
|
github.com/onsi/ginkgo/v2 v2.13.0
|
||||||
github.com/onsi/gomega v1.28.0
|
github.com/onsi/gomega v1.28.0
|
||||||
github.com/pborman/uuid v1.2.1
|
github.com/pborman/uuid v1.2.1
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
4
go.sum
4
go.sum
@ -299,8 +299,8 @@ github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47
|
|||||||
github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk=
|
github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk=
|
||||||
github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0=
|
github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0=
|
||||||
github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo=
|
github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo=
|
||||||
github.com/onsi/ginkgo/v2 v2.12.1 h1:uHNEO1RP2SpuZApSkel9nEh1/Mu+hmQe7Q+Pepg5OYA=
|
github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4=
|
||||||
github.com/onsi/ginkgo/v2 v2.12.1/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
|
github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
|
||||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||||
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
|
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
|
||||||
|
|||||||
6
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
6
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
@ -1,3 +1,9 @@
|
|||||||
|
## 2.13.0
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
Add PreviewSpect() to enable programmatic preview access to the suite report (fixes #1225)
|
||||||
|
|
||||||
## 2.12.1
|
## 2.12.1
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|||||||
94
vendor/github.com/onsi/ginkgo/v2/core_dsl.go
generated
vendored
94
vendor/github.com/onsi/ginkgo/v2/core_dsl.go
generated
vendored
@ -248,31 +248,13 @@ func RunSpecs(t GinkgoTestingT, description string, args ...interface{}) bool {
|
|||||||
exitIfErr(types.GinkgoErrors.RerunningSuite())
|
exitIfErr(types.GinkgoErrors.RerunningSuite())
|
||||||
}
|
}
|
||||||
suiteDidRun = true
|
suiteDidRun = true
|
||||||
|
err := global.PushClone()
|
||||||
suiteLabels := Labels{}
|
if err != nil {
|
||||||
configErrors := []error{}
|
exitIfErr(err)
|
||||||
for _, arg := range args {
|
|
||||||
switch arg := arg.(type) {
|
|
||||||
case types.SuiteConfig:
|
|
||||||
suiteConfig = arg
|
|
||||||
case types.ReporterConfig:
|
|
||||||
reporterConfig = arg
|
|
||||||
case Labels:
|
|
||||||
suiteLabels = append(suiteLabels, arg...)
|
|
||||||
default:
|
|
||||||
configErrors = append(configErrors, types.GinkgoErrors.UnknownTypePassedToRunSpecs(arg))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
exitIfErrors(configErrors)
|
defer global.PopClone()
|
||||||
|
|
||||||
configErrors = types.VetConfig(flagSet, suiteConfig, reporterConfig)
|
suiteLabels := extractSuiteConfiguration(args)
|
||||||
if len(configErrors) > 0 {
|
|
||||||
fmt.Fprintf(formatter.ColorableStdErr, formatter.F("{{red}}Ginkgo detected configuration issues:{{/}}\n"))
|
|
||||||
for _, err := range configErrors {
|
|
||||||
fmt.Fprintf(formatter.ColorableStdErr, err.Error())
|
|
||||||
}
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
var reporter reporters.Reporter
|
var reporter reporters.Reporter
|
||||||
if suiteConfig.ParallelTotal == 1 {
|
if suiteConfig.ParallelTotal == 1 {
|
||||||
@ -308,9 +290,8 @@ func RunSpecs(t GinkgoTestingT, description string, args ...interface{}) bool {
|
|||||||
registerReportAfterSuiteNodeForAutogeneratedReports(reporterConfig)
|
registerReportAfterSuiteNodeForAutogeneratedReports(reporterConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := global.Suite.BuildTree()
|
err = global.Suite.BuildTree()
|
||||||
exitIfErr(err)
|
exitIfErr(err)
|
||||||
|
|
||||||
suitePath, err := os.Getwd()
|
suitePath, err := os.Getwd()
|
||||||
exitIfErr(err)
|
exitIfErr(err)
|
||||||
suitePath, err = filepath.Abs(suitePath)
|
suitePath, err = filepath.Abs(suitePath)
|
||||||
@ -335,6 +316,69 @@ func RunSpecs(t GinkgoTestingT, description string, args ...interface{}) bool {
|
|||||||
return passed
|
return passed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func extractSuiteConfiguration(args []interface{}) Labels {
|
||||||
|
suiteLabels := Labels{}
|
||||||
|
configErrors := []error{}
|
||||||
|
for _, arg := range args {
|
||||||
|
switch arg := arg.(type) {
|
||||||
|
case types.SuiteConfig:
|
||||||
|
suiteConfig = arg
|
||||||
|
case types.ReporterConfig:
|
||||||
|
reporterConfig = arg
|
||||||
|
case Labels:
|
||||||
|
suiteLabels = append(suiteLabels, arg...)
|
||||||
|
default:
|
||||||
|
configErrors = append(configErrors, types.GinkgoErrors.UnknownTypePassedToRunSpecs(arg))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exitIfErrors(configErrors)
|
||||||
|
|
||||||
|
configErrors = types.VetConfig(flagSet, suiteConfig, reporterConfig)
|
||||||
|
if len(configErrors) > 0 {
|
||||||
|
fmt.Fprintf(formatter.ColorableStdErr, formatter.F("{{red}}Ginkgo detected configuration issues:{{/}}\n"))
|
||||||
|
for _, err := range configErrors {
|
||||||
|
fmt.Fprintf(formatter.ColorableStdErr, err.Error())
|
||||||
|
}
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
return suiteLabels
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
PreviewSpecs walks the testing tree and produces a report without actually invoking the specs.
|
||||||
|
See http://onsi.github.io/ginkgo/#previewing-specs for more information.
|
||||||
|
*/
|
||||||
|
func PreviewSpecs(description string, args ...any) Report {
|
||||||
|
err := global.PushClone()
|
||||||
|
if err != nil {
|
||||||
|
exitIfErr(err)
|
||||||
|
}
|
||||||
|
defer global.PopClone()
|
||||||
|
|
||||||
|
suiteLabels := extractSuiteConfiguration(args)
|
||||||
|
priorDryRun, priorParallelTotal, priorParallelProcess := suiteConfig.DryRun, suiteConfig.ParallelTotal, suiteConfig.ParallelProcess
|
||||||
|
suiteConfig.DryRun, suiteConfig.ParallelTotal, suiteConfig.ParallelProcess = true, 1, 1
|
||||||
|
defer func() {
|
||||||
|
suiteConfig.DryRun, suiteConfig.ParallelTotal, suiteConfig.ParallelProcess = priorDryRun, priorParallelTotal, priorParallelProcess
|
||||||
|
}()
|
||||||
|
reporter := reporters.NoopReporter{}
|
||||||
|
outputInterceptor = internal.NoopOutputInterceptor{}
|
||||||
|
client = nil
|
||||||
|
writer := GinkgoWriter.(*internal.Writer)
|
||||||
|
|
||||||
|
err = global.Suite.BuildTree()
|
||||||
|
exitIfErr(err)
|
||||||
|
suitePath, err := os.Getwd()
|
||||||
|
exitIfErr(err)
|
||||||
|
suitePath, err = filepath.Abs(suitePath)
|
||||||
|
exitIfErr(err)
|
||||||
|
|
||||||
|
global.Suite.Run(description, suiteLabels, suitePath, global.Failer, reporter, writer, outputInterceptor, interrupt_handler.NewInterruptHandler(client), client, internal.RegisterForProgressSignal, suiteConfig)
|
||||||
|
|
||||||
|
return global.Suite.GetPreviewReport()
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Skip instructs Ginkgo to skip the current spec
|
Skip instructs Ginkgo to skip the current spec
|
||||||
|
|
||||||
|
|||||||
11
vendor/github.com/onsi/ginkgo/v2/internal/global/init.go
generated
vendored
11
vendor/github.com/onsi/ginkgo/v2/internal/global/init.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
var Suite *internal.Suite
|
var Suite *internal.Suite
|
||||||
var Failer *internal.Failer
|
var Failer *internal.Failer
|
||||||
|
var backupSuite *internal.Suite
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
InitializeGlobals()
|
InitializeGlobals()
|
||||||
@ -15,3 +16,13 @@ func InitializeGlobals() {
|
|||||||
Failer = internal.NewFailer()
|
Failer = internal.NewFailer()
|
||||||
Suite = internal.NewSuite()
|
Suite = internal.NewSuite()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PushClone() error {
|
||||||
|
var err error
|
||||||
|
backupSuite, err = Suite.Clone()
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func PopClone() {
|
||||||
|
Suite = backupSuite
|
||||||
|
}
|
||||||
|
|||||||
6
vendor/github.com/onsi/ginkgo/v2/internal/node.go
generated
vendored
6
vendor/github.com/onsi/ginkgo/v2/internal/node.go
generated
vendored
@ -597,6 +597,12 @@ func (n Node) IsZero() bool {
|
|||||||
/* Nodes */
|
/* Nodes */
|
||||||
type Nodes []Node
|
type Nodes []Node
|
||||||
|
|
||||||
|
func (n Nodes) Clone() Nodes {
|
||||||
|
nodes := make(Nodes, len(n))
|
||||||
|
copy(nodes, n)
|
||||||
|
return nodes
|
||||||
|
}
|
||||||
|
|
||||||
func (n Nodes) CopyAppend(nodes ...Node) Nodes {
|
func (n Nodes) CopyAppend(nodes ...Node) Nodes {
|
||||||
numN := len(n)
|
numN := len(n)
|
||||||
out := make(Nodes, numN+len(nodes))
|
out := make(Nodes, numN+len(nodes))
|
||||||
|
|||||||
24
vendor/github.com/onsi/ginkgo/v2/internal/suite.go
generated
vendored
24
vendor/github.com/onsi/ginkgo/v2/internal/suite.go
generated
vendored
@ -77,6 +77,20 @@ func NewSuite() *Suite {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (suite *Suite) Clone() (*Suite, error) {
|
||||||
|
if suite.phase != PhaseBuildTopLevel {
|
||||||
|
return nil, fmt.Errorf("cnanot clone suite after tree has been built")
|
||||||
|
}
|
||||||
|
return &Suite{
|
||||||
|
tree: &TreeNode{},
|
||||||
|
phase: PhaseBuildTopLevel,
|
||||||
|
ProgressReporterManager: NewProgressReporterManager(),
|
||||||
|
topLevelContainers: suite.topLevelContainers.Clone(),
|
||||||
|
suiteNodes: suite.suiteNodes.Clone(),
|
||||||
|
selectiveLock: &sync.Mutex{},
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (suite *Suite) BuildTree() error {
|
func (suite *Suite) BuildTree() error {
|
||||||
// During PhaseBuildTopLevel, the top level containers are stored in suite.topLevelCotainers and entered
|
// During PhaseBuildTopLevel, the top level containers are stored in suite.topLevelCotainers and entered
|
||||||
// We now enter PhaseBuildTree where these top level containers are entered and added to the spec tree
|
// We now enter PhaseBuildTree where these top level containers are entered and added to the spec tree
|
||||||
@ -328,6 +342,16 @@ func (suite *Suite) CurrentSpecReport() types.SpecReport {
|
|||||||
return report
|
return report
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only valid in the preview context. In general suite.report only includes
|
||||||
|
// the specs run by _this_ node - it is only at the end of the suite that
|
||||||
|
// the parallel reports are aggregated. However in the preview context we run
|
||||||
|
// in series and
|
||||||
|
func (suite *Suite) GetPreviewReport() types.Report {
|
||||||
|
suite.selectiveLock.Lock()
|
||||||
|
defer suite.selectiveLock.Unlock()
|
||||||
|
return suite.report
|
||||||
|
}
|
||||||
|
|
||||||
func (suite *Suite) AddReportEntry(entry ReportEntry) error {
|
func (suite *Suite) AddReportEntry(entry ReportEntry) error {
|
||||||
if suite.phase != PhaseRun {
|
if suite.phase != PhaseRun {
|
||||||
return types.GinkgoErrors.AddReportEntryNotDuringRunPhase(entry.Location)
|
return types.GinkgoErrors.AddReportEntryNotDuringRunPhase(entry.Location)
|
||||||
|
|||||||
2
vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
2
vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
@ -1,3 +1,3 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
const VERSION = "2.12.1"
|
const VERSION = "2.13.0"
|
||||||
|
|||||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -163,7 +163,7 @@ github.com/modern-go/reflect2
|
|||||||
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
||||||
## explicit
|
## explicit
|
||||||
github.com/munnerz/goautoneg
|
github.com/munnerz/goautoneg
|
||||||
# github.com/onsi/ginkgo/v2 v2.12.1
|
# github.com/onsi/ginkgo/v2 v2.13.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/onsi/ginkgo/v2
|
github.com/onsi/ginkgo/v2
|
||||||
github.com/onsi/ginkgo/v2/config
|
github.com/onsi/ginkgo/v2/config
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user