weldr: add missing arguments to constructor calls

In the test we don't need to serialize the state, so pass nil to
the costructor.
This commit is contained in:
Tom Gundersen 2019-09-24 01:09:30 +02:00
parent da887a43fb
commit 3533597dde

View file

@ -111,13 +111,13 @@ func TestBasic(t *testing.T) {
}
for _, c := range cases {
api := weldr.New(repo, packages, nil)
api := weldr.New(repo, packages, nil, nil, nil)
testRoute(t, api, "GET", c.Path, ``, c.ExpectedStatus, c.ExpectedJSON)
}
}
func TestBlueprints(t *testing.T) {
api := weldr.New(repo, packages, nil)
api := weldr.New(repo, packages, nil, nil, nil)
testRoute(t, api, "POST", "/api/v0/blueprints/new",
`{"name":"test","description":"Test","packages":[{"name":"httpd","version":"2.4.*"}],"version":"0"}`,