| 1 | The mod push command before these asserts doesn't specify 'revision' and
|
| 2 | 'source' annotations. In this case, timoni will infer the annotations from the
|
| 3 | git metadata the module is in. We don't build the package in a git repo, so the
|
| 4 | module ends up in the registry with these annotations undefined.
|
| 5 |
|
| 6 | diff --git a/cmd/timoni/mod_push_test.go b/cmd/timoni/mod_push_test.go
|
| 7 | index 14f5b4f..945df85 100644
|
| 8 | |
| 9 | |
| 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."))
|