(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestManifestPush(t *testing.T) { |
| 53 | manifestStore := store.NewStore(t.TempDir()) |
| 54 | |
| 55 | registry := newFakeRegistryClient() |
| 56 | |
| 57 | cli := test.NewFakeCli(nil) |
| 58 | cli.SetManifestStore(manifestStore) |
| 59 | cli.SetRegistryClient(registry) |
| 60 | |
| 61 | namedRef := ref(t, "alpine:3.0") |
| 62 | imageManifest := fullImageManifest(t, namedRef) |
| 63 | err := manifestStore.Save(ref(t, "list:v1"), namedRef, imageManifest) |
| 64 | assert.NilError(t, err) |
| 65 | |
| 66 | cmd := newPushListCommand(cli) |
| 67 | cmd.SetArgs([]string{"example.com/list:v1"}) |
| 68 | err = cmd.Execute() |
| 69 | assert.NilError(t, err) |
| 70 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…