Skip to content

Commit 18d9dd3

Browse files
committed
fix: added no operator metadatas tests
1 parent ca72eb9 commit 18d9dd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

constraints_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ func TestConstraintsCheck(t *testing.T) {
309309
{"= 2.0", "1.2.3", false},
310310
{"= 2.0", "2.0.0", true},
311311
{"4.1", "4.1.0", true},
312+
{"4.1", "4.1.3+alpha", true},
312313
{"4.1.x", "4.1.3", true},
314+
{"4.1.x", "4.1.3+alpha", true},
315+
{"4.1.3", "4.1.3+alpha", true},
313316
{"1.x", "1.4", true},
314317
{"!=4.1", "4.1.0", false},
315318
{"!=4.1-alpha", "4.1.0-alpha", false},
@@ -493,7 +496,10 @@ func TestConstraintsValidate(t *testing.T) {
493496
{"= 2.0", "1.2.3", false},
494497
{"= 2.0", "2.0.0", true},
495498
{"4.1", "4.1.0", true},
499+
{"4.1", "4.1.3+alpha", true},
496500
{"4.1.x", "4.1.3", true},
501+
{"4.1.x", "4.1.3+alpha", true},
502+
{"4.1.3", "4.1.3+alpha", true},
497503
{"1.x", "1.4", true},
498504
{"!=4.1", "4.1.0", false},
499505
{"!=4.1", "5.1.0", true},

0 commit comments

Comments
 (0)