Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
upgrade to latest dependencies (#700)
Browse files Browse the repository at this point in the history
bumping knative.dev/networking ca2ffb8...2002961:
  > 2002961 🎁  Add test flags for the conformance suite (# 960)

Signed-off-by: Knative Automation <[email protected]>
  • Loading branch information
knative-automation authored Apr 10, 2024
1 parent 791c15e commit 1013dc1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
k8s.io/apimachinery v0.29.2
k8s.io/client-go v0.29.2
knative.dev/hack v0.0.0-20240404013450-1133b37da8d7
knative.dev/networking v0.0.0-20240409134343-ca2ffb806de2
knative.dev/networking v0.0.0-20240410133143-200296131672
knative.dev/pkg v0.0.0-20240409141558-1ff9a77566f6
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCf
k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
knative.dev/hack v0.0.0-20240404013450-1133b37da8d7 h1:fkWYWvdHm1mVHevKW2vVJnZtxH0NzOlux8imesweKwE=
knative.dev/hack v0.0.0-20240404013450-1133b37da8d7/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/networking v0.0.0-20240409134343-ca2ffb806de2 h1:Sjr1rJ97ow6ipuLSGnR2EZFcVnwMRdVpjgMzVdGvv/U=
knative.dev/networking v0.0.0-20240409134343-ca2ffb806de2/go.mod h1:m9aH65g5JGuwhH6moqAmF0+X6PvIQwElVx5dw2+jDno=
knative.dev/networking v0.0.0-20240410133143-200296131672 h1:BGHRJN0RzLbB+HMUUUDWLd5ShzLRl+Pk1OV6mMQCqCs=
knative.dev/networking v0.0.0-20240410133143-200296131672/go.mod h1:m9aH65g5JGuwhH6moqAmF0+X6PvIQwElVx5dw2+jDno=
knative.dev/pkg v0.0.0-20240409141558-1ff9a77566f6 h1:jJVStFc+y8c7veKYDyQFwQTod+w5pzZqopz/nLH2dJo=
knative.dev/pkg v0.0.0-20240409141558-1ff9a77566f6/go.mod h1:ZWUA+Z6zFI93VyExtnH0P5JtVQ0TvWpKvbxtFvmRJ9I=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// TestSecret verifies that a certificate creates a secret
func TestSecret(t *testing.T) {
ctx, clients := context.Background(), test.Setup(t)
certName := test.ObjectNameForTest(t) + ".example.com"
certName := test.ObjectNameForTest(t) + "." + test.NetworkingFlags.ServiceDomain

cert := utils.CreateCertificate(ctx, t, clients, []string{certName})

Expand Down
12 changes: 12 additions & 0 deletions vendor/knative.dev/networking/test/e2e_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ type NetworkingEnvironmentFlags struct {
EnableBetaFeatures bool // Indicates whether we run tests for beta features
SkipTests string // Indicates the test names we want to skip in alpha or beta features.
ClusterSuffix string // Specifies the cluster DNS suffix to be used in tests.
ServiceDomain string // Specifies the domain to use when creating the test services.
RequestDelay int // Specifies delay in Seconds before the client tries to dial the service
}

func initializeNetworkingFlags() *NetworkingEnvironmentFlags {
Expand Down Expand Up @@ -100,5 +102,15 @@ func initializeNetworkingFlags() *NetworkingEnvironmentFlags {
"cluster.local",
"Set this flag to the cluster suffix to be used in tests.")

flag.StringVar(&f.ServiceDomain,
"service-domain",
"example.com",
"Set this flag to the domain to be used in tests.")

flag.IntVar(&f.RequestDelay,
"request-delay",
0,
"Set this flag to the number of seconds to wait before calling the service.")

return &f
}
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ k8s.io/utils/trace
# knative.dev/hack v0.0.0-20240404013450-1133b37da8d7
## explicit; go 1.18
knative.dev/hack
# knative.dev/networking v0.0.0-20240409134343-ca2ffb806de2
# knative.dev/networking v0.0.0-20240410133143-200296131672
## explicit; go 1.21
knative.dev/networking/config
knative.dev/networking/pkg/apis/networking
Expand Down

0 comments on commit 1013dc1

Please sign in to comment.