Make default release fixture contain custom labels to make tests check that labels are not lost

Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
pull/10533/head
Dmitry Chepurovskiy 4 years ago committed by Dmitry Chepurovskiy
parent 68721de93d
commit 2f29ccb9d0
No known key found for this signature in database
GPG Key ID: 5B3A5FDCBFF9B3A4

@ -40,6 +40,10 @@ func releaseStub(name string, vers int, namespace string, status rspb.Status) *r
Version: vers, Version: vers,
Namespace: namespace, Namespace: namespace,
Info: &rspb.Info{Status: status}, Info: &rspb.Info{Status: status},
Labels: map[string]string{
"k1": "v1",
"k2": "v2",
},
} }
} }

@ -104,10 +104,5 @@ func filterSystemLabels(lbs map[string]string) map[string]string {
result[k] = v result[k] = v
} }
} }
// Workaround to make tests work while labels storage is not implemented for SQL storage driver
if len(result) == 0 {
return nil
}
return result return result
} }

Loading…
Cancel
Save