Skip to content

Commit

Permalink
fix: Downstream tests (#1727)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha authored Jul 10, 2023
1 parent 42a4363 commit c4188e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/deploy/migration/checluster-defaults-cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func TestCheClusterDefaultsCleanerOpenVSXURL(t *testing.T) {
expectedOpenVSXURL: pointer.StringPtr("https://bla-bla-bla"),
},
{
name: "Case #2",
name: "Case #3",
cheCluster: &chev2.CheCluster{
ObjectMeta: metav1.ObjectMeta{
Name: "eclipse-che",
Expand All @@ -392,15 +392,16 @@ func TestCheClusterDefaultsCleanerOpenVSXURL(t *testing.T) {
Spec: chev2.CheClusterSpec{
Components: chev2.CheClusterComponents{
PluginRegistry: chev2.PluginRegistry{
OpenVSXURL: pointer.StringPtr(""),
OpenVSXURL: pointer.String(""),
},
},
},
Status: chev2.CheClusterStatus{
CheVersion: "next",
},
},
expectedOpenVSXURL: pointer.StringPtr(""),
// Make it works in downstream as well
expectedOpenVSXURL: map[bool]*string{true: nil, false: pointer.String("")}[defaults.GetPluginRegistryOpenVSXURL() == ""],
},
}

Expand Down

0 comments on commit c4188e1

Please sign in to comment.