Skip to content

Commit

Permalink
test: change Vault version name to avoid confusion
Browse files Browse the repository at this point in the history
Signed-off-by: András Jáky <[email protected]>
  • Loading branch information
akijakya committed Sep 7, 2023
1 parent 188a0c8 commit 605465b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/apis/vault/v1alpha1/vault_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
func TestGetVersion(t *testing.T) {
t.Run("Good", func(t *testing.T) {
tests := []string{
"hashicorp/vault:1.14.0",
"hashicorp/vault:1.14",
"my.local.proxy/hashicorp/vault:1.14.0",
"my.local.proxy:5000/hashicorp/vault:1.14.0",
"bank-vaults/my-vault:1.2.3",
"bank-vaults/my-vault:1.2",
"my.local.proxy/bank-vaults/my-vault:1.2.3",
"my.local.proxy:5000/bank-vaults/my-vault:1.2.3",
}

for _, tt := range tests {
Expand All @@ -45,9 +45,9 @@ func TestGetVersion(t *testing.T) {

t.Run("Bad", func(t *testing.T) {
tests := []string{
"hashicorp/vault",
"hashicorp/vault:latest",
"hashicorp/vault:my-custom-build",
"bank-vaults/my-vault",
"bank-vaults/my-vault:latest",
"bank-vaults/my-vault:my-custom-build",
}

for _, tt := range tests {
Expand Down

0 comments on commit 605465b

Please sign in to comment.