Skip to content

Commit 37173b1

Browse files
author
Per Goncalves da Silva
committed
fix unit test error strings
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
1 parent bfbe0b3 commit 37173b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/controllers/clusterextension_admission_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestClusterExtensionSourceConfig(t *testing.T) {
7272
}
7373

7474
func TestClusterExtensionAdmissionPackageName(t *testing.T) {
75-
tooLongError := "spec.source.catalog.packageName: Too long: may not be longer than 253"
75+
tooLongError := "spec.source.catalog.packageName: Too long: may not be more than 253"
7676
regexMismatchError := "packageName must be a valid DNS1123 subdomain"
7777

7878
testCases := []struct {
@@ -129,7 +129,7 @@ func TestClusterExtensionAdmissionPackageName(t *testing.T) {
129129
}
130130

131131
func TestClusterExtensionAdmissionVersion(t *testing.T) {
132-
tooLongError := "spec.source.catalog.version: Too long: may not be longer than 64"
132+
tooLongError := "spec.source.catalog.version: Too long: may not be more than 64"
133133
regexMismatchError := "invalid version expression"
134134

135135
testCases := []struct {
@@ -227,7 +227,7 @@ func TestClusterExtensionAdmissionVersion(t *testing.T) {
227227
}
228228

229229
func TestClusterExtensionAdmissionChannel(t *testing.T) {
230-
tooLongError := "spec.source.catalog.channels[0]: Too long: may not be longer than 253"
230+
tooLongError := "spec.source.catalog.channels[0]: Too long: may not be more than 253"
231231
regexMismatchError := "channels entries must be valid DNS1123 subdomains"
232232

233233
testCases := []struct {
@@ -282,7 +282,7 @@ func TestClusterExtensionAdmissionChannel(t *testing.T) {
282282
}
283283

284284
func TestClusterExtensionAdmissionInstallNamespace(t *testing.T) {
285-
tooLongError := "spec.namespace: Too long: may not be longer than 63"
285+
tooLongError := "spec.namespace: Too long: may not be more than 63"
286286
regexMismatchError := "namespace must be a valid DNS1123 label"
287287

288288
testCases := []struct {
@@ -335,7 +335,7 @@ func TestClusterExtensionAdmissionInstallNamespace(t *testing.T) {
335335
}
336336

337337
func TestClusterExtensionAdmissionServiceAccount(t *testing.T) {
338-
tooLongError := "spec.serviceAccount.name: Too long: may not be longer than 253"
338+
tooLongError := "spec.serviceAccount.name: Too long: may not be more than 253"
339339
regexMismatchError := "name must be a valid DNS1123 subdomain"
340340

341341
testCases := []struct {

0 commit comments

Comments
 (0)