Merge pull request #7 from philips/add-track-extension

Add track extension
This commit is contained in:
Brandon Philips 2013-07-02 09:53:22 -07:00
commit c2c4ee6b06
3 changed files with 9 additions and 2 deletions

View file

@ -77,8 +77,11 @@ type App struct {
Lang string `xml:"lang,attr,omitempty"`
Client string `xml:"client,attr,omitempty"`
InstallAge string `xml:"installage,attr,omitempty"`
FromTrack string `xml:"from_track,attr,omitempty"`
Status string `xml:"status,attr,omitempty"`
// update engine extensions
Track string `xml:"track,attr,omitempty"`
FromTrack string `xml:"from_track,attr,omitempty"`
}
func NewApp(id string) *App {

View file

@ -40,6 +40,10 @@ func TestOmahaRequestUpdateCheck(t *testing.T) {
t.Error("developer-build")
}
if v.Apps[0].Track != "dev-channel" {
t.Error("dev-channel")
}
if v.Apps[0].Events[0].Type != "3" {
t.Error("developer-build")
}