Fix: fix compatibility test

This commit is contained in:
yangsoon
2021-11-22 23:21:17 +08:00
parent 395b594b84
commit 6dff9ab679
2 changed files with 2 additions and 2 deletions
@@ -209,7 +209,7 @@ func (a *AppManifestsDispatcher) retrieveLegacyResourceTrackers(ctx context.Cont
oldRtList := &v1beta1.ResourceTrackerList{}
if err := a.c.List(ctx, oldRtList, client.MatchingLabels{
oam.LabelAppName: ExtractAppName(a.currentRTName, a.namespace),
"app.oam.dev/namespace": a.namespace,
"app.oam.dev/namesapce": a.namespace,
}); err != nil {
return errors.Wrap(err, "cannot retrieve legacy resource trackers with miss-spell label")
}
@@ -495,7 +495,7 @@ var _ = Describe("Test compatibility code", func() {
ObjectMeta: metav1.ObjectMeta{
Name: appName + "-v2-" + namespaceName,
Labels: map[string]string{
"app.oam.dev/namespace": namespaceName,
"app.oam.dev/namesapce": namespaceName,
oam.LabelAppName: appName,
},
},