Skip to content

Commit

Permalink
fix: added no operator metadatas tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Diliz committed Jun 18, 2024
1 parent ca72eb9 commit 8485a94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions constraints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ func TestConstraintsCheck(t *testing.T) {
{"= 2.0", "1.2.3", false},
{"= 2.0", "2.0.0", true},
{"4.1", "4.1.0", true},
{"4.1", "4.1.3+alpha", true},
{"4.1.x", "4.1.3", true},
{"4.1.x", "4.1.3+alpha", true},
{"1.x", "1.4", true},
{"!=4.1", "4.1.0", false},
{"!=4.1-alpha", "4.1.0-alpha", false},
Expand Down Expand Up @@ -493,7 +495,9 @@ func TestConstraintsValidate(t *testing.T) {
{"= 2.0", "1.2.3", false},
{"= 2.0", "2.0.0", true},
{"4.1", "4.1.0", true},
{"4.1", "4.1.3+alpha", true},
{"4.1.x", "4.1.3", true},
{"4.1.x", "4.1.3+alpha", true},
{"1.x", "1.4", true},
{"!=4.1", "4.1.0", false},
{"!=4.1", "5.1.0", true},
Expand Down

0 comments on commit 8485a94

Please sign in to comment.