diff --git a/pkg/client/client.go b/pkg/client/client.go index ca9a65c..9e86aa3 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -41,6 +41,8 @@ type Deployment struct { RequestedPackages []string `json:"requested-packages"` RequestedBaseRemovals []string `json:"requested-base-removals"` Unlocked *string `json:"unlocked"` + + BaseCommitMeta map[string]interface{} `json:"base-commit-meta"` } // Client is a handle for interacting with an rpm-ostree based system. diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 3fdf436..dba9267 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -103,6 +103,12 @@ func TestParseFcosWithOverrides(t *testing.T) { firstDeploy := s.Deployments[0] assert.Equal(t, firstDeploy.RequestedBaseRemovals[0], "moby-engine") + + stream, ok := s.Deployments[0].BaseCommitMeta["fedora-coreos.stream"] + if !ok { + t.Error("Missing stream") + } + assert.Equal(t, stream, "stable") } func TestParseDeploymentError(t *testing.T) {