store: custom image size

When pushing a compose to the store an image size can be included in the
parameters.
This commit is contained in:
Jacob Kozol 2019-12-08 14:11:53 +01:00 committed by Tom Gundersen
parent a86e697171
commit e3d64ea1eb
4 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@ func TestCreate(t *testing.T) {
store := store.New(nil, distro)
api := jobqueue.New(nil, store)
err := store.PushCompose(id, &blueprint.Blueprint{}, map[string]string{"test-repo": "test:foo"}, "test_arch", "test_output", nil)
err := store.PushCompose(id, &blueprint.Blueprint{}, map[string]string{"test-repo": "test:foo"}, "test_arch", "test_output", 0, nil)
if err != nil {
t.Fatalf("error pushing compose: %v", err)
}
@ -61,7 +61,7 @@ func testUpdateTransition(t *testing.T, from, to string, expectedStatus int) {
api := jobqueue.New(nil, store)
if from != "VOID" {
err := store.PushCompose(id, &blueprint.Blueprint{}, map[string]string{"test": "test:foo"}, "test_arch", "test_output", nil)
err := store.PushCompose(id, &blueprint.Blueprint{}, map[string]string{"test": "test:foo"}, "test_arch", "test_output", 0, nil)
if err != nil {
t.Fatalf("error pushing compose: %v", err)
}