Skip to content

Commit

Permalink
adjust e2e test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
amritanshusikdar committed Oct 23, 2024
1 parent 80ee9fd commit 399dbcc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/e2e/create/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ package create_test
import (
"io/fs"
"os"
"strings"

"k8s.io/apimachinery/pkg/util/yaml"
"ocm.software/ocm/api/ocm"
"ocm.software/ocm/api/ocm/compdesc"
ocmv1 "ocm.software/ocm/api/ocm/compdesc/meta/v1"
"ocm.software/ocm/api/ocm/compdesc/versions/v2"
v2 "ocm.software/ocm/api/ocm/compdesc/versions/v2"
"ocm.software/ocm/api/ocm/extensions/accessmethods/github"
"ocm.software/ocm/api/ocm/extensions/accessmethods/localblob"
"ocm.software/ocm/api/ocm/extensions/accessmethods/ociartifact"
Expand Down Expand Up @@ -218,6 +219,10 @@ var _ = Describe("Test 'create' command", Ordered, func() {
Expect(descriptor).ToNot(BeNil())
Expect(descriptor.SchemaVersion()).To(Equal(v2.SchemaVersion))

descriptorSplit := strings.Split(descriptor.Name, "/")
descriptorName := descriptorSplit[len(descriptorSplit)-1]
Expect(template.Name).To(Equal(descriptorName + "-" + descriptor.Version))

By("And annotations should be correct")
annotations := template.Annotations
Expect(annotations[shared.ModuleVersionAnnotation]).To(Equal("1.0.0"))
Expand Down

0 comments on commit 399dbcc

Please sign in to comment.