File: http_service_test.go

package info (click to toggle)
golang-github-viant-toolbox 0.33.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,280 kB
  • sloc: makefile: 16
file content (25 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package storage_test

import "testing"

func TestNewHttpStorageService(t *testing.T) {

	// Deprecated use gith	ub/viant/afs/http
	//{
	//	service, err := storage.NewServiceForURL("https://github.com/viant/", credentialFile)
	//	assert.Nil(t, err)
	//	assert.NotNil(t, service)
	//
	//	objects, err := service.List("https://github.com/viant/")
	//	assert.True(t, len(objects) > 0)
	//	reader, err := service.Download(objects[0])
	//	if assert.Nil(t, err) {
	//		defer reader.Close()
	//	}
	//	content, err := ioutil.ReadAll(reader)
	//	assert.Nil(t, err)
	//	assert.True(t, len(content) > 0)
	//
	//}

}