Skip to content

Commit

Permalink
use consts so tests auto-update
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kriss <[email protected]>
  • Loading branch information
skriss committed Jan 9, 2025
1 parent b217223 commit 956361f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/provisioner/controller/gatewayclass_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func TestGatewayClassReconcile(t *testing.T) {
// contrived way to cause this scenario.
Name: "gatewayclasses-wrong.gateway.networking.k8s.io",
Annotations: map[string]string{
"gateway.networking.k8s.io/bundle-version": "v1.2.1",
gatewayAPIBundleVersionAnnotation: gatewayAPICRDBundleSupportedVersion,
},
},
},
Expand Down Expand Up @@ -589,7 +589,7 @@ func TestGatewayClassReconcile(t *testing.T) {
ObjectMeta: meta_v1.ObjectMeta{
Name: "gatewayclasses.gateway.networking.k8s.io",
Annotations: map[string]string{
"gateway.networking.k8s.io/bundle-version-wrong": "v1.2.1",
"gateway.networking.k8s.io/bundle-version-wrong": gatewayAPICRDBundleSupportedVersion,
},
},
},
Expand Down Expand Up @@ -676,7 +676,7 @@ func TestGatewayClassReconcile(t *testing.T) {
ObjectMeta: meta_v1.ObjectMeta{
Name: "gatewayclasses.gateway.networking.k8s.io",
Annotations: map[string]string{
"gateway.networking.k8s.io/bundle-version": "v1.2.1",
gatewayAPIBundleVersionAnnotation: gatewayAPICRDBundleSupportedVersion,
},
},
})
Expand Down

0 comments on commit 956361f

Please sign in to comment.