From 8f70643d57021f298dc00fd3ea9dfb07cbecf72d Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Thu, 3 Oct 2019 11:53:18 -0700 Subject: [PATCH] tests: Remove hardcoded annotation value. Fix test by removing hardcoded annotation key. Use the annotation package instead. Signed-off-by: Archana Shinde --- virtcontainers/api_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtcontainers/api_test.go b/virtcontainers/api_test.go index b037b85489..a190c5409f 100644 --- a/virtcontainers/api_test.go +++ b/virtcontainers/api_test.go @@ -16,6 +16,7 @@ import ( "testing" ktu "github.com/kata-containers/runtime/pkg/katatestutils" + "github.com/kata-containers/runtime/virtcontainers/pkg/annotations" "github.com/kata-containers/runtime/virtcontainers/pkg/mock" vcTypes "github.com/kata-containers/runtime/virtcontainers/pkg/types" "github.com/kata-containers/runtime/virtcontainers/store" @@ -69,7 +70,7 @@ func newBasicTestCmd() types.Cmd { func newTestSandboxConfigNoop() SandboxConfig { bundlePath := filepath.Join(testDir, testBundle) - containerAnnotations["com.github.containers.virtcontainers.pkg.oci.bundle_path"] = bundlePath + containerAnnotations[annotations.BundlePathKey] = bundlePath // containerAnnotations["com.github.containers.virtcontainers.pkg.oci.container_type"] = "pod_sandbox" emptySpec := newEmptySpec()