From d79c547a09d8e3b954ef1d7305fcfa9e7968fbb5 Mon Sep 17 00:00:00 2001 From: Jeremiah Orem Date: Tue, 25 Feb 2014 21:53:53 -0800 Subject: [PATCH] feat(omaha): add GroupId support --- fixtures/update-engine/update/request.xml | 2 +- omaha/omaha.go | 1 + omaha/omaha_test.go | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fixtures/update-engine/update/request.xml b/fixtures/update-engine/update/request.xml index f413143..4de4f15 100644 --- a/fixtures/update-engine/update/request.xml +++ b/fixtures/update-engine/update/request.xml @@ -1,7 +1,7 @@ - + diff --git a/omaha/omaha.go b/omaha/omaha.go index 5bf8091..5a9de97 100644 --- a/omaha/omaha.go +++ b/omaha/omaha.go @@ -85,6 +85,7 @@ type App struct { // coreos update engine extensions BootId string `xml:"bootid,attr,omitempty"` + GroupId string `xml:"groupid,attr,omitempty"` PreviousBootId string `xml:"previousbootid,attr,omitempty"` Oem string `xml:"oem,attr,omitempty"` } diff --git a/omaha/omaha_test.go b/omaha/omaha_test.go index 2cecac8..2b590ca 100644 --- a/omaha/omaha_test.go +++ b/omaha/omaha_test.go @@ -28,6 +28,10 @@ func TestOmahaRequestUpdateCheck(t *testing.T) { t.Error("Expected an App Id") } + if v.Apps[0].GroupId != "{82D95689-3BA3-46A1-87D2-17B3FFF85988}" { + t.Error("Expected a Group Id") + } + if v.Apps[0].BootId != "{7D52A1CC-7066-40F0-91C7-7CB6A871BFDE}" { t.Error("Expected a Boot Id") }