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 18d9dd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions constraints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ 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},
{"4.1.3", "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 +496,10 @@ 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},
{"4.1.3", "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 18d9dd3

Please sign in to comment.