Files
mstore/pkg/repocli/pullimage_test.go
T
2026-03-11 19:47:40 +02:00

37 lines
773 B
Go

/*
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
*
* This work is published and licensed under a Creative Commons
* Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* Distribution of this work is permitted, but commercial use and
* modifications are strictly prohibited.
*/
package repocli
import (
"github.com/stretchr/testify/require"
//"fmt"
"context"
"testing"
"time"
)
func xxxTestPullImage(t *testing.T) {
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
cli := NewClient(nil, nil)
require.NotNil(t, cli)
down := NewLoader(cli)
require.NotNil(t, down)
rawref := "mirror.gcr.io/alpine:3.20.0"
destdir := "aaa"
err := down.Pull(ctx, rawref, destdir, "linux", "amd64")
require.NoError(t, err)
}