Skip to content

Commit 0edefe6

Browse files
committed
Fix updateInternalCatalog namespace bug
Signed-off-by: Vu Dinh <[email protected]>
1 parent ce57ad1 commit 0edefe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/subscription_e2e_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ func updateInternalCatalog(t *testing.T, c operatorclient.ClientInterface, crc v
14911491
require.NoError(t, err)
14921492

14931493
// Get initial configmap
1494-
configMap, err := c.KubernetesInterface().CoreV1().ConfigMaps(testNamespace).Get(fetchedInitialCatalog.Spec.ConfigMap, metav1.GetOptions{})
1494+
configMap, err := c.KubernetesInterface().CoreV1().ConfigMaps(namespace).Get(fetchedInitialCatalog.Spec.ConfigMap, metav1.GetOptions{})
14951495
require.NoError(t, err)
14961496

14971497
// Update package to point to new csv
@@ -1515,11 +1515,11 @@ func updateInternalCatalog(t *testing.T, c operatorclient.ClientInterface, crc v
15151515
configMap.Data[registry.ConfigMapCSVName] = string(csvsRaw)
15161516

15171517
// Update configmap
1518-
_, err = c.KubernetesInterface().CoreV1().ConfigMaps(testNamespace).Update(configMap)
1518+
_, err = c.KubernetesInterface().CoreV1().ConfigMaps(namespace).Update(configMap)
15191519
require.NoError(t, err)
15201520

15211521
// wait for catalog to update
1522-
_, err = fetchCatalogSource(t, crc, catalogSourceName, testNamespace, func(catalog *v1alpha1.CatalogSource) bool {
1522+
_, err = fetchCatalogSource(t, crc, catalogSourceName, namespace, func(catalog *v1alpha1.CatalogSource) bool {
15231523
before := fetchedInitialCatalog.Status.ConfigMapResource
15241524
after := catalog.Status.ConfigMapResource
15251525
if after != nil && after.LastUpdateTime.After(before.LastUpdateTime.Time) && after.ResourceVersion != before.ResourceVersion {

0 commit comments

Comments
 (0)