File: endpoint_test.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (20 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//go:build integration
// +build integration

package s3

import (
	"strings"
	"testing"
)

func TestInteg_AccessPoint_WriteToObject(t *testing.T) {
	cases := map[string]writeToObjectTestData{
		"seekable body": {Body: strings.NewReader("hello world"), ExpectBody: []byte("hello world")},
	}
	for name, c := range cases {
		t.Run(name, func(t *testing.T) {
			testWriteToObject(t, setupMetadata.AccessPoints.Source.ARN, c)
		})
	}
}