Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ukff committed Sep 23, 2024
1 parent 8df70ff commit 76aebfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/broker/instance_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,12 +816,15 @@ func TestLabelChangeWhenMovingSubaccount(t *testing.T) {
cr.SetGroupVersionKind(gvk)
cr.SetName(name)
cr.SetNamespace(KymaNamespace)

labels := cr.GetLabels()
assert.Empty(t, labels)

existingLabels := make(map[string]string)
existingLabels[k8s.GlobalAccountIdLabel] = oldGlobalAccountId
existingLabels["foo"] = "bar"
cr.SetLabels(existingLabels)

labels = cr.GetLabels()
assert.Len(t, cr.GetLabels(), 2)
assert.Equal(t, oldGlobalAccountId, labels[k8s.GlobalAccountIdLabel])
Expand All @@ -845,7 +848,7 @@ func TestLabelChangeWhenMovingSubaccount(t *testing.T) {
tFunc(t, iid, k8s.GardenerClusterCr)
})

t.Run("RuntimeCrs hould have correct and new global account id", func(t *testing.T) {
t.Run("RuntimeCr hould have correct and new global account id", func(t *testing.T) {
tFunc(t, iid, k8s.RuntimeCr)
})
}

0 comments on commit 76aebfa

Please sign in to comment.