diff --git a/remotes/docker/handler_test.go b/remotes/docker/handler_test.go index e0864123c..6909f0053 100644 --- a/remotes/docker/handler_test.go +++ b/remotes/docker/handler_test.go @@ -65,3 +65,10 @@ func TestAppendDistributionLabel(t *testing.T) { } } } + +func TestDistributionSourceLabelKey(t *testing.T) { + expected := "containerd.io/distribution.source.testsource" + if got := distributionSourceLabelKey("testsource"); !reflect.DeepEqual(got, expected) { + t.Fatalf("expected %v, but got %v", expected, got) + } +}