projects/aports·blob master · refs

18 lines · 1.1 KiB

1The mod push command before these asserts doesn't specify 'revision' and
2'source' annotations. In this case, timoni will infer the annotations from the
3git metadata the module is in. We don't build the package in a git repo, so the
4module ends up in the registry with these annotations undefined.
5
6diff --git a/cmd/timoni/mod_push_test.go b/cmd/timoni/mod_push_test.go
7index 14f5b4f..945df85 100644
8--- a/cmd/timoni/mod_push_test.go
9+++ b/cmd/timoni/mod_push_test.go
10@@ -61,8 +61,6 @@ func Test_PushMod(t *testing.T) {
11
12 // Verify that annotations exist in manifest
13 g.Expect(manifest.Annotations[apiv1.CreatedAnnotation]).ToNot(BeEmpty())
14- g.Expect(manifest.Annotations[apiv1.RevisionAnnotation]).ToNot(BeEmpty())
15- g.Expect(manifest.Annotations[apiv1.SourceAnnotation]).To(ContainSubstring("github.com"))
16 g.Expect(manifest.Annotations[apiv1.VersionAnnotation]).To(BeEquivalentTo(modVer))
17 g.Expect(manifest.Annotations["org.opencontainers.image.licenses"]).To(BeEquivalentTo("Apache-2.0"))
18 g.Expect(manifest.Annotations["org.opencontainers.image.description"]).To(BeEquivalentTo("My, test."))