Browse Source

fix Tagging test

pull/2390/head
Konstantin Lebedev 3 years ago
parent
commit
dc7e525cb9
  1. 1
      weed/s3api/tags.go
  2. 1
      weed/s3api/tags_test.go

1
weed/s3api/tags.go

@ -16,6 +16,7 @@ type TagSet struct {
type Tagging struct {
XMLName xml.Name `xml:"Tagging"`
TagSet TagSet `xml:"TagSet"`
Xmlns string `xml:"xmlns,attr"`
}
func (t *Tagging) ToTags() map[string]string {

1
weed/s3api/tags_test.go

@ -32,6 +32,7 @@ func TestXMLUnmarshall(t *testing.T) {
func TestXMLMarshall(t *testing.T) {
tags := &Tagging{
Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
TagSet: TagSet{
[]Tag{
{

Loading…
Cancel
Save