fix: Downstream tests (#1727)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1728/head
Anatolii Bazko 2023-07-10 17:41:24 +02:00 committed by GitHub
parent 42a4363251
commit c4188e10d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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",
@ -392,7 +392,7 @@ func TestCheClusterDefaultsCleanerOpenVSXURL(t *testing.T) {
Spec: chev2.CheClusterSpec{
Components: chev2.CheClusterComponents{
PluginRegistry: chev2.PluginRegistry{
OpenVSXURL: pointer.StringPtr(""),
OpenVSXURL: pointer.String(""),
},
},
},
@ -400,7 +400,8 @@ func TestCheClusterDefaultsCleanerOpenVSXURL(t *testing.T) {
CheVersion: "next",
},
},
expectedOpenVSXURL: pointer.StringPtr(""),
// Make it works in downstream as well
expectedOpenVSXURL: map[bool]*string{true: nil, false: pointer.String("")}[defaults.GetPluginRegistryOpenVSXURL() == ""],
},
}