working commit
This commit is contained in:
@@ -15,19 +15,20 @@ import (
|
||||
|
||||
func xxxTestClientGetUpload(t *testing.T) {
|
||||
rawrepos := []string{
|
||||
"mstore:mstore@localhost:1025/alpine:3.20.0",
|
||||
"localhost:1025/alpine:3.20.0",
|
||||
}
|
||||
cli := NewClient()
|
||||
cli.UseMiddleware(NewBasicAuthMiddleware("mstore", "mstore"))
|
||||
mw := NewBasicAuthMiddleware("mstore", "mstore")
|
||||
cli := NewClient(nil, mw)
|
||||
|
||||
for _, rawrepo := range rawrepos {
|
||||
var err error
|
||||
var loc string
|
||||
{
|
||||
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
loc, err = cli.GetUpload(ctx, rawrepo)
|
||||
id, loc, err := cli.GetUpload(ctx, rawrepo)
|
||||
require.NoError(t, err)
|
||||
fmt.Printf("Upload Location: %s\n", loc)
|
||||
fmt.Printf("Upload ID: %s\n", id)
|
||||
}
|
||||
{
|
||||
srcsize := 1024 + 145
|
||||
|
||||
Reference in New Issue
Block a user