feat(omaha): add oem and previousbootid
Add two new extensions for coreos
This commit is contained in:
parent
5ad4a72076
commit
ddc4c22205
3 changed files with 12 additions and 2 deletions
|
@ -84,7 +84,9 @@ type App struct {
|
|||
FromTrack string `xml:"from_track,attr,omitempty"`
|
||||
|
||||
// coreos update engine extensions
|
||||
BootId string `xml:"bootid,attr,omitempty"`
|
||||
BootId string `xml:"bootid,attr,omitempty"`
|
||||
PreviousBootId string `xml:"previousbootid,attr,omitempty"`
|
||||
Oem string `xml:"oem,attr,omitempty"`
|
||||
}
|
||||
|
||||
func NewApp(id string) *App {
|
||||
|
|
|
@ -32,6 +32,14 @@ func TestOmahaRequestUpdateCheck(t *testing.T) {
|
|||
t.Error("Expected a Boot Id")
|
||||
}
|
||||
|
||||
if v.Apps[0].PreviousBootId != "{8BDE4C4D-9083-4D61-B41C-3253212C0C37}" {
|
||||
t.Error("Expected a Previous Boot Id")
|
||||
}
|
||||
|
||||
if v.Apps[0].Oem != "ec3000" {
|
||||
t.Error("Expected an OEM")
|
||||
}
|
||||
|
||||
if v.Apps[0].UpdateCheck == nil {
|
||||
t.Error("Expected an UpdateCheck")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue