mirror of
https://github.com/containers/podman.git
synced 2025-07-11 08:01:04 +08:00
build(deps): bump github.com/onsi/gomega from 1.27.5 to 1.27.6
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.5 to 1.27.6. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.27.5...v1.27.6) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
2
go.mod
2
go.mod
@ -43,7 +43,7 @@ require (
|
|||||||
github.com/moby/term v0.0.0-20221120202655-abb19827d345
|
github.com/moby/term v0.0.0-20221120202655-abb19827d345
|
||||||
github.com/nxadm/tail v1.4.8
|
github.com/nxadm/tail v1.4.8
|
||||||
github.com/onsi/ginkgo v1.16.5
|
github.com/onsi/ginkgo v1.16.5
|
||||||
github.com/onsi/gomega v1.27.5
|
github.com/onsi/gomega v1.27.6
|
||||||
github.com/opencontainers/go-digest v1.0.0
|
github.com/opencontainers/go-digest v1.0.0
|
||||||
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b
|
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b
|
||||||
github.com/opencontainers/runc v1.1.4
|
github.com/opencontainers/runc v1.1.4
|
||||||
|
4
go.sum
4
go.sum
@ -797,8 +797,8 @@ github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoT
|
|||||||
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.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc=
|
github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc=
|
||||||
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
|
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
|
||||||
github.com/onsi/gomega v1.27.5 h1:T/X6I0RNFw/kTqgfkZPcQ5KU6vCnWNBGdtrIx2dpGeQ=
|
github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE=
|
||||||
github.com/onsi/gomega v1.27.5/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
|
github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
|
||||||
github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
||||||
github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
||||||
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
||||||
|
8
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
8
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
@ -1,3 +1,11 @@
|
|||||||
|
## 1.27.6
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Allow collections matchers to work correctly when expected has nil elements [60e7cf3]
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
- updates MatchError godoc comment to also accept a Gomega matcher (#654) [67b869d]
|
||||||
|
|
||||||
## 1.27.5
|
## 1.27.5
|
||||||
|
|
||||||
### Maintenance
|
### Maintenance
|
||||||
|
2
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
2
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
@ -22,7 +22,7 @@ import (
|
|||||||
"github.com/onsi/gomega/types"
|
"github.com/onsi/gomega/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const GOMEGA_VERSION = "1.27.5"
|
const GOMEGA_VERSION = "1.27.6"
|
||||||
|
|
||||||
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
||||||
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
||||||
|
11
vendor/github.com/onsi/gomega/matchers.go
generated
vendored
11
vendor/github.com/onsi/gomega/matchers.go
generated
vendored
@ -87,14 +87,17 @@ func Succeed() types.GomegaMatcher {
|
|||||||
return &matchers.SucceedMatcher{}
|
return &matchers.SucceedMatcher{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchError succeeds if actual is a non-nil error that matches the passed in string/error.
|
// MatchError succeeds if actual is a non-nil error that matches the passed in
|
||||||
|
// string, error, or matcher.
|
||||||
//
|
//
|
||||||
// These are valid use-cases:
|
// These are valid use-cases:
|
||||||
//
|
//
|
||||||
// Expect(err).Should(MatchError("an error")) //asserts that err.Error() == "an error"
|
// Expect(err).Should(MatchError("an error")) //asserts that err.Error() == "an error"
|
||||||
// Expect(err).Should(MatchError(SomeError)) //asserts that err == SomeError (via reflect.DeepEqual)
|
// Expect(err).Should(MatchError(SomeError)) //asserts that err == SomeError (via reflect.DeepEqual)
|
||||||
|
// Expect(err).Should(MatchError(ContainsSubstring("sprocket not found"))) // asserts that edrr.Error() contains substring "sprocket not found"
|
||||||
//
|
//
|
||||||
// It is an error for err to be nil or an object that does not implement the Error interface
|
// It is an error for err to be nil or an object that does not implement the
|
||||||
|
// Error interface
|
||||||
func MatchError(expected interface{}) types.GomegaMatcher {
|
func MatchError(expected interface{}) types.GomegaMatcher {
|
||||||
return &matchers.MatchErrorMatcher{
|
return &matchers.MatchErrorMatcher{
|
||||||
Expected: expected,
|
Expected: expected,
|
||||||
|
29
vendor/github.com/onsi/gomega/matchers/consist_of.go
generated
vendored
29
vendor/github.com/onsi/gomega/matchers/consist_of.go
generated
vendored
@ -48,11 +48,13 @@ func neighbours(value, matcher interface{}) (bool, error) {
|
|||||||
|
|
||||||
func equalMatchersToElements(matchers []interface{}) (elements []interface{}) {
|
func equalMatchersToElements(matchers []interface{}) (elements []interface{}) {
|
||||||
for _, matcher := range matchers {
|
for _, matcher := range matchers {
|
||||||
equalMatcher, ok := matcher.(*EqualMatcher)
|
if equalMatcher, ok := matcher.(*EqualMatcher); ok {
|
||||||
if ok {
|
elements = append(elements, equalMatcher.Expected)
|
||||||
matcher = equalMatcher.Expected
|
} else if _, ok := matcher.(*BeNilMatcher); ok {
|
||||||
|
elements = append(elements, nil)
|
||||||
|
} else {
|
||||||
|
elements = append(elements, matcher)
|
||||||
}
|
}
|
||||||
elements = append(elements, matcher)
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -72,11 +74,13 @@ func flatten(elems []interface{}) []interface{} {
|
|||||||
|
|
||||||
func matchers(expectedElems []interface{}) (matchers []interface{}) {
|
func matchers(expectedElems []interface{}) (matchers []interface{}) {
|
||||||
for _, e := range flatten(expectedElems) {
|
for _, e := range flatten(expectedElems) {
|
||||||
matcher, isMatcher := e.(omegaMatcher)
|
if e == nil {
|
||||||
if !isMatcher {
|
matchers = append(matchers, &BeNilMatcher{})
|
||||||
matcher = &EqualMatcher{Expected: e}
|
} else if matcher, isMatcher := e.(omegaMatcher); isMatcher {
|
||||||
|
matchers = append(matchers, matcher)
|
||||||
|
} else {
|
||||||
|
matchers = append(matchers, &EqualMatcher{Expected: e})
|
||||||
}
|
}
|
||||||
matchers = append(matchers, matcher)
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -89,9 +93,14 @@ func presentable(elems []interface{}) interface{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sv := reflect.ValueOf(elems)
|
sv := reflect.ValueOf(elems)
|
||||||
tt := sv.Index(0).Elem().Type()
|
firstEl := sv.Index(0)
|
||||||
|
if firstEl.IsNil() {
|
||||||
|
return elems
|
||||||
|
}
|
||||||
|
tt := firstEl.Elem().Type()
|
||||||
for i := 1; i < sv.Len(); i++ {
|
for i := 1; i < sv.Len(); i++ {
|
||||||
if sv.Index(i).Elem().Type() != tt {
|
el := sv.Index(i)
|
||||||
|
if el.IsNil() || (sv.Index(i).Elem().Type() != tt) {
|
||||||
return elems
|
return elems
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -698,7 +698,7 @@ github.com/onsi/ginkgo/reporters/stenographer
|
|||||||
github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable
|
github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable
|
||||||
github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty
|
github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty
|
||||||
github.com/onsi/ginkgo/types
|
github.com/onsi/ginkgo/types
|
||||||
# github.com/onsi/gomega v1.27.5
|
# github.com/onsi/gomega v1.27.6
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/onsi/gomega
|
github.com/onsi/gomega
|
||||||
github.com/onsi/gomega/format
|
github.com/onsi/gomega/format
|
||||||
|
Reference in New Issue
Block a user