-
Notifications
You must be signed in to change notification settings - Fork 881
tests: use appc schema instead of string templates #3520
tests: use appc schema instead of string templates #3520
Conversation
Can one of the admins verify this patch? |
ok to test |
return NewACI(dir, manifest, nil) | ||
manifest := schema.ImageManifest{ | ||
ACKind: schema.ImageManifestKind, | ||
ACVersion: SpecVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appc version labels use to be updated via a script. Can we turn this back into a string and use NewSemVer()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean, the SpecVersion
variable, like this:
var SpecVersion, _ = types.NewSemVer("0.8.9")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sorry if I was a bit cryptic.
@ybubnov thank you very much for this PR. Just a minor request to make the version label manageable by script, otherwise looks fine 👍. |
@jonboulle is there anything else missing from #714 after this? |
Seems good to me! |
Addressed the review comments and squashed the changes into the single commit. |
Ah, I forgot about |
This patch introduces a new package "pkg/aci/acitest" used to set the default parameters to the application container image manifest (precisely: name, version, kind). It replaces the strings templates used to mock the manifest's JSON to the types from "github.com/appc/schema" go-package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and thanks a lot for the cleanup!
This patch introduces a new package "pkg/aci/acitest" used to set the
default parameters to the application container image manifest
(precisely: name, version, kind).
It replaces the strings templates used to mock the manifest's JSON to
the types from "github.com/appc/schema" go-package.
Fixes #714